Package jfix.zk

Examples of jfix.zk.ActionListener


  Mediafield media = new Mediafield();

  public FileEditor() {
    media.setHeight((100 + getDesktopHeight() / 3) + "px");
    media.addUploadListener(new ActionListener() {
      public void actionPerformed(Event event) {
        if (media.getMedia() != null) {
          uploadPerformed();
        }
      }
View Full Code Here


        viewFlatDesktop));

    appendChild(workspace);
    appendChild(accessory);

    ActionListener desktopSwitch = new ActionListener() {
      public void actionPerformed(Event event) {
        switchDesktop();
      }
    };
    viewFlatDesktop.addCheckListener(desktopSwitch);
View Full Code Here

    refreshState = new NodeRefreshState();
  }

  protected void appendDesktop(NodeTable nodeTable) {
    desktopTable = nodeTable;
    desktopTable.addChangeListener(new ActionListener() {
      public void actionPerformed(Event event) {
        forceRefresh();
      }
    });
    desktopPanel = new Panel(desktopTable);
View Full Code Here

  protected Linkbutton newNavigationButton(final Node node) {
    Linkbutton button = new Linkbutton(node.getId() + " /");
    button.setDisabled(!node.isDescendant(JeaseSession.getRoots()));
    button.setTooltiptext(node.getType());
    button.addClickListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        JeaseSession.setContainer(node);
        forceRefresh();
      }
    });
View Full Code Here

  protected Linkbutton newEditButton(final Node node) {
    String label = Validations.isEmpty(node.getId()) ? node.getPath()
        : node.getId();
    Linkbutton button = new Linkbutton(label);
    button.setTooltiptext(node.getType());
    button.addClickListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        desktopTable.onSelect(node);
      }
    });
    return button;
View Full Code Here

    super.refresh();
  }

  private void initNodeConstructor() {
    nodeConstructor = new NodeConstructor();
    nodeConstructor.addSelectListener(new ActionListener() {
      public void actionPerformed(Event event) {
        onSelect(nodeConstructor.getSelectedNode());
      }
    });
    getCreateButton().setVisible(true);
View Full Code Here

      obj = nodeConstructor.getSelectedNode();
    }
    if (obj instanceof Node) {
      ObjectEditor nodeEditor = JeaseSession.getConfig().newEditor(
          (Node) obj);
      nodeEditor.addChangeListener(new ActionListener() {
        public void actionPerformed(Event event) {
          fireChangeEvent();
        }
      });
      setEditor(nodeEditor);
View Full Code Here

  public LinkEditor() {
    link.setTooltiptext(I18N.get("Open"));
    link.setImage(Images.InternetWebBrowser);
    link.setWidth("24px");
    link.addClickListener(new ActionListener() {
      public void actionPerformed(Event event) {
        if (!url.isEmpty()) {
          getRoot().appendChild(new WebBrowser(url.getText()));
        }
      }
    });
    browse.addClickListener(new ActionListener() {
      public void actionPerformed(Event event) {
        browsePerformed();
      }
    });
  }
View Full Code Here

      path = path.substring(3);
    }
    final NodeBrowserWindow nodeBrowserWindow = new NodeBrowserWindow(
        Nodes.getByPath(path));
    nodeBrowserWindow.setTitle(I18N.get("Browser"));
    nodeBrowserWindow.addCloseListener(new ActionListener() {
      public void actionPerformed(Event event) {
        if (nodeBrowserWindow.getSelectedNode() != null) {
          url.setText("./~"
              + nodeBrowserWindow.getSelectedNode().getPath());
        }
View Full Code Here

  }

  private Button newAddButton() {
    Button button = new Button("", Images.ListAdd);
    button.setHflex("1");
    button.addClickListener(new ActionListener() {
      public void actionPerformed(Event event) {
        addPerformed();
      }
    });
    return button;
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.