Package com.jidesoft.swing

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


                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

            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

                }
                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

    }

    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

                }
                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

            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

TOP

Related Classes of com.jidesoft.swing.DelegateAction

Copyright © 2015 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.