Package org.zkoss.zul

Examples of org.zkoss.zul.Div


            Timeplot loadChart) {
        Hbox hbox = new Hbox();
        hbox.appendChild(getLoadChartLegend());
        hbox.setSclass("load-chart");

        Div div = new Div();
        div.appendChild(loadChart);
        div.setSclass("plannergraph");
        hbox.appendChild(div);

        loadChartPannel.appendChild(hbox);
    }
View Full Code Here


        Hbox hbox = new Hbox();
        hbox.setSclass("earned-value-chart");

        hbox.appendChild(vbox);

        Div div = new Div();
        div.appendChild(chartEarnedValueTimeplot);
        div.setSclass("plannergraph");

        hbox.appendChild(div);

        earnedValueChartPannel.appendChild(hbox);
    }
View Full Code Here

    public static Tabpanel appendLoadChartAndLegend(Tabpanel loadChartPannel,
            Emitter<Timeplot> loadChartEmitter) {
        Hbox hbox = new Hbox();
        hbox.appendChild(getLoadChartLegend());

        final Div div = new Div();
        Timeplot timePlot = loadChartEmitter.getLastValue();
        if (timePlot != null) {
            div.appendChild(timePlot);
        }
        loadChartEmitter.addListener(new IEmissionListener<Timeplot>() {

            @Override
            public void newEmission(Timeplot timePlot) {
                div.getChildren().clear();
                if (timePlot != null) {
                    div.appendChild(timePlot);
                }
            }
        });
        div.setSclass("plannergraph");
        hbox.appendChild(div);

        loadChartPannel.appendChild(hbox);
        return loadChartPannel;
    }
View Full Code Here

        Hbox hbox = new Hbox();
        hbox.setSclass("earned-value-chart");

        hbox.appendChild(vbox);

        Div div = new Div();
        div.appendChild(chartEarnedValueTimeplot);
        div.setSclass("plannergraph");

        hbox.appendChild(div);

        earnedValueChartPannel.appendChild(hbox);
    }
View Full Code Here

            append(row, new Label(data.getTotalResourcesPerDay().getAmount()
                    .toString()));
            append(row, new Label(data.getConsolidatedResourcesPerDay()
                    .getAmount().toString()));

            Div resourcesPerDayContainer = append(row, new Div());
            append(resourcesPerDayContainer,
                    data.getIntendedResourcesPerDayInput());
            Label realResourcesPerDay = append(resourcesPerDayContainer,
                    data.getRealResourcesPerDay());
            realResourcesPerDay.setStyle("float: right; padding-right: 1em;");
View Full Code Here

    int count=0;
    int start = ac - _pagesSize/2;
    start = (start+_pagesSize)>pc?pc-_pagesSize:start;
    start = start<0?0:start;
   
    Div box;
    if(ac>_pagesSize/2){
      //rewind
      link =new Label("...");
      box = new Div();
      box.setAttribute("goto",new Integer(ac-_pagesSize<0?0:ac-_pagesSize));
      box.addEventListener("onClick",pagesLinkListener);
      box.setSclass("mypaging2_page");
      box.setParent(_pagesBox);
      box.setTooltiptext("fast rewind");
      link.setParent(box);
    }else{
      box = new Div();
      box.setSclass("mypaging2_pagenon");
      box.setParent(_pagesBox);
    }
   
    for(;count<_pagesSize;count++){
      if(start+count==ac){
       
        Label lab = new Label(Integer.toString(ac+1));
        box = new Div();
        box.setSclass("mypaging2_pagesel");
        box.setParent(_pagesBox);
        lab.setParent(box);
        continue;
      }
      if(start+count<pc){
        link =new Label(Integer.toString(start+count+1));
        box = new Div();
        box.setAttribute("goto",new Integer(start+count));
        box.addEventListener("onClick",pagesLinkListener);
        box.setSclass("mypaging2_page");
        box.setParent(_pagesBox);
        link.setParent(box);
      }else{
        box = new Div();
        box.setSclass("mypaging2_pagenon");
        box.setParent(_pagesBox);
      }
    }
    if(ac+(_pagesSize/2)<pc){
      //forward
      link =new Label("...");
      box = new Div();
      box.setAttribute("goto",new Integer(ac+_pagesSize>pc?pc:ac+_pagesSize));
      box.addEventListener("onClick",pagesLinkListener);
      box.setSclass("mypaging2_page");
      box.setParent(_pagesBox);
      box.setTooltiptext("fast forward");
      link.setParent(box);
    }else{
      box = new Div();
      box.setSclass("mypaging2_pagenon");
      box.setParent(_pagesBox);
    }
   
    _pagesBox.invalidate();
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Div

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.