Package jfix.zk

Examples of jfix.zk.Label


      return parameter.getKey();
    case 1:
      String value = parameter.getValue();
      int index = value.indexOf("\n");
      if (index != -1) {
        return new View(value, new Label(value.substring(0, index)
            + " [...]"));
      } else {
        return parameter.getValue();
      }
    }
View Full Code Here


public class NodeViews {

  public static View asType(Node node) {
    return new View(node.getType(), new Row(new Image(JeaseSession
        .getConfig().getIcon(node)), new Label(node.getType())));
  }
View Full Code Here

  public static View asSize(Node node) {
    if (node.isContainer()) {
      long items = node.getChildren().length;
      String text = String.format(" %s %s", items,
          items == 1 ? I18N.get("Item") : I18N.get("Items"));
      return new View(text, new Label(text));
    } else {
      long size = node.getSize();
      String text = FileUtils.byteCountToDisplaySize(size);
      return new View(size, new Label(text));
    }
  }
View Full Code Here

    scale.setStep(25);
  }

  public void init() {
    add(I18N.get("Preface"), preface);
    add(I18N.get("Scale"), new Div(scale, new Label(" px")));
    add(I18N.get("Labeled"), labeled);
  }
View Full Code Here

    editor.setProperty(property.copy());
    return editor;
  }

  protected Label newLabel(String name, Component component) {
    Label label = super.newLabel(name, component);
    if (component instanceof PropertyEditor
        && (((PropertyEditor) component).getProperty().getSerial() == 0 || isFactoryMode())) {
      augmentableLabels.add(label);
    }
    return label;
View Full Code Here

TOP

Related Classes of jfix.zk.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.