Package org.zkoss.zss.app.formula

Examples of org.zkoss.zss.app.formula.FormulaMetaInfo


      }
    });
   
    functionListbox.setItemRenderer(new ListitemRenderer() {
      public void render(Listitem item, Object data) throws Exception {
        FormulaMetaInfo info = (FormulaMetaInfo)data;
        item.setLabel(info.getFunction());
        item.setValue(info);
      }

      @Override
      public void render(Listitem item, Object data, int index)
View Full Code Here


    }
    functionListbox.setModel(new SimpleListModel(ary));
  }
 
  public void onClick$functionListbox() {
    FormulaMetaInfo info = (FormulaMetaInfo)functionListbox.getSelectedItem().getValue();
    expression.setValue(info.getExpression());
    description.setValue(info.getDescription());
  }
View Full Code Here

    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

TOP

Related Classes of org.zkoss.zss.app.formula.FormulaMetaInfo

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.