Package org.zkoss.zul

Examples of org.zkoss.zul.Button$EncodedHref


    codeText.setDisabled(true);
   
    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

        cmbox.setDisabled(true);
      }
      if(options.get(0).equals("edit")){
        cbox.setDisabled(true);
       
        Button okButton=new Button("OK");
        okButton.addEventListener("onClick", new EventListener(){

          public void onEvent(Event event) throws Exception {
            c.getDescription().setShortDescription(sbox.getText());
            c.getDescription().setLongDescription(dbox.getText());
            c.getDescription().setComment(cmbox.getText());
View Full Code Here

   
  }

  private void manageOption(String string) {
    cbox.setDisabled(false);   
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){

      public void onEvent(Event event) throws Exception {
        //init();
        UnitOfMeasure divi=new UnitOfMeasure();
        divi.setName(cbox.getText());
View Full Code Here

    t.setWidth("98%");
    t.setMultiline(true);
    t.setRows(20);
    t.setParent(w);
    t.setConstraint("no empty");
    final Button ok = new Button("OK");
    final Button cancel = new Button("Cancel");
    ok.setParent(w);
    ok.addEventListener(Events.ON_CLICK,
        new EventListener() {
      public void onEvent(Event e) throws Exception {
        String val = t.getValue();
        String[] vals = val.trim().split("\n");
        final StringBuffer sb = new StringBuffer();
        fileModel.clear();
        final String r = getDesktop().getWebApp().getRealPath("/");
        final File test2 = new File(r, PATH);
        final File[] files = test2.listFiles(new MyFilenameFilter("", false));
        for(int j = 0; j < vals.length; j++) {
          boolean exist = false;
          for (int i = 0; i < files.length; i++) {
            if (vals[j].trim().equalsIgnoreCase(files[i].getName())) {
              fileModel.add(files[i]);
              exist = true;
              break;
            }
          }
          if (!exist) sb.append(vals[j].trim()).append("\n");
        }
        if (sb.toString().trim().length() > 0) t.setValue("Failed File Name:\n" + sb.toString());
        w.insertBefore(new Label(" \nsuccess : [" + fileModel.size() + "] failed : [" + (vals.length - fileModel.size())+ "]"),
            (Component)w.getChildren().get(0));
        ok.detach();
        cancel.detach();
      }
    });
    cancel.setParent(w);
    cancel.addEventListener(Events.ON_CLICK,
        new EventListener() {
      public void onEvent(Event e) throws Exception {
        w.detach();
      }
    });
View Full Code Here

                item.appendChild(cell);
            }
        }

        private Button getTransferButton(final Order order) {
            Button transferButton = new Button(_("Transfer"));
            transferButton.addEventListener(Events.ON_CLICK,
                    new EventListener() {
                        @Override
                        public void onEvent(Event event) {
                            try {
                                transferOrdersModel.transfer(order);
View Full Code Here

        }

        private Button createButton(String image, String tooltip,
                String hoverImage, String styleClass,
                EventListener eventListener) {
            Button result = new Button("", image);
            result.setHoverImage(hoverImage);
            result.setSclass(styleClass);
            result.setTooltiptext(tooltip);
            result.addEventListener(Events.ON_CLICK, eventListener);
            return result;
        }
View Full Code Here

            item.appendChild(listcell);
        }

        private Button createRemoveButton(
                final CalendarAvailability calendarAvailability) {
            Button result = createButton("/common/img/ico_borrar1.png",
                    _("Delete"), "/common/img/ico_borrar.png", "icono",
                    new EventListener() {
                        @Override
                        public void onEvent(Event event) {
                            baseCalendarModel
View Full Code Here

        }

        private Button createButton(String image, String tooltip,
                String hoverImage, String styleClass,
                EventListener eventListener) {
            Button result = new Button("", image);
            result.setHoverImage(hoverImage);
            result.setSclass(styleClass);
            result.setTooltiptext(tooltip);
            result.addEventListener(Events.ON_CLICK, eventListener);
            return result;
        }
View Full Code Here

            hbox.appendChild(removeButton(element));
            return hbox;
        }

        private Button editResourceAllocationButton(final LimitingResourceQueueElementDTO element) {
            Button result = new Button("", "/common/img/ico_editar1.png");
            result.setHoverImage("/common/img/ico_editar.png");
            result.setSclass("icono");
            result.setTooltiptext(_("Edit queue-based resource element"));
            result.addEventListener(Events.ON_CLICK, new EventListener() {

                @Override
                public void onEvent(Event event) {
                    LimitingResourceQueueElement queueElement = element.getOriginal();
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Button$EncodedHref

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.