Package org.gwt.mosaic.ui.client

Examples of org.gwt.mosaic.ui.client.Label


   *
   * @param textWithMnemonic the label's text - may mark a mnemonic
   * @return the added label
   */
  public Label append(String textWithMnemonic) {
    Label label = getComponentFactory().createLabel(textWithMnemonic);
    DOM.setStyleAttribute(label.getElement(), "overflow", "hidden");
    append(label);
    return label;
  }
View Full Code Here


   * @param nextLine true forces a next line
   * @return the added label
   * @see JLabel#setLabelFor(java.awt.Component)
   */
  public Label append(String textWithMnemonic, Widget c, boolean nextLine) {
    Label label = append(textWithMnemonic, c);
    if (nextLine) {
      nextLine();
    }
    return label;
  }
View Full Code Here

   * @param columnSpan number of columns the component shall span
   * @return the added label
   * @see Label#setLabelFor(java.awt.Component)
   */
  public Label append(String textWithMnemonic, Widget c, int columnSpan) {
    Label label = append(textWithMnemonic);
    // XXX label.setLabelFor(c);
    append(c, columnSpan);
    return label;
  }
View Full Code Here

   * @param c1 the first component to add
   * @param c2 the second component to add
   * @return the added label
   */
  public Label append(String textWithMnemonic, Widget c1, Widget c2) {
    Label label = append(textWithMnemonic, c1);
    append(c2);
    return label;
  }
View Full Code Here

   * @param c2 the second component to add
   * @param colSpan the column span for the second component
   * @return the created label
   */
  public Label append(String textWithMnemonic, Widget c1, Widget c2, int colSpan) {
    Label label = append(textWithMnemonic, c1);
    append(c2, colSpan);
    return label;
  }
View Full Code Here

   * @param c2 the second component to add
   * @param c3 the third component to add
   * @return the added label
   */
  public Label append(String textWithMnemonic, Widget c1, Widget c2, Widget c3) {
    Label label = append(textWithMnemonic, c1, c2);
    append(c3);
    return label;
  }
View Full Code Here

   * @param c4 the fourth component to add
   * @return the added label
   */
  public Label append(String textWithMnemonic, Widget c1, Widget c2, Widget c3,
      Widget c4) {
    Label label = append(textWithMnemonic, c1, c2, c3);
    append(c4);
    return label;
  }
View Full Code Here

   *
   * @see WidgetFactory
   */
  public final Label addLabel(String textWithMnemonic,
      CellConstraints constraints) {
    Label label = getComponentFactory().createLabel(textWithMnemonic);
    DOM.setStyleAttribute(label.getElement(), "overflow", "hidden");
    add(label, constraints);
    return label;
  }
View Full Code Here

      throw new IllegalArgumentException(
          "You must provide two CellConstraints instances, "
              + "one for the label and one for the component.\n"
              + "Consider using #clone(). See the JavaDocs for details.");

    Label label = addLabel(textWithMnemonic, labelConstraints);
    add(component, componentConstraints);
    // XXX label.setLabelFor(component);
    return label;
  }
View Full Code Here

   *
   * @see WidgetFactory
   */
  public final Label addTitle(String textWithMnemonic,
      CellConstraints constraints) {
    Label titleLabel = null;// XXX
    // getComponentFactory().createTitle(textWithMnemonic);
    add(titleLabel, constraints);
    return titleLabel;
  }
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.Label

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.