Package jfix.zk

Examples of jfix.zk.ActionListener


          return "* (" + Revisions.getNumber(Content.class) + ")";
        }
      }
    });

    emptyTrash.addClickListener(new ActionListener() {
      public void actionPerformed(Event event) {
        empyTrashPerformed();
      }
    });

    purge.addClickListener(new ActionListener() {
      public void actionPerformed(Event event) {
        purgePerformed();
      }
    });

View Full Code Here


    return type.getSelectedValue() != null ? (Class<Content>) type
        .getSelectedValue().getClass() : Content.class;
  }

  private void empyTrashPerformed() {
    Modal.confirm(I18N.get("Are_you_sure"), new ActionListener() {
      public void actionPerformed(Event event) {
        Contents.emptyTrash();
        Modal.info(I18N.get("Action_performed"));
        refresh();
      }
View Full Code Here

      }
    });
  }

  private void purgePerformed() {
    Modal.confirm(I18N.get("Are_you_sure"), new ActionListener() {
      public void actionPerformed(Event event) {
        int result = purge(getSelectedType(), count.intValue(),
            days.intValue());
        Modal.info(I18N.get("Revisions_purged") + ": " + result);
        refresh();
View Full Code Here

      initLinkcheck();
    }
  }

  private void initLinkcheck() {
    linkcheck.addClickListener(new ActionListener() {
      public void actionPerformed(Event event) {
        linkcheckPerformed();
      }
    });
    getLeftbox().appendChild(linkcheck);
View Full Code Here

  private void linkcheckPerformed() {
    if (!Linkchecker.isActive()
        && linkcheck.getLabel().equals(I18N.get("Start"))) {
      Linkchecker.start();
      Modal.info(I18N.get("In_Progress"), new ActionListener() {
        public void actionPerformed(Event event) {
          refresh();
        }
      });
    } else {
View Full Code Here

  protected void onSelect(Object obj) {
    final Linkcheck linkcheck = (Linkcheck) obj;
    final Content content = (Content) Nodes.getByPath(linkcheck.getPath());
    if (content != null) {
      NodeEditor editor = Registry.getEditor(content);
      editor.addChangeListener(new ActionListener() {
        public void actionPerformed(Event event) {
          Linkchecker.clear(linkcheck.getPath());
          Linkchecker.check(content);
          refresh();
        }
View Full Code Here

  public WebBrowser(String url) {
    setTitle(url);
    setPosition("center");
    setSizable(true);
    doHighlighted();
    addEventListener(Events.ON_SIZE, new ActionListener() {
      public void actionPerformed(Event event) {
        resize(((SizeEvent) event).getWidth(),
            ((SizeEvent) event).getHeight());
      }
    });
View Full Code Here

    setHeight(height);
  }

  private Linkbutton newResizeButton(final String label, final String width,
      final String height) {
    return new Linkbutton(label, new ActionListener() {
      public void actionPerformed(Event event) {
        resize(width, height);
      }
    });
  }
View Full Code Here

  Selectbutton content = new Selectbutton();
  Button browse = new Button(I18N.get("Browser"), Images.UserHome);

  public ReferenceEditor() {
    content.addSelectListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        contentSelected((Content) content.getSelectedValue());
      }
    });
    browse.addClickListener(new ActionListener() {
      public void actionPerformed(Event event) {
        browsePerformed();
      }
    });
  }
View Full Code Here

    appendDesktop(new ContainerTable());
  }

  private void appendNavigation() {
    navigationTree = new NavigationTree();
    navigationTree.addSelectListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        refresh();
      }
    });
    navigationTree.addChangeListener(new ActionListener() {
      public void actionPerformed(Event event) {
        forceRefresh();
      }
    });
    navigationPanel = new Panel(navigationTree);
View Full Code Here

TOP

Related Classes of jfix.zk.ActionListener

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.