Package org.zkoss.zul

Examples of org.zkoss.zul.Button


    if(item.isLocked()){
      codeBox.setDisabled(true);       
      divisionCombo.setDisabled(true);
      uomText.setDisabled(true);
    }
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        fillFromView(item);
        itemManager.update(item);
        refreshCaller();
        detach();           
View Full Code Here


  }

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

  private void edit(ArrayList<String> ids) {
    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

  private void edit(ArrayList<String> ids) {
    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

  private void edit(ArrayList<String> ids) {
    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

          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 {
            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

    List<Warehouse> replacements=manager.findAll();
    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

TOP

Related Classes of org.zkoss.zul.Button

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.