Package org.zkoss.zul

Examples of org.zkoss.zul.Checkbox


    lc = new Listcell(customer.getKunOrt());
    lc.setParent(item);
    ComponentsCtrl.applyForward(lc, "onMouseOver=onMouseOverListCell");

    lc = new Listcell();
    final Checkbox cb = new Checkbox();
    cb.setDisabled(true);
    cb.setChecked(customer.getKunMahnsperre());
    lc.appendChild(cb);
    lc.setParent(item);

    item.setAttribute("data", data);
    ComponentsCtrl.applyForward(item, "onDoubleClick=onCustomerItemDoubleClicked");
View Full Code Here


  public void render(Listitem item, Object data) throws Exception {

    final SecRight right = (SecRight) data;

    Listcell lc = new Listcell();
    final Checkbox cb = new Checkbox();

    // get the role for which we pull the data
    final SecGroup group = this.parentController.getSelected();

    if (group != null) {
      if (getSecurityService().isRightinGroup(right, group)) {
        cb.setChecked(true);
      } else {
        cb.setChecked(false);
      }
    } else {
      cb.setChecked(false);
    }

    lc.appendChild(cb);
    lc.setParent(item);
View Full Code Here

   * @throws Exception
   */
  public void onClick$btnMainMenuChange(Event event) throws Exception {

    // set the MenuOffset for correct calculating content height.
    final Checkbox cb = (Checkbox) Path.getComponent("/outerIndexWindow/CBtreeMenu");
    cb.setChecked(false);
    UserWorkspace.getInstance().setTreeMenu(false);

    // get an instance of the borderlayout defined in the index.zul-file
    final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
    // get an instance of the searched west layout area
    final West west = bl.getWest();
    west.setVisible(false);

    final North north = bl.getNorth();
    north.setHeight(north.getHeight() + "px");

    final Div div = (Div) north.getFellow("divDropDownMenu");

    final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
    menuBar.setVisible(true);

    // generate the menu from the menuXMLFile
    getDropDownMenuFactory().addMenu(menuBar);

    final Menuitem changeToTreeMenu = new Menuitem();
    changeToTreeMenu.setLabel(Labels.getLabel("menu_Item_backToTree"));
    changeToTreeMenu.setImage("/images/icons/refresh2_yellow_16x16.gif");
    changeToTreeMenu.setParent(menuBar);
    changeToTreeMenu.addEventListener("onClick", new EventListener() {
      @Override
      public void onEvent(Event event) throws Exception {
        // get an instance of the borderlayout defined in the
        // index.zul-file
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        // get an instance of the searched west layout area
        final West west = bl.getWest();
        west.setVisible(true);

        final North north = bl.getNorth();

        final Div div = (Div) north.getFellow("divDropDownMenu");

        final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
        menuBar.getChildren().clear();
        menuBar.setVisible(false);

        // set the MenuOffset for correct calculating content height.
        final Checkbox cb = (Checkbox) Path.getComponent("/outerIndexWindow/CBtreeMenu");
        cb.setChecked(true);
        UserWorkspace.getInstance().setTreeMenu(true);

        // Refresh the whole page for setting correct sizes of the
        // components
        final Window win = (Window) Path.getComponent("/outerIndexWindow");
View Full Code Here

    this.spreadsheet = spreadsheet;
  }

  public void onOK() {
    try {
      Checkbox mfp_locked = (Checkbox) Path.getComponent("//p1/mainWin/formatMainWin/formatProtection/mfp_locked");
      Checkbox mfp_hidden = (Checkbox) Path.getComponent("//p1/mainWin/formatMainWin/formatProtection/mfp_hidden");

      int left = spreadsheet.getSelection().getLeft();
      int right = spreadsheet.getSelection().getRight();
      int top = spreadsheet.getSelection().getTop();
      int bottom = spreadsheet.getSelection().getBottom();
      Worksheet sheet = spreadsheet.getSelectedSheet();
      for (int row = top; row <= bottom; row++) {
        for (int col = left; col <= right; col++) {
          final Cell cell = Utils.getCell(sheet, row, col);
          if (cell != null) {
            CellStyle cs = cell.getCellStyle();
            cs.setHidden(mfp_hidden.isChecked());
            cs.setLocked(mfp_hidden.isChecked());
            //Styles.setLocked(sheet, row, col, mfp_locked.isChecked());
            //Styles.setHidden(sheet, row, col, mfp_hidden.isChecked());
          }
        }
      }
View Full Code Here

public class DivisionRowRenderer implements RowRenderer{

  public void render(Row row, Object data) throws Exception {
    Division c=(Division)data;
    row.appendChild(new Checkbox());
    row.appendChild(new Label(c.getId().toString()));
    row.appendChild(new Label(c.getCode()));
    row.appendChild(new Label(c.getDescription().getShortDescription()));
  }
View Full Code Here

public class ItemRowRenderer implements RowRenderer{

  public void render(Row row, Object data) throws Exception {
    Item item=(Item)data;
    row.appendChild(new Checkbox());
    row.appendChild(new Label(item.getId().toString()));
    row.appendChild(new Label(item.getCode()));
    row.appendChild(new Label(item.getDescription().getShortDescription()));
    Cell rowCell=new Cell();
    Label statusLabel=new Label(item.getStatus());
View Full Code Here

public class CompanyRowRenderer implements RowRenderer{

  public void render(Row row, Object data) throws Exception {
    Company c=(Company)data;
    row.appendChild(new Checkbox());
    row.appendChild(new Label(c.getId().toString()));
    row.appendChild(new Label(c.getName()));
    row.appendChild(new Label(c.getDivision().getCode()));
    row.appendChild(new Label(c.getDescription().getShortDescription()));
  }
View Full Code Here

public class OrganizationRowRenderer implements RowRenderer{

  public void render(Row row, Object data) throws Exception {
    Organization c=(Organization)data;
    row.appendChild(new Checkbox());
    row.appendChild(new Label(c.getId().toString()));
    row.appendChild(new Label(c.getName()));
    row.appendChild(new Label(c.getCompany().getName()));
    row.appendChild(new Label(c.getDescription().getShortDescription()));
  }
View Full Code Here

public class OrganizationGroupRowRenderer implements RowRenderer {

  public void render(Row row, Object data) throws Exception {
    OrganizationGroup c=(OrganizationGroup)data;
    row.appendChild(new Checkbox());
    row.appendChild(new Label(c.getId().toString()));
    row.appendChild(new Label(c.getName()));
    row.appendChild(new Label(c.getOrganization().getName()));
    row.appendChild(new Label(c.getDescription().getShortDescription()));
  }
View Full Code Here

    List<Location> warehouses=manager.findByWarehouse(warehouseText.getText());
    Iterator<Location> it=warehouses.iterator();
    while(it.hasNext()){
      Row row=new Row();
      Location c=it.next();
      row.appendChild(new Checkbox());
      row.appendChild(new Label(c.getId().toString()));
      row.appendChild(new Label(c.getName()));
      row.appendChild(new Label(c.getWarehouse().getName()));
      row.appendChild(new Label(c.getDescription().getShortDescription()));
     
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Checkbox

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.