Package jfix.zk

Examples of jfix.zk.ActionListener


      return content.getEditor();
    case 5:
      return NodeViews.asSize(content);
    case 6:
      return NodeViews.asCheckbox(content.isVisible(),
          new ActionListener() {
            public void actionPerformed(Event event) {
              boolean visible = ((CheckEvent) event).isChecked();
              content.setVisible(visible);
              Nodes.save(content);
            }
View Full Code Here


    }
  }

  private Component newDumpButton() {
    return new Button(I18N.get("Dump"), Images.DriveCdrom,
        new ActionListener() {
          public void actionPerformed(Event evt) {
            Filedownload.save(Backups.dump(JeaseSession
                .getContainer()));
          }
        });
View Full Code Here

        });
  }

  private Component newRestoreButton() {
    return new Fileupload(I18N.get("Restore"), Images.MediaCdrom,
        new ActionListener() {
          public void actionPerformed(Event evt) {
            Media media = ((UploadEvent) evt).getMedia();
            if (media != null) {
              try {
                Backups.restore(Medias.asFile(media),
View Full Code Here

        });
  }

  private Component newUploadButton() {
    return new Fileupload(I18N.get("Upload"), Images.UserHome,
        new ActionListener() {
          public void actionPerformed(Event evt) {
            Media media = ((UploadEvent) evt).getMedia();
            if (media != null) {
              try {
                Imports.fromFile(Medias.asFile(media),
View Full Code Here

        });
  }

  private Component newViewButton() {
    return new Button(I18N.get("View"), Images.InternetWebBrowser,
        new ActionListener() {
          public void actionPerformed(Event evt) {
            getRoot().appendChild(
                new WebBrowser(JeaseSession.getContainer()
                    .getPath()));
          }
View Full Code Here

      Images.InternetWebBrowser);
  protected boolean closeCheckEnabled;

  public ContentEditor() {
    if (getSessionUser().isAdministrator()) {
      editProperties.addClickListener(new ActionListener() {
        public void actionPerformed(Event event) {
          propertyManager.toogleEdit();
        }
      });
      getButtons().appendChild(editProperties);
    }

    if (Registry.getParameter(Names.JEASE_SITE_DESIGN) != null) {
      viewContent.addClickListener(new ActionListener() {
        public void actionPerformed(Event event) {
          viewContent();
        }
      });
      getButtons().appendChild(viewContent);
    }

    revisionSelection.setNullable(false);
    revisionSelection.addSelectListener(new ActionListener() {
      public void actionPerformed(Event event) {
        peek(Revisions.checkout(getNode(),
            revisionSelection.getSelectedIndex()));
        viewContent.setVisible(true);
        lastNodeModification = null;
      }
    });

    addEventListener(Events.ON_CLOSE, new ActionListener() {
      public void actionPerformed(Event event) {
        closePerformed(event);
      }
    });
    closeCheckEnabled = true;
View Full Code Here

  protected void notifyAboutMaintenance() {
    String message = Registry.getParameter(Names.JEASE_CMS_MAINTENANCE);
    if (Validations.isNotEmpty(message)
        && !getSessionUser().isAdministrator()) {
      Modal.info(message, new ActionListener() {
        public void actionPerformed(Event event) {
          Sessions.invalidate();
        }
      });
    }
View Full Code Here

        getNode().setParent(null);
        String newFulltext = getNode().getFulltext().toString();
        if (!Validations.equals(currentFulltext, newFulltext)) {
          event.stopPropagation();
          Modal.confirm(I18N.get("Are_you_sure"),
              new ActionListener() {
                public void actionPerformed(Event evt) {
                  closeCheckEnabled = false;
                  refresh();
                  fireClose();
                }
View Full Code Here

      return;
    } finally {
      setObject(currentNode);
    }
    WebBrowser browser = new WebBrowser(getNode().getPath());
    browser.addCloseListener(new ActionListener() {
      public void actionPerformed(Event event) {
        Sessions.remove(currentNode.getPath());
      }
    });
    getRoot().appendChild(browser);
View Full Code Here

  Checkbox forward = new Checkbox();
 
  public ScriptEditor() {
    code.setHeight((100 + getDesktopHeight() / 3) + "px");
    code.setConfig("lineNumbers:true");
    id.addChangingListener(new ActionListener() {     
      public void actionPerformed(Event event) {
        code.setSyntax(Filenames.asExtension(((InputEvent) event).getValue()));
      }
    });
  }
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.