Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.Component.applyProperties()


  }
  private Label autoFirstCell() {
    Component cell = getFirstChild();
    if (cell == null || cell instanceof Label) {
      if (cell == null) cell = new Label();
      cell.applyProperties();
      cell.setParent(this);
      return (Label)cell;
    }
    throw new UiException("Unsupported child for setLabel: "+cell);
  }
View Full Code Here


    if (renderer instanceof RowRendererExt)
      cell = ((RowRendererExt)renderer).newCell(row);

    if (cell == null) {
      cell = newRenderLabel(null);
      cell.applyProperties();
    }
    cell.setParent(row);
    return cell;
  }
  /** Returns the label for the cell generated by the default renderer.
View Full Code Here

  }
  private Label autoFirstCell() {
    Component cell = getFirstChild();
    if (cell == null || cell instanceof Label) {
      if (cell == null) cell = new Label();
      cell.applyProperties();
      cell.setParent(this);
      return (Label)cell;
    }
    throw new UiException("Unsupported child for setLabel: "+cell);
  }
View Full Code Here

    final Component comp = compdef.newInstance(page, clsnm);

    if (parent != null) comp.setParent(parent);
    else comp.setPage(page);

    comp.applyProperties(); //including custom-attributes
    return comp;
  }

  /** Returns the page definition of the specified path, or null if not found.
   *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.