Package org.zkoss.zul

Examples of org.zkoss.zul.Listitem$ExtraCtrl


  final class OnCloseListener implements EventListener {
    @Override
    public void onEvent(Event event) throws Exception {

      if (BranchAdvancedSearchListBox.this.listbox.getSelectedItem() != null) {
        Listitem li = BranchAdvancedSearchListBox.this.listbox.getSelectedItem();
        Branche branche = (Branche) li.getAttribute("data");

        setBranche(branche);
      }
      onClose();
    }
View Full Code Here


  }

  public void onSelect$listBoxOrder(Event event) throws Exception {
    // logger.debug(event.toString());

    Listitem item = this.listBoxOrder.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      Order order = (Order) item.getAttribute("data");

      if (order != null) {
        // Set the ListModel and the itemRenderer for the order
        // articles.g
View Full Code Here

   * @throws Exception
   */
  public void onDoubleClickedOrderItem(Event event) throws Exception {

    // get the selected object
    Listitem item = listBoxOrder.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      Order anOrder = (Order) item.getAttribute("data");

      showDetailView(anOrder);

    }
  }
View Full Code Here

   */
  public void onDoubleClickedCustomerItem(Event event) {
    // logger.debug(event.toString());

    // get the customer
    Listitem item = this.listBoxCustomerSearch.getSelectedItem();
    if (item != null) {

      /* clear the listboxes from older stuff */
      if ((ListModelList) listBoxOrder.getModel() != null) {
        ((ListModelList) listBoxOrder.getModel()).clear();
      }
      if ((ListModelList) listBoxOrderArticle.getModel() != null) {
        ((ListModelList) listBoxOrderArticle.getModel()).clear();
      }

      Customer customer = (Customer) item.getAttribute("data");

      if (customer != null)
        setCustomer(customer);

      bandbox_OrderList_CustomerSearch.setValue(customer.getKunName1() + ", " + customer.getKunOrt());
View Full Code Here

   * @param event
   */
  public void onDoubleClicked(Event event) {

    if (this.listbox.getSelectedItem() != null) {
      Listitem li = this.listbox.getSelectedItem();
      Branche branche = (Branche) li.getAttribute("data");

      setBranche(branche);
      this.onClose();
    }
  }
View Full Code Here

  final class OnCloseListener implements EventListener {
    @Override
    public void onEvent(Event event) throws Exception {

      if (BranchExtendedSearchListBox.this.listbox.getSelectedItem() != null) {
        Listitem li = BranchExtendedSearchListBox.this.listbox.getSelectedItem();
        Branche branche = (Branche) li.getAttribute("data");

        setBranche(branche);
      }
      onClose();
    }
View Full Code Here

  public void onClick$okBtn() {
    openComposeFormulaDialog();
  }
 
  private void openComposeFormulaDialog() {
    Listitem item = (Listitem)functionListbox.getSelectedItem();
    if (item == null) {
      Messagebox.show("Select a function");
      return;
   
   
    FormulaMetaInfo info = (FormulaMetaInfo) item.getValue();
    if (info.getRequiredParameter() == 0) {
      getDesktopWorkbenchContext().getWorkbookCtrl().insertFormula(rowIdx, colIdx, "=" + info.getFunction() + "()");
    } else {
      info.setRowIndex(rowIdx);
      info.setColIndex(colIdx);
      getDesktopWorkbenchContext().getWorkbenchCtrl().
        openComposeFormulaDialog((FormulaMetaInfo)item.getValue());
    }

    _insertFormulaDialog.fireOnClose(null);
  }
View Full Code Here

    }
    try {
      Listbox rdw_rangeList = (Listbox) Path
          .getComponent("//p1/rangeDeleteWin/rdw_rangeList");

      Listitem st = rdw_rangeList.getSelectedItem();
      if (st != null) {
        String rangeName = st.getLabel();
        book.removeName(rangeName);
      }

      Window rangeDeleteWin = (Window) Path
          .getComponent("//p1/rangeDeleteWin");
View Full Code Here

    }
    try {
      Listbox rcw_rangeList = (Listbox) Path
          .getComponent("//p1/rangeChooseWin/rcw_rangeList");

      Listitem st = rcw_rangeList.getSelectedItem();
      Name range;
      Rect rect;
      if (st != null) {
        String rangeName = st.getLabel();
        range = book.getName(rangeName);
        CellRangeAddress cra = CellRangeAddress.valueOf(range.getRefersToFormula());
        rect = new Rect(cra.getFirstColumn(), cra.getFirstRow(),
            cra.getLastColumn(), cra.getLastRow());
        spreadsheet.setSelection(rect);
View Full Code Here

            .getComponent("//p1/rangeChooseWin/rcw_rangeList");
      } else {
        return;
      }
     
      Listitem st = rangeList.getSelectedItem();
      Name range;
      Rect rect;
      if (st != null) {
        String rangeName = st.getLabel();
        range = book.getName(rangeName);
        CellRangeAddress cra = CellRangeAddress.valueOf(range.getRefersToFormula());
        rect = new Rect(cra.getFirstColumn(), cra.getFirstRow(),
            cra.getLastColumn(), cra.getLastRow());
        spreadsheet.setHighlight(rect);
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Listitem$ExtraCtrl

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.