Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.ActionListener


          // Do nothing - the button can only be pressed with a mouse
        }
      };
      removeButton.setOpaque(false);
      removeButton.setToolTip(getRemoveToolTip());
      removeButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent event) {
          removeEntry();
        }
      });
     
      addButton = new NoBorderButton(CommonUIPlugin.getDefault().getImageRegistry().get(ICommonUIConstants.ICON_TRAY_CATEGORY_ADD_BUTTON)) {
        public void handleKeyPressed(KeyEvent event) {
          // Do nothing - the button can only be pressed with a mouse
        }
        public void handleKeyReleased(KeyEvent event) {
          // Do nothing - the button can only be pressed with a mouse
        }
      };
      addButton.setOpaque(false);
      addButton.setToolTip(getAddToolTip());
      addButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent event) {
          addEntry();
        }
      });
     
View Full Code Here


    protected class TrayArrowButton extends Button {
      public TrayArrowButton() {
        super(getButtonImage());
        setBorder(null);
        setRolloverEnabled(true);
        addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            if (trayComposite.isInState(TrayComposite.STATE_COLLAPSED)) {
              trayComposite.setState(TrayComposite.STATE_EXPANDED);
            } else {
              trayComposite.setState(TrayComposite.STATE_COLLAPSED);
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.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.