Package org.zkoss.zul

Examples of org.zkoss.zul.Button.addEventListener()


    setViewMode(EDIT_MODE);
    final OrganizationGroup org=organizationGroupManager.find(new Long(ids.get(0)));
    obox.setDisabled(true);
    fillFromDB(org);
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        fillFromView(org);
        organizationGroupManager.update(org);
        refreshCaller();
        detach();           
View Full Code Here


  private void create() {

    setViewMode(CREATE_MODE);
    setupCombos();
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        OrganizationGroup org=new OrganizationGroup();
        fillFromView(org);
        organizationGroupManager.create(org);
        refreshCaller();
View Full Code Here

    setViewMode(EDIT_MODE);
    final Company c=manager.find(new Long(ids.get(0)));
    codeText.setDisabled(true);
    fillFromDB(c);
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        fillFromView(c);
        manager.update(c);
        refreshCaller();
        detach();           
View Full Code Here

  private void create() {
    setViewMode(CREATE_MODE);
    setupCombos();
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        Company comp=new Company();
        fillFromView(comp);
        manager.create(comp);
        refreshCaller();
View Full Code Here

    setViewMode(EDIT_MODE);
    final Organization organization=organizationManager.find(new Long(ids.get(0)));
    organizationBox.setDisabled(true);
    fillFromDB(organization);
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        fillFromView(organization);
        organizationManager.update(organization);
        refreshCaller();
        detach();           
View Full Code Here

  private void create() {
    setViewMode(CREATE_MODE);
    setupCombos();
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        Organization org=new Organization();
        fillFromView(org);
        organizationManager.create(org);
        refreshCaller();
View Full Code Here

          warehousesCombo.appendChild(item);
        }


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

          public void onEvent(Event event) throws Exception {
            Warehouse comp=manager.findByName(warehousesCombo.getText()).get(0);
            if(nameBox.getText().equals("")){
              Messagebox.show("Name is empty!", "Error", Messagebox.YES , null);
View Full Code Here

    for (Warehouse replacement : replacements) {
      Comboitem item=new Comboitem(replacement.getName());
      warehousesCombo.appendChild(item);
    }
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        if(nameBox.getText().equals("")){
          Messagebox.show("Name is empty!", "Error", Messagebox.YES , null);
          nameBox.focus();
          return;
View Full Code Here

   
    if(!ids.isEmpty()){
      final Division division=manager.find(new Long(ids.get(0)));
      fillFromDB(division);
      Button okButton=new Button("OK");
      okButton.addEventListener("onClick", new EventListener(){
        public void onEvent(Event event) throws Exception {
          fillFromView(division);
          manager.update(division);
          detach();           
        }
View Full Code Here

  }

  private void create() {
    setViewMode(CREATE_MODE)
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        Division divi=new Division();       
        fillFromView(divi);
        manager.create(divi);
        detach();           
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.