Package org.gwt.mosaic.ui.client

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


      System.out.print(ccString);
      System.out.print("; ");
      String childType = child.getClass().getName();
      System.out.print(childType);
      if (child instanceof TextLabel) {
        TextLabel label = (TextLabel) child;
        System.out.print("      \"" + label.getText() + "\"");
      }
      if (child.getElement().getTagName() != null) {
        System.out.print("; name=");
        System.out.print(child.getElement().getTagName());
      }
View Full Code Here


   *
   * @param textWithMnemonic the label's text - may mark a mnemonic
   * @return the added label
   */
  public TextLabel append(String textWithMnemonic) {
    TextLabel 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 TextLabel append(String textWithMnemonic, Widget c, boolean nextLine) {
    TextLabel 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 TextLabel#setLabelFor(java.awt.Component)
   */
  public TextLabel append(String textWithMnemonic, Widget c, int columnSpan) {
    TextLabel label = append(textWithMnemonic);
    String refId = c.getElement().getId();
    if (refId == null || refId.length() == 0) {
      refId = DOM.createUniqueId();
      c.getElement().setId(refId);
    }
    label.setLabelFor(refId);
    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 TextLabel append(String textWithMnemonic, Widget c1, Widget c2) {
    TextLabel 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 TextLabel append(String textWithMnemonic, Widget c1, Widget c2, int colSpan) {
    TextLabel 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 TextLabel append(String textWithMnemonic, Widget c1, Widget c2, Widget c3) {
    TextLabel 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 TextLabel append(String textWithMnemonic, Widget c1, Widget c2, Widget c3,
      Widget c4) {
    TextLabel label = append(textWithMnemonic, c1, c2, c3);
    append(c4);
    return label;
  }
View Full Code Here

   *
   * @see WidgetFactory
   */
  public final TextLabel addLabel(String textWithMnemonic,
      CellConstraints constraints) {
    TextLabel label = getComponentFactory().createLabel(textWithMnemonic);
    // XXX 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.");

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

TOP

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

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.