Package org.zkoss.zul

Examples of org.zkoss.zul.Label


    }

    public void onCreate() {
        getClientInfo();

        Label orgNameLabel = (Label) this.getFellow("orgName");
        Label roleNameLabel = (Label) this.getFellow("roleName");
        Label userNameLabel = (Label) this.getFellow("userName");

        UserInfo userInfo = (UserInfo) Sessions.getCurrent().getAttribute("userInfo");
        List dutyInfoList = (List) Sessions.getCurrent().getAttribute("dutyInfoList");
        DutyInfo dutyInfo = (DutyInfo) dutyInfoList.get(0);
        System.out.println("auth type id===============:" + dutyInfo.getTypeId() + " " + dutyInfo.getAuthName());
        orgNameLabel.setValue(userInfo.getOrgName());
        userNameLabel.setValue(userInfo.getUserName());
        roleNameLabel.setValue(dutyInfo.getAuthName());

        SqlSession session = IBatisFactory.getInstance().getSqlSession();

        if (funFormList == null) {
View Full Code Here


import org.zkoss.zul.Window;

public class DetachComponentComposer extends GenericForwardComposer {
 
  public void onClick$button(){
    Label label  =new Label();
    Events.sendEvent(label, new Event("onTest",label));
  }
View Full Code Here

  }
  void onCellEvent(CellEvent event){
    Sheet sheet = event.getSheet();
    lastRow = event.getRow();
    lastCol = event.getColumn();
    Label lbpos = (Label)getFellow("lbpos");
    Textbox tbxval = (Textbox)getFellow("tbxval");
   
    Cell cell = sheet.getCell(lastRow, lastCol);
    lbpos.setValue(Indexes.toA1(lastRow,lastCol,false,false));
    tbxval.setValue(cell == null ? "" : cell.getEditText());
  }
View Full Code Here

    winUserBar.setBorder("none");

    Hbox hbox = new Hbox();
    hbox.setParent(winUserBar);

    userLabel = new Label();
    userLabel.setStyle("text-align: right; font-size: 10px;");
    userLabel.setParent(hbox);
    userLabelText = new Label();
    userLabelText.setStyle("padding-left: 2px; text-align: right; color: blue; font-size: 10px;");
    userLabelText.setParent(hbox);

    tenantLabel = new Label();
    tenantLabel.setStyle("text-align: right; font-size: 10px;");
    tenantLabel.setParent(hbox);
    tenantLabelText = new Label();
    tenantLabelText.setStyle("padding-left: 2px; text-align: right; color: blue; font-size: 10px;");
    tenantLabelText.setParent(hbox);

    officeLabel = new Label();
    officeLabel.setStyle("text-align: right; font-size: 10px;");
    officeLabel.setParent(hbox);
    officeLabelText = new Label();
    officeLabelText.setStyle("padding-left: 2px; text-align: right; color: blue; font-size: 10px;");
    officeLabelText.setParent(hbox);

    space = new Space();
    space.setWidth("5px");
View Full Code Here

    this.setVisible(true);

    Panelchildren pc = new Panelchildren();
    pc.setParent(this);

    Label l = new Label();
    l.setValue("You are using ...");
    l.setParent(pc);

    Button btn = new Button();
    btn.addEventListener("onClick", new EventListener() {

      public void onEvent(Event event) throws Exception {
View Full Code Here

    divFooter.setParent(this.bl_south);

    final Hr hr2 = new Hr();
    hr2.setParent(divFooter);

    final Label footerLabel = new Label();
    footerLabel.setValue(" Help to prevent the global warming by writing cool software.");
    footerLabel.setStyle("align:center; padding-top:0px; font-family:Verdana;  font-size: 0.6em; ");
    footerLabel.setParent(divFooter);
  }
View Full Code Here

    addEventListener("onOK", new OnCloseListener());

    Vbox vbox = new Vbox();
    vbox.setParent(this);

    Label label = new Label();
    label.setValue(question);
    label.setParent(vbox);

    Separator sp = new Separator();
    sp.setBar(true);
    sp.setParent(vbox);
View Full Code Here

    } else {

      div_chartArea.getChildren().clear();

      Label label = new Label();
      label.setValue("This customer have no data for showing in a chart!");

      label.setParent(div_chartArea);

    }
  }
View Full Code Here

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

    /* Country */
    final Label label = new Label();
    label.setValue(dummyBean.getCountry());
    hbox.appendChild(label);
    lc.setParent(item);

    lc = new Listcell(dummyBean.getCountryName());
    lc.setParent(item);
View Full Code Here

      titleBox.setHeight("15px");
      titleBox.setWidth("100%");
      titleBox.setStyle("background-color: red;");
      titleBox.setParent(vbox);

      popLabel = new Label();
      popLabel.setParent(titleBox);
      popLabel.setValue("Customer Details");
      popLabel.setStyle("color: white; ");

    } else {
      // clear old stuff
      vbox.getChildren().clear();
      titleBox = new Hbox();
      titleBox.setHeight("15px");
      titleBox.setWidth("100%");
      titleBox.setStyle("background-color: red;");
      titleBox.setParent(vbox);
      popLabel = new Label();
      popLabel.setParent(titleBox);
      popLabel.setValue("Customer Details");
      popLabel.setStyle("color: white; ");
      popup.close();
    }

    Component comp = event.getTarget();

    if (comp instanceof Listcell) {

      // System.out.println("1: " + comp.toString());
      // System.out.println("2: " + ((Listcell)
      // comp).getLabel().toString());
      // System.out.println("3: " + comp.getParent().toString());

      // get the parent object of the listcell, should be a listitem
      Component parentComponent = comp.getParent();
      if (parentComponent instanceof Listitem) {

        // get a list of listcell that resides in the listItem
        List list = parentComponent.getChildren();

        // for all listcells we add a label with its value
        for (Object object : list) {
          if (object instanceof Listcell) {
            popLabel = new Label();
            popLabel.setParent(vbox);
            popLabel.setValue(((Listcell) object).getLabel().toString());
          }

        }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Label

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.