Package org.zkoss.zul

Examples of org.zkoss.zul.Columns


  }
 
  public Grid(String... columns) {
    super();
    setHflex("1");
    Columns header = new Columns();
    for(String col : columns) {
      org.zkoss.zul.Column column = new org.zkoss.zul.Column(col);
      header.appendChild(column);
    }
    appendChild(header);
    appendChild(new Rows());
  }
View Full Code Here


    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);

    final Column column1 = new Column();
    column1.setWidth("65%");
    column1.setLabel("Table");
    column1.setParent(columns);
View Full Code Here

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

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

    final Column column1 = new Column();
    column1.setWidth("65%");
    column1.setLabel("Subject");
    column1.setParent(columns);
View Full Code Here

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

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

    final Column column1 = new Column();
    column1.setWidth("100%");
    column1.setLabel("values are randomly created");
    column1.setParent(columns);
View Full Code Here

    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);

    // Column for the Message buttons
    this.statusBarMessageIndicator = new Column();
    this.statusBarMessageIndicator.setWidth("50px");
    this.statusBarMessageIndicator.setStyle("background-color: #D6DCDE; padding: 0px");
View Full Code Here

    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);

    this.statusBarSelectedObject = new Column();
    this.statusBarSelectedObject.setHeight("22px");
    this.statusBarSelectedObject.setLabel(this._labelSelectedObject);
    this.statusBarSelectedObject.setWidth("50%");
View Full Code Here

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

    Columns columns = new Columns();
    columns.setSizable(true);
    columns.setParent(grid);

    Column columnTableName = new Column();
    columnTableName.setWidth("65%");
    columnTableName.setLabel(Labels.getLabel("common.Table"));
    columnTableName.setStyle("color: red");
View Full Code Here

        personalTimesheetModel.initCreateOrEdit(date, resource);
        initTimesheet(date);
    }

    private void initTimesheet(LocalDate date) {
        columns = new Columns();
        columns.setSizable(true);
        timesheet.getChildren().clear();
        timesheet.appendChild(columns);
        createColumns(date);
View Full Code Here

        loadModelForLeftPane();
    }

    private static Columns createColumns(
            Collection<? extends IConvertibleToColumn> convertibleToColumns) {
        Columns result = new Columns();
        for (Column column : toColumns(convertibleToColumns)) {
            result.appendChild(column);
        }
        return result;
    }
View Full Code Here

        return gridItems;
    }

    private void renderColumns(Grid gridItems) {

        Columns columns = gridItems.getColumns();
        // Create listhead first time is rendered
        if (columns == null) {
            columns = new Columns();
        }
        // Delete all headers
        columns.getChildren().clear();
        columns.setSizable(true);

        // Add static headers
        Column columnName = new Column();
        columnName.setLabel(_("Name"));
        Util.setSort(columnName, "auto=(name)");
        columnName.setSortDirection("ascending");
        columns.appendChild(columnName);

        Column columnPosition = new Column();
        columnPosition.setLabel(_("Position"));
        columns.appendChild(columnPosition);

        Column columnPercentage = new Column();
        columnPercentage.setLabel(_("Percentage"));
        columns.appendChild(columnPercentage);

        Column columnPassed = new Column();
        columnPassed.setLabel(_("Checked"));
        columns.appendChild(columnPassed);

        Column columnDate = new Column();
        columnDate.setLabel(_("Date"));
        columns.appendChild(columnDate);

        columns.setParent(gridItems);
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Columns

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.