Package jfix.zk

Examples of jfix.zk.ItemRenderer


  Button purge = new Button(I18N.get("Purge"), Images.EditClear);

  public Control() {
    setWidth("300px");

    type.setItemRenderer(new ItemRenderer() {
      public String render(Object value) {
        Content content = (Content) value;
        if (value != null) {
          return I18N.get(content.getType()) + " ("
              + Revisions.getNumber(content.getClass()) + ")";
View Full Code Here


      return o1.getPath().compareTo(o2.getPath());
    }
  }, true);

  public Editor() {
    roots.setItemRenderer(new ItemRenderer() {
      public String render(Object value) {
        return ((Content) value).getPath();
      }
    });
    if (!isAdministrationMode()) {
View Full Code Here

    }
  }

  private Selectfield newTypeSelect() {
    Selectfield select = new Selectfield(Properties.getAvailableTypes());
    select.setItemRenderer(new ItemRenderer() {
      public String render(Object value) {
        return value != null ? ((Property) value).getType() : null;
      }
    });
    select.setHflex("3");
View Full Code Here

  Textfield name = new Textfield();
  Checkbox administrator = new Checkbox();
  Checklist types = new Checklist();

  public Editor() {
    types.setItemRenderer(new ItemRenderer() {
      public String render(Object value) {
        return I18N.get(((String) value).substring(((String) value)
            .lastIndexOf(".") + 1));
      }
    });
View Full Code Here

TOP

Related Classes of jfix.zk.ItemRenderer

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.