Examples of DelegateAction


Examples of com.jidesoft.swing.DelegateAction

    }

    class StandardDialogPropertyChangeListener implements PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent evt) {
            if (StandardDialogPane.PROPERTY_CANCEL_ACTION.equals(evt.getPropertyName())) {
                DelegateAction delegateAction = new DelegateAction(getDefaultCancelAction()) {
                    private static final long serialVersionUID = -2136676357204671812L;

                    @Override
                    public boolean delegateActionPerformed(ActionEvent e) {
                        if (hasSelectionPath()) {
View Full Code Here

Examples of com.jidesoft.swing.DelegateAction

                ActionListener actionForKeyStroke = getRootPane().getActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0));
                if (actionForKeyStroke instanceof DelegateAction) {
                    getRootPane().unregisterKeyboardAction(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0));
                }
                if (getDefaultCancelAction() != null) {
                    getRootPane().registerKeyboardAction(new DelegateAction(getDefaultCancelAction()) {
                        private static final long serialVersionUID = 7321038745798788445L;

                        @Override
                        public boolean delegateActionPerformed(ActionEvent e) {
                            if (hasSelectionPath()) {
View Full Code Here

Examples of com.jidesoft.swing.DelegateAction

            if (getRootPane().getDefaultButton() != null) {
                getRootPane().getDefaultButton().requestFocus();
            }

            if (getDefaultCancelAction() != null) {
                getRootPane().registerKeyboardAction(new DelegateAction(getDefaultCancelAction()) {
                    private static final long serialVersionUID = 7321038745798788445L;

                    @Override
                    public boolean delegateActionPerformed(ActionEvent e) {
                        if (hasSelectionPath()) {
View Full Code Here

Examples of com.jidesoft.swing.DelegateAction

                }
                hideHintsPopup();
            }
        });

        _showAction = new DelegateAction() {
            private static final long serialVersionUID = 2243999895981912016L;

            @Override
            public boolean delegateActionPerformed(ActionEvent e) {
                JComponent tf = (JComponent) e.getSource();
View Full Code Here

Examples of com.jidesoft.swing.DelegateAction

    }

    class StandardDialogPropertyChangeListener implements PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent evt) {
            if (StandardDialogPane.PROPERTY_CANCEL_ACTION.equals(evt.getPropertyName())) {
                DelegateAction delegateAction = new DelegateAction(getDefaultCancelAction()) {
                    private static final long serialVersionUID = -2136676357204671812L;

                    @Override
                    public boolean delegateActionPerformed(ActionEvent e) {
                        if (hasSelectionPath()) {
View Full Code Here

Examples of com.jidesoft.swing.DelegateAction

                }
                hideHintsPopup();
            }
        });

        DelegateAction.replaceAction(getTextComponent(), JComponent.WHEN_FOCUSED, getShowHintsKeyStroke(), new DelegateAction() {
                private static final long serialVersionUID = 2243999895981912016L;

                @Override
                public boolean delegateActionPerformed(ActionEvent e) {
                    JComponent tf = (JComponent) e.getSource();
View Full Code Here

Examples of com.jidesoft.swing.DelegateAction

            if (getRootPane().getDefaultButton() != null) {
                getRootPane().getDefaultButton().requestFocus();
            }

            if (getDefaultCancelAction() != null) {
                getRootPane().registerKeyboardAction(new DelegateAction(getDefaultCancelAction()) {
                    private static final long serialVersionUID = 7321038745798788445L;

                    @Override
                    public boolean delegateActionPerformed(ActionEvent e) {
                        if (hasSelectionPath()) {
View Full Code Here

Examples of com.sun.java.swing.action.DelegateAction

        registerAction(ShowAction.VALUE_COMMAND);
    }

    private void registerAction(String actionName) {
        ActionManager manager = ActionManager.getInstance();
        DelegateAction action = manager.getDelegateAction(actionName);
        action.addActionListener(this);
    }
View Full Code Here

Examples of com.sun.java.swing.action.DelegateAction

      registerAction(FindClassesAction.VALUE_COMMAND);
   }

   private void registerAction(String actionName) {
      ActionManager manager = ActionManager.getInstance();
      DelegateAction action = manager.getDelegateAction(actionName);
      action.addActionListener(this);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.