Package org.zkoss.zul

Examples of org.zkoss.zul.Textbox$AuxInfo


    }

    public void objToView(Object obj) {
        Org org = (Org) obj;

        Textbox orgNameTB = (Textbox) getFellow("orgName");
        Combobox orgTypeCB = (Combobox) getFellow("orgType");
        Combobox orgPropertyCB = (Combobox) getFellow("orgProperty");

        orgNameTB.setText(org.getOrgName());
        setSelectedBy(orgTypeCB, org.getOrgType());
        setSelectedBy(orgPropertyCB, org.getOrgProperty());

    }
View Full Code Here


            }
        }

        var.setOperateBy(operateBy);

        Textbox orgNameTB = (Textbox) getFellow("orgName");
        Combobox orgTypeCB = (Combobox) getFellow("orgType");
        Combobox orgPropertyCB = (Combobox) getFellow("orgProperty");


        var.setOrgName(orgNameTB.getText());
        if (orgTypeCB.getSelectedItem() != null) {
            var.setOrgType(orgTypeCB.getSelectedItem().getValue().toString());
        }

        if (orgPropertyCB.getSelectedItem() != null) {
View Full Code Here

    String defaultUrl = "main.zul";
    private static final Logger logger = LoggerFactory.getLogger(RcvLogin.class);

    public void login() {
        logger.info("User login !!");
        Textbox accountTextbox = (Textbox) this.getFellow("accountTextbox");
        Textbox passwordTextbox = (Textbox) this.getFellow("passwordTextbox");

        String account = accountTextbox.getValue().toString();
        String password = passwordTextbox.getValue().toString();
        logger.debug("User Input: account: (" + account + ") password: (" + password + ")");

        // WARNING !! , WE DO NOT SAVE CLIENT'S PASSWORD
        //               ONLY CLIENT KNOWS HIS PASSWORD
View Full Code Here

            if (o.getOrgId().equals(form.getProviderId())) {
                providerCB.setSelectedItem(item);
            }
        }

        Textbox serviceNameTB = (Textbox) getFellow("serviceName");
        Textbox serviceUrlTB = (Textbox) getFellow("serviceUrl");
        Textbox parameterDescriptionTB = (Textbox) getFellow("parameterDescription");
        Textbox serviceKeyTB = (Textbox) getFellow("serviceKey");

        serviceNameTB.setText(form.getServiceName());
        serviceUrlTB.setText(form.getServiceUrl());
        parameterDescriptionTB.setText(form.getParameterDescription());
        serviceKeyTB.setText(form.getServiceKey());


        Combobox connectFrequencyCB = (Combobox) getFellow("connectFrequency");
        Iterator cfItr = connectFrequencyCB.getItems().iterator();
        while (cfItr.hasNext()) {
            Comboitem item = (Comboitem) cfItr.next();
            String connectFrequencyValue = item.getValue().toString();
            if (connectFrequencyValue.equals(form.getConnectFrequency())) {
                connectFrequencyCB.setSelectedItem(item);
            }
        }

        Textbox serviceKeyPasswordTB = (Textbox) getFellow("serviceKeyPassword");
        serviceKeyPasswordTB.setText(form.getServiceKeyPassword());
    }
View Full Code Here

         object.setOperateBy(operateBy);

        Combobox providerCB = (Combobox) getFellow("provider");
        object.setProvider((Org) providerCB.getSelectedItem().getValue());

        Textbox serviceNameTB = (Textbox) getFellow("serviceName");
        Textbox serviceUrlTB = (Textbox) getFellow("serviceUrl");
        Textbox parameterDescriptionTB = (Textbox) getFellow("parameterDescription");
        Textbox serviceKeyTB = (Textbox) getFellow("serviceKey");

        object.setServiceName(serviceNameTB.getText());
        object.setServiceUrl(serviceUrlTB.getText());
        object.setParameterDescription(parameterDescriptionTB.getText());
        object.setServiceKey(serviceKeyTB.getText());


        Combobox connectFrequencyCB = (Combobox) getFellow("connectFrequency");
        object.setConnectFrequency(
                connectFrequencyCB.getSelectedItem().getValue().toString());

        Textbox serviceKeyPasswordTB = (Textbox) getFellow("serviceKeyPassword");
        object.setServiceKeyPassword(serviceKeyPasswordTB.getText());

        return object;
    }
View Full Code Here

    public void objToView(Object obj) {
        UserForm var = (UserForm) obj;

        Combobox orgIdCB = (Combobox) getFellow("orgId");
        Textbox userNameTB = (Textbox) getFellow("userName");
        Textbox accountTB = (Textbox) getFellow("account");
        Textbox passwdTB = (Textbox) getFellow("passwd");

        Iterator supplierIt = orgIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
            Org s = (Org) item.getValue();

            logger.debug("" + var.getOrgId() + ", " + s.getOrgId());
            if (var.getOrgId() != null && var.getOrgId() == s.getOrgId()) {
                orgIdCB.setSelectedItem(item);
            }
        }
        userNameTB.setText(var.getUserName());
        accountTB.setText(var.getAccount());
        passwdTB.setText(var.getPasswd());
    }
View Full Code Here

            } catch (Exception iae) {
                iae.printStackTrace();
            }
        }
        Combobox orgIdCB = (Combobox) getFellow("orgId");
        Textbox userNameTB = (Textbox) getFellow("userName");
        Textbox accountTB = (Textbox) getFellow("account");
        Textbox passwdTB = (Textbox) getFellow("passwd");

        var.setOrg((Org) orgIdCB.getSelectedItem().getValue());
        var.setUserName(userNameTB.getText());
        var.setAccount(accountTB.getText());
        var.setPasswd(passwdTB.getText());


        return var;
    }
View Full Code Here

        }

        obj.setOperateBy(operateBy);

        Combobox paraCatalogueCB = (Combobox) getFellow("paraCatalogue");
        Textbox paraNameTB = (Textbox) getFellow("paraName");
        Textbox paraValueTB = (Textbox) getFellow("paraValue");
        Textbox paraI18nTB = (Textbox) getFellow("paraI18n");

        obj.setParaCatalogue( paraCatalogueCB.getSelectedItem().getValue().toString());
        obj.setParaName(paraNameTB.getText());
        obj.setParaValue(paraValueTB.getText());
        obj.setParaI18n(paraI18nTB.getText());



        return obj;
    }
View Full Code Here

    public void objToView(Object obj) {
        Para var = (Para) obj;

        Combobox paraCatalogueCB = (Combobox) getFellow("paraCatalogue");
        Textbox paraNameTB = (Textbox) getFellow("paraName");
        Textbox paraValueTB = (Textbox) getFellow("paraValue");
        Textbox paraI18nTB = (Textbox) getFellow("paraI18n");

       
        List items = paraCatalogueCB.getItems();
        Iterator it = items.iterator();
        while(it.hasNext()) {
            Comboitem item = (Comboitem)it.next();
            if(item.getValue().toString().equals(var.getParaCatalogue())) {
                paraCatalogueCB.setSelectedItem(item);
            }
           
        }
        paraNameTB.setText(var.getParaName());
        paraValueTB.setText(var.getParaValue());
        paraI18nTB.setText(var.getParaI18n());

    }
View Full Code Here

      public void onEvent(Event event) throws Exception {
        onCellEvent((CellEvent)event);
      }
    });
   
    final Textbox tbxval = (Textbox)getFellow("tbxval");
    tbxval.addEventListener("onChange",new EventListener(){
      public void onEvent(Event event) throws Exception {
        doCellChange(tbxval.getValue());
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Textbox$AuxInfo

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.