Package org.zkoss.zul

Examples of org.zkoss.zul.ListModelList


  public Combobox() {
    setHflex("1");
  }

  public void setSelection(List values, String selected) {
    setModel(new ListModelList(values));
    if (selected != null) {
      setValue(selected);
    }
  }
View Full Code Here


    return false;
  }

  private void searchPerformed(String searchTerm) throws Exception {
    if (backupModel == null) {
      backupModel = new ListModelList();
      for (int i = 0; i < choiceModel.size(); i++) {
        backupModel.add(choiceModel.get(i));
      }
      for (int i = 0; i < selectionModel.size(); i++) {
        backupModel.add(selectionModel.get(i));
View Full Code Here

            }
          }
        });
      }
    });
    zulListbox.setModel(new ListModelList(zuls));
  }
View Full Code Here

  static String[] skipList=new String[]{"index.zul"};
  static String path = "/test2";
  static String tempFile = "/test2/tempXYZ.zul";
 
  public MainWindow(){
    fileModel = new ListModelList();
  }
View Full Code Here

                        return;
                    }
                    Executions.activate(_desktop);
                    try
                    {
                        ListModelList dml = (ListModelList) _plotinfo.getDataModel();
                        TimeplotData td = new TimeplotData();
//                        time = time + 1000 * 60 * 60 * 8 ;
                        time = new Date().getTime();
                        td.setTime(new Date(time));
                        td.setValue(10f);
                        dml.add(td);
                    }
                    finally
                    {
                        Executions.deactivate(_desktop);
                    }
View Full Code Here

        tg.setGridStepRange(30 * 60 * 1000);
        timeplot.setWidth("100%");
        timeplot.setHeight("300px");
        plotinfo = new Plotinfo();
        plotinfo.setShowValues(true);
        ListModelList dataModel = new ListModelList(initDataMode());
        plotinfo.setDataModel(dataModel);
        plotinfo.setParent(timeplot);
        plotinfo.setTimeGeometry(tg);
        plotinfo.setValueGeometry(vg);
        timeplot.setParent(comp);
        Button btn = new Button("click");
        btn.setParent(comp);
        btn.addEventListener("onClick", new EventListener()
        {

            @Override
            public void onEvent(Event event) throws Exception
            {
                // TODO Auto-generated method stub
                ListModelList dml = (ListModelList) plotinfo.getDataModel();
                TimeplotData td = new TimeplotData();
                td.setTime(new Date(time + 1000 * 60 * 60 * 8));
                td.setValue(10f);
                dml.add(td);
            }
        });
    }
View Full Code Here

        tg.setAxisLabelsPlacement("bottom");
        timeplot.setWidth("100%");
        timeplot.setHeight("300px");
        plotinfo = new Plotinfo();
        plotinfo.setShowValues(true);
        ListModelList dataModel = new ListModelList(initDataMode());
        plotinfo.setDataModel(dataModel);
        plotinfo.setParent(timeplot);
        plotinfo.setTimeGeometry(tg);
        plotinfo.setValueGeometry(vg);
        timeplot.setParent(comp);
      
        Button btn1 = new Button("ChangeData");
        btn1.setParent(comp);
        btn1.addEventListener("onClick", new EventListener(){

            @Override
            public void onEvent(Event event) throws Exception
            {
                // TODO Auto-generated method stub
                ListModelList dataModel = (ListModelList)plotinfo.getDataModel();
                ArrayList<TimeplotData> datas = new ArrayList<TimeplotData>();
                TimeplotData pd = new TimeplotData();
                pd.setTime(new Date(new Date().getTime() + 1000 * 1));
                pd.setValue(10f);
                datas.add(pd);
                dataModel.clear();
                dataModel.addAll(datas);
            }});
    }
View Full Code Here

  final static String PATH = "/test2/";
 
  private Properties prop;

  public MainLayout() {
    fileModel = new ListModelList();
  }
View Full Code Here

    @Override
    public void doAfterCompose(Component comp) throws Exception
    {
        super.doAfterCompose(comp);
        databuff = initDataMode();
        ListModelList dataModel1 = new ListModelList(databuff.get(0));
        ListModelList dataModel2 = new ListModelList(databuff.get(1));
        ValueGeometry vg = new DefaultValueGeometry();
        vg.setGridColor("#000000");
        TimeGeometry tg = new DefaultTimeGeometry();
        tg.setGridStep(2 * 60 * 60 * 1000);
        tg.setAxisLabelsPlacement("bottom");
View Full Code Here

    public void doAfterCompose(Component comp) throws Exception
    {
        super.doAfterCompose(comp);

        databuff = initDataMode();
        ListModelList dataModel1 = new ListModelList(databuff.get(0));
        ListModelList dataModel2 = new ListModelList(databuff.get(1));
        ValueGeometry vg = new DefaultValueGeometry();
        vg.setGridColor("#000000");
        vg.setMin(8);
        vg.setMax(23);
        TimeGeometry tg = new DefaultTimeGeometry();
View Full Code Here

TOP

Related Classes of org.zkoss.zul.ListModelList

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.