Package org.zkoss.zul

Examples of org.zkoss.zul.Grid$ModelInitListener


    }
  }

  public ListModel getModelByOwner(Component comp) {
    if (comp instanceof Grid) {
      final Grid grid = (Grid) comp;
      return grid.getModel();
    } else {
      throw new UiException("Unsupported type for RowCollectionItem: "
          + comp);
    }
  }
View Full Code Here


  }

  public void setupBindingRenderer(Component comp, DataBinder binder) {
    if (comp instanceof Row) {
      final Row row = (Row) comp;
      final Grid grid = row.getGrid();
      if (grid.getRowRenderer() == null) {
        grid.setRowRenderer(new BindingRowRenderer(row, binder));
      }
    }
  }
View Full Code Here

    }
  }
 
  public List getItems(Component comp) {
    if (comp instanceof Grid) {
      final Grid grid = (Grid) comp;
      return grid.getRows().getChildren();
    } else {
      throw new UiException("Unsupported type for RowCollectionItem: "
          + comp);
    }
  }
View Full Code Here

    caption.setImage("/images/icons/database_blue_16x16.gif");
    caption.setLabel("Demo-Data in PostgreSQL v9.0.2");
    caption.setStyle("color: #000000;font-weight:bold; text-align:left ");
    caption.setParent(gb);

    final Grid grid = new Grid();
    grid.setWidth("100%");
    // grid.setParent(panelchildren);
    grid.setParent(gb);

    final Columns columns = new Columns();
    columns.setSizable(true);
    columns.setParent(grid);
View Full Code Here

    caption.setParent(panel);
    caption.setImage("/images/icons/monitorView.gif");
    caption.setLabel("Application Statistic");
    caption.setStyle("color: #000000;font-weight:bold; text-align:left ");

    final Grid grid = new Grid();
    grid.setWidth("100%");
    grid.setParent(panelchildren);

    final Columns columns = new Columns();
    columns.setSizable(true);
    columns.setParent(grid);
View Full Code Here

    caption.setParent(panel);
    caption.setImage("/images/icons/advice_16x16.gif");
    caption.setLabel("Demo Customers");
    caption.setStyle("color: #000000;font-weight:bold; text-align:left ");

    final Grid grid = new Grid();
    grid.setWidth("100%");
    grid.setParent(panelchildren);

    final Columns columns = new Columns();
    columns.setSizable(true);
    columns.setParent(grid);
View Full Code Here

   *
   * @param event
   */
  public void onCreate$winMessageBar(Event event) {

    final Grid grid = new Grid();
    grid.setHeight("100%");
    grid.setWidth("50px");
    grid.setParent(this.winMessageBar);

    final Columns columns = new Columns();
    columns.setSizable(false);
    columns.setParent(grid);

View Full Code Here

   *
   * @param event
   */
  public void onCreate$winStatusBar(Event event) {

    final Grid grid = new Grid();
    grid.setHeight("22px");
    grid.setStyle("padding: 0px;");
    grid.setParent(this.winStatusBar);

    final Columns columns = new Columns();
    columns.setSizable(false);
    columns.setParent(grid);

View Full Code Here

    ct.setSclass("FDCenterNoBorder");
    ct.setStyle("background-color: white");
    ct.setFlex(true);
    ct.setParent(bl);

    Grid grid = new Grid();
    grid.setSclass("GridLayoutSmartBorderDashed");
    grid.setParent(ct);

    Columns columns = new Columns();
    columns.setSizable(true);
    columns.setParent(grid);
View Full Code Here

    refresh();
  }
 
  private void _init() {
    manager=(DivisionManager)WebApplication.lookup(DivisionManager.LocalJNDIName);
    Grid divisionsGrid=(Grid)getFellow("divisionsGrid");
    divisionsGrid.setRowRenderer(new DivisionRowRenderer());
    divisionsGrid.setModel(new ListModelList());
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Grid$ModelInitListener

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.