Package org.zkoss.zul

Examples of org.zkoss.zul.Listitem


      }       
    }
  }

  public void onClick$okBtn() {
    Listitem  seldItem = mfn_category.getSelectedItem();
    if (seldItem == null) {
      showSelectFormatDialog();
      return;
    }
    if (selectedCategory == null || selectedCategory == mfn_general) {
      showSelectFormatDialog();
      return;
    }
    Listitem selectedItem = selectedCategory.getSelectedItem();

    if (selectedItem != null) {
      String formatCodes = selectedItem.getValue().toString();
      if (selection.getBottom() >= spreadsheet.getMaxrows())
        selection.setBottom(spreadsheet.getMaxrows() - 1);
      if (selection.getRight() >= spreadsheet.getMaxcolumns())
        selection.setRight(spreadsheet.getMaxcolumns() - 1);
      Utils.setDataFormat(spreadsheet.getSelectedSheet(), selection, formatCodes);     
View Full Code Here


      while(childList.size()>1)
        listbox.removeChild((Component)childList.get(1));
     
            while(rs.next()){
              //System.out.println("in rs.next");
              Listitem newListItem = new Listitem();
              Date date = rs.getDate("time");
              SimpleDateFormat sdf=new SimpleDateFormat("M/dd h");
              newListItem.appendChild(new Listcell(rs.getString("filename")));
              newListItem.appendChild(new Listcell(rs.getString("who")));
              newListItem.appendChild(new Listcell(String.valueOf(sdf.format(date))));
              listbox.appendChild(newListItem);
            }
            //close the jdbc connection
            stmt.close();
            con.close();
View Full Code Here

    model.set(sourceIdx, dstSort);
  }
 
  public void onSelect$sortOrientationLB () {
    boolean orientation;
    Listitem seld = sortOrientationLB.getSelectedItem();
    orientation = getLabel(ORIENTATION_COLUMN_KEY).equals(seld) ?
        SORT_TOP_TO_BOTTOM : SORT_LEFT_TO_RIGHT;
    if (sortOrientation != orientation) {
      sortOrientation = orientation;
      setAvailableSortTarget(availableSortIndex);
View Full Code Here

    List<UnitOfMeasure> uoms=uomManager.searchByName(searchKey, 0L, 32);
    Iterator<UnitOfMeasure> uomIterator=uoms.iterator();
    while(uomIterator.hasNext()){
      UnitOfMeasure uom=uomIterator.next();
      Listitem item=new Listitem();
      Listcell nameCell=new Listcell(uom.getName());
      Listcell descCell=new Listcell(uom.getDescription().getShortDescription());
      item.appendChild(nameCell);
      item.appendChild(descCell);
      uomList.appendChild(item);
    }
    uomText.open();
  }
View Full Code Here

        workingArrangementsPerOrderModel.init();
    }

    private void setupTaskStatusListbox() {
        for(TaskStatusEnum status : getTasksStatus()) {
            Listitem item = new Listitem();
            item.setParent(lbTaskStatus);
            item.setValue(status);
            item.appendChild(new Listcell(_(status.toString())));
            lbTaskStatus.appendChild(item);
            if(status.equals(TaskStatusEnum.ALL)) {
                item.setSelected(true);
            }
        }
    }
View Full Code Here

    private boolean showDependencies() {
        return cbShowDependencies.isChecked();
    }

    private TaskStatusEnum getSelectedTaskStatus() {
        final Listitem item = lbTaskStatus.getSelectedItem();
        return (item != null) ? (TaskStatusEnum) item.getValue() : TaskStatusEnum.ALL;
    }
View Full Code Here

                    feedValidGaps(element, queue);
                }
            }

            public LimitingResourceQueue getSelectedQueue(SelectEvent se) {
                final Listitem item = (Listitem) se.getSelectedItems().iterator().next();
                return (LimitingResourceQueue) item.getValue();
            }

        });
        listAssignableQueues.setSelectedIndex(0);
        feedValidGaps(element, queues.get(0));
View Full Code Here

    }

    private LimitingResourceQueue getSelectedQueue() {
        LimitingResourceQueue result = null;

        final Listitem item = listAssignableQueues.getSelectedItem();
        if (item != null) {
            result = (LimitingResourceQueue) item.getValue();
        }
        return result;
    }
View Full Code Here

        return LimitingResourceAllocator.startTimeToAllocateStartingFromEnd(
                element.getResourceAllocation(), queue.getResource(), gap);
    }

    private Gap getSelectedGap() {
        Listitem item = listCandidateGaps.getSelectedItem();
        if (item != null) {
            return (Gap) item.getValue();
        }
        return null;
    }
View Full Code Here

    public List<UnitType> getUnitTypes() {
        return getModel().getUnitTypes();
    }

    public void selectUnitType(Component self) {
        Listitem selectedItem = ((Listbox) self).getSelectedItem();
        UnitType unitType = (UnitType) selectedItem.getValue();
        Material material = (Material) ((Row) self.getParent()).getValue();
        material.setUnitType(unitType);
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Listitem

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.