Package jfix.zk

Examples of jfix.zk.ActionListener


  }

  private Linkbutton newGoHomeButton() {
    Linkbutton button = new Linkbutton(null, Images.GoHome);
    button.setTooltiptext(I18N.get("Go_Home"));
    button.addClickListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        refreshModel(JeaseSession.getRoots());
      }
    });
    return button;
View Full Code Here


  }

  private void browsePerformed() {
    final NodeBrowserWindow nodeBrowserWindow = new NodeBrowserWindow(
        (Node) content.getSelectedValue());
    nodeBrowserWindow.addCloseListener(new ActionListener() {
      public void actionPerformed(Event event) {
        if (nodeBrowserWindow.getSelectedNode() != null) {
          content.setSelectedValue(nodeBrowserWindow
              .getSelectedNode());
          contentSelected((Content) content.getSelectedValue());
View Full Code Here

  }

  private Linkbutton newGoIntoButton() {
    Linkbutton button = new Linkbutton(null, Images.GoJump);
    button.setTooltiptext(I18N.get("Go_Into"));
    button.addClickListener(new ActionListener() {
      public void actionPerformed(Event evt) {
        refreshModel(new Node[] { JeaseSession.getContainer() });
      }
    });
    return button;
View Full Code Here

  Mediafield file = new Mediafield();
  Checkbox forward = new Checkbox();

  public TransitEditor() {
    file.setHeight((100 + getDesktopHeight() / 3) + "px");
    uri.addSelectListener(new ActionListener() {
      public void actionPerformed(Event paramEvent) {
        pathSelected();
      }
    });
  }
View Full Code Here

public class DocumentEditor extends FileEditor<Document> {

  Button showText = new Button(I18N.get("Text"), Images.EditFind);

  public DocumentEditor() {
    showText.addClickListener(new ActionListener() {
      public void actionPerformed(Event event) {
        showText();
      }
    });
    getButtons().appendChild(showText);
View Full Code Here

import org.zkoss.zul.Treerow;

public class NavigationTree extends Tree {

  public NavigationTree() {
    setItemRenderer(new NavigationTreeRenderer(new ActionListener() {
      public void actionPerformed(Event event) {
        dropPerformed((DropEvent) event);
      }
    }));
    addSelectListener(new ActionListener() {
      public void actionPerformed(Event event) {
        selectPerformed();
      }
    });
    setModel(new NavigationTreeModel(JeaseSession.getRoots(),
View Full Code Here

    nodeTableModel = JeaseSession.getConfig().newTableModel();
    init(new ContainerTableModel(nodeTableModel));
  }

  private void initItemRenderer() {
    ActionListener dropListener = new ActionListener() {
      public void actionPerformed(Event event) {
        dropPerformed((DropEvent) event);
      }
    };
    ListitemRenderer treeTableRenderer = new ContainerTableRenderer(
View Full Code Here

    getListbox().setItemRenderer(treeTableRenderer);
  }

  private void initModeControl() {
    singleSelect.setChecked(true);
    singleSelect.addCheckListener(new ActionListener() {
      public void actionPerformed(Event event) {
        getListbox().setPageSize(getListbox().getPageSize() / 10);
        getListbox().setMultiple(false);
        getListbox().setCheckmark(false);
      }
    });
    multiSelect.addCheckListener(new ActionListener() {
      public void actionPerformed(Event event) {
        getListbox().setPageSize(getListbox().getPageSize() * 10);
        getListbox().setMultiple(true);
        getListbox().setCheckmark(true);
      }
 
View Full Code Here

  Datefield date = new Datefield();
 
  public NewsEditor() {
    teaser.setRows(3);
    story.setHeight((getDesktopHeight() / 3 - 50) + "px");
    emptyTeaser.addCheckListener(new ActionListener() {
      public void actionPerformed(Event event) {
        emptyTeaserChecked(emptyTeaser.isChecked());
      }
    });
  }
View Full Code Here

    String message = Registry.getParameter(Names.JEASE_CMS_MAINTENANCE);
    if (Validations.isNotEmpty(message)) {
      if (user.isAdministrator()) {
        Modal.info(message);
      } else {
        Modal.info(message, new ActionListener() {
          public void actionPerformed(Event event) {
            Sessions.invalidate();
          }
        });
      }
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.