Package org.zkoss.zul

Examples of org.zkoss.zul.Div


    cap.setParent(pl);
    Panelchildren plc = new Panelchildren();
    plc.setParent(pl);

    // Buttons Toolbar/Timer
    Div div = new Div();
    div.setStyle("padding: 0px");
    div.setParent(cap);
    Hbox hbox = new Hbox();
    hbox.setPack("stretch");
    hbox.setWidth("100%");
    hbox.setParent(div);
    Toolbar toolbarRight = new Toolbar();
View Full Code Here


    Center ct = new Center();
    ct.setSclass("FDCenterNoBorder");
    ct.setStyle("background-color: white");
    ct.setParent(bl);

    Div container = new Div();
    container.setStyle("padding: 4px;");
    ct.appendChild(container);

    Script init = new Script();
    init.setContent("function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'af'}, '" + container.getUuid() + "'); };");
    win.appendChild(init);

    Script translate = new Script();
    translate.setSrc("http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit");
    win.appendChild(translate);
View Full Code Here

    cap.setParent(youTubePanel);
    Panelchildren plc = new Panelchildren();
    plc.setParent(youTubePanel);

    // Buttons Toolbar/Timer
    Div div = new Div();
    div.setStyle("padding: 0px");
    div.setParent(cap);
    Hbox hbox = new Hbox();
    hbox.setPack("stretch");
    hbox.setWidth("100%");
    hbox.setParent(div);
    Toolbar toolbarRight = new Toolbar();
View Full Code Here

    cap.setParent(pl);
    Panelchildren plc = new Panelchildren();
    plc.setParent(pl);

    // Buttons Toolbar/Timer
    Div div = new Div();
    div.setStyle("padding: 0px");
    div.setParent(cap);
    Hbox hbox = new Hbox();
    hbox.setPack("stretch");
    hbox.setWidth("100%");
    hbox.setParent(div);
    Toolbar toolbarRight = new Toolbar();
View Full Code Here

    west.setVisible(false);

    final North north = bl.getNorth();
    north.setHeight(north.getHeight() + "px");

    final Div div = (Div) north.getFellow("divDropDownMenu");

    final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
    menuBar.setVisible(true);

    // generate the menu from the menuXMLFile
    getDropDownMenuFactory().addMenu(menuBar);

    final Menuitem changeToTreeMenu = new Menuitem();
    changeToTreeMenu.setLabel(Labels.getLabel("menu_Item_backToTree"));
    changeToTreeMenu.setImage("/images/icons/refresh2_yellow_16x16.gif");
    changeToTreeMenu.setParent(menuBar);
    changeToTreeMenu.addEventListener("onClick", new EventListener() {
      @Override
      public void onEvent(Event event) throws Exception {
        // get an instance of the borderlayout defined in the
        // index.zul-file
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        // get an instance of the searched west layout area
        final West west = bl.getWest();
        west.setVisible(true);

        final North north = bl.getNorth();

        final Div div = (Div) north.getFellow("divDropDownMenu");

        final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
        menuBar.getChildren().clear();
        menuBar.setVisible(false);

        // set the MenuOffset for correct calculating content height.
        final Checkbox cb = (Checkbox) Path.getComponent("/outerIndexWindow/CBtreeMenu");
View Full Code Here

    Button btnOK = new Button();
    btnOK.setLabel("OK");
    btnOK.addEventListener("onClick", new OnCloseListener());
    btnOK.setParent(south);

    Div divCenter = new Div();
    divCenter.setWidth("100%");
    divCenter.setHeight("100%");
    divCenter.setParent(center);

    // Paging
    this._paging = new Paging();
    this._paging.setDetailed(true);
    this._paging.addEventListener("onPaging", new OnPagingEventListener());
View Full Code Here

  private Cell doGetTotalCountByCountries() {

    final List<DummyBean> list = getLoginLoggingService().getTotalCountByCountries();
    final int recCount = getLoginLoggingService().getTotalCountOfLogs();

    final Div div = new Div();
    div.setHeight("100%");
    div.setWidth("100%");

    final Panel panel = new Panel();
    panel.setTitle(Labels.getLabel("panelTotalCount.Title"));
    panel.setBorder("none");
    panel.setHeight("100%");
View Full Code Here

    final ListLongSumBean<DummyBean> listIntegerSumBean = getLoginLoggingService().getMonthlyCountByCountries(aMonth, aYear);

    final List<DummyBean> list = listIntegerSumBean.getList();
    final long recCount = listIntegerSumBean.getSum();

    final Div div = new Div();
    div.setHeight("100%");
    div.setWidth("100%");

    final Panel panel = new Panel();
    panel.setTitle(Labels.getLabel("panelMonthlyCount.Title") + " " + (aMonth + 1) + "/" + aYear);
    panel.setBorder("none");
    panel.setHeight("100%");
View Full Code Here

    final ListLongSumBean<DummyBean> listIntegerSumBean = getLoginLoggingService().getDailyCountByCountries(aDate);

    final List<DummyBean> list = listIntegerSumBean.getList();
    final long recCount = listIntegerSumBean.getSum();

    final Div div = new Div();
    div.setHeight("100%");
    div.setWidth("100%");

    final Panel panel = new Panel();
    panel.setTitle(Labels.getLabel("panelDailyCount.Title") + ": " + getDateTime(aDate));
    panel.setBorder("none");
    panel.setHeight("100%");
View Full Code Here

    Center center2 = new Center();
    center2.setBorder("none");
    center2.setFlex(true);
    center2.setParent(bl2);
    // Div Center area
    Div divCenter2 = new Div();
    divCenter2.setWidth("100%");
    divCenter2.setHeight("100%");
    divCenter2.setParent(center2);

    // Listbox
    this.listbox = new Listbox();
    // listbox.setStyle("border: none;");
    this.listbox.setHeight("290px");
    this.listbox.setVisible(true);
    this.listbox.setParent(divCenter2);
    this.listbox.setItemRenderer(new SearchBoxItemRenderer());

    Listhead listhead = new Listhead();
    listhead.setParent(this.listbox);
    Listheader listheader = new Listheader();
    listheader.setSclass("FDListBoxHeader1");
    listheader.setParent(listhead);
    listheader.setLabel(this._listHeader1);

    South south2 = new South();
    south2.setBorder("none");
    south2.setHeight("26px");
    south2.setParent(bl2);
    // hbox for holding the Textbox + SearchButton
    Hbox hbox = new Hbox();
    hbox.setPack("stretch");
    hbox.setStyle("padding-left: 5px");
    hbox.setWidth("100%");
    hbox.setHeight("27px");
    hbox.setParent(south2);
    // textbox for inserting the search parameter
    this._textbox = new Textbox();
    this._textbox.setWidth("100%");
    this._textbox.setMaxlength(20);
    this._textbox.setParent(hbox);
    // serachButton
    this._searchButton = new Button();
    this._searchButton.setImage("/images/icons/search.gif");
    this._searchButton.addEventListener("onClick", new OnSearchListener());
    this._searchButton.setParent(hbox);

    South south = new South();
    south.setBorder("none");
    south.setHeight("30px");
    south.setParent(bl);

    Div divSouth = new Div();
    divSouth.setWidth("100%");
    divSouth.setHeight("100%");
    divSouth.setParent(south);

    Separator sep = new Separator();
    sep.setBar(true);
    sep.setOrient("horizontal");
    sep.setParent(divSouth);
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.