Examples of appendChild()


Examples of org.zkoss.zul.Center.appendChild()

    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);
View Full Code Here

Examples of org.zkoss.zul.Columns.appendChild()

    super();
    setHflex("1");
    Columns header = new Columns();
    for(String col : columns) {
      org.zkoss.zul.Column column = new org.zkoss.zul.Column(col);
      header.appendChild(column);
    }
    appendChild(header);
    appendChild(new Rows());
  }
View Full Code Here

Examples of org.zkoss.zul.Div.appendChild()

      String[] ary = (String[]) data;
      Div div = new Div();
      Image icon = new Image();
      icon.setStyle("padding: 0px 10px");
      icon.setSrc("/img/Centigrade-Widget-Icons/EnvelopeOpen-16x16.png");
      div.appendChild(icon);
      new Label(ary[0]).setParent(div);
      row.appendChild(div);
      new Label(ary[1]).setParent(row);
      new Label(ary[2]).setParent(row);
      new Label(ary[3]).setParent(row);
View Full Code Here

Examples of org.zkoss.zul.Grid.appendChild()

 
  private void refresh(){
    Grid groupsGrid=(Grid)getFellow("groupsGrid");
    groupsGrid.removeChild(groupsGrid.getRows());
    Rows newRows=new Rows();
    groupsGrid.appendChild(newRows);
    feedGrid();
  }
 
  private void feedGrid() {
    Grid companiesGrid=(Grid)getFellow("groupsGrid");
View Full Code Here

Examples of org.zkoss.zul.Groupbox.appendChild()

                Groupbox groupbox = new Groupbox();
                groupbox.setClosable(true);
                Caption caption = new org.zkoss.zul.Caption();
                caption.setLabel(synchronizationInfo.getAction());
                groupbox.appendChild(caption);
                row.appendChild(groupbox);

                if (synchronizationInfo.isSuccessful()) {
                    groupbox.appendChild(new Label(_("Completed")));
                } else {
View Full Code Here

Examples of org.zkoss.zul.Hbox.appendChild()

    /* Flag-image */
    final Image img = new Image();
    final String path = "/images/countrycode_flags/";
    final String flag = StringUtils.lowerCase(dummyBean.getCountry()) + ".gif";
    img.setSrc(path + flag);
    hbox.appendChild(img);

    final Separator sep = new Separator();
    hbox.appendChild(sep);

    /* Country */
 
View Full Code Here

Examples of org.zkoss.zul.Listbox.appendChild()

  throws javax.servlet.ServletException, java.io.IOException {
    final Desktop desktop = getDesktop(request);
    Bridge bridge = Bridge.start(getServletContext(), request, response, desktop);
    try {
      final Listbox listbox = (Listbox) ((Page)desktop.getPages().iterator().next()).getRoots().iterator().next();
      listbox.appendChild(new Listitem("Ajax " + ++cnt));
      response.getWriter().write(bridge.getResult());
    } finally {
      bridge.close();
    }
  }
View Full Code Here

Examples of org.zkoss.zul.Listcell.appendChild()

    listitem.setValue(obj);
    for (int i = 0; i < model.getColumns().length; i++) {
      Object cellObj = model.getCheckedValue(obj, i);
      if (cellObj instanceof View) {
        Listcell cell = new Listcell();
        cell.appendChild(((View) cellObj).getComponent());
        listitem.appendChild(cell);
      } else if (cellObj instanceof Component) {
        Listcell cell = new Listcell();
        cell.appendChild((Component) cellObj);
        listitem.appendChild(cell);
View Full Code Here

Examples of org.zkoss.zul.Listitem.appendChild()

            while(rs.next()){
              //System.out.println("in rs.next");
              Listitem newListItem = new Listitem();
              Date date = rs.getDate("time");
              SimpleDateFormat sdf=new SimpleDateFormat("M/dd h");
              newListItem.appendChild(new Listcell(rs.getString("filename")));
              newListItem.appendChild(new Listcell(rs.getString("who")));
              newListItem.appendChild(new Listcell(String.valueOf(sdf.format(date))));
              listbox.appendChild(newListItem);
            }
            //close the jdbc connection
View Full Code Here

Examples of org.zkoss.zul.Menu.appendChild()

  private void createMenubar() {
    Menubar menubar=(Menubar)getFellow("menubar");
    Menu actionsMenu=new Menu("Actions");
    menubar.appendChild(actionsMenu);
    Menupopup popup=new Menupopup();
    actionsMenu.appendChild(popup);
    Menuitem createItem =new Menuitem("Create");
    createItem.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        Map<String, ArrayList<String>> map=new HashMap<String, ArrayList<String>>();
        ArrayList<String> options=new ArrayList<String>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.