Package org.jitterbit.ui.action

Examples of org.jitterbit.ui.action.ToggleAction


            @Override
            protected JButton[] getToolBarButtons() {
                List<JButton> buttons = Lists.newArrayList();
                buttons.add(new KongaButton(transferAction).makeToolbarButton());
                if (allowBuiltInVariablesToBeHidden) {
                    ToggleAction showReferencedDEs = new IncludeBuiltInDataElementsToggle(
                                    ShowReferencedDataElementsOnlyPreference.INSTANCE);
                    PopupMenuButton pm = new PopupMenuButton(ApplicationResources.ICONS.getIcon("ArrowDown.16"),
                                    new Action[] { showReferencedDEs });
                    buttons.add(pm);
                }
View Full Code Here


        area.installShortCut("gotoLine", shortCut, a);
        return a;
    }
   
    private ToggleAction installShowLineNumberAction(ExpressionArea area) {
        ToggleAction a = new ShowLineNumbersAction(area);
        KeyStroke shortCut = KeyUtils.getCtrlShiftDown(KeyEvent.VK_L);
        a.putValue(Action.ACCELERATOR_KEY, shortCut);
        area.installShortCut("showLineNumbers", shortCut, a);
        return a;
    }
View Full Code Here

                    // This means that the menu item has been garbage collected.
                    // Remove this listener from the action:
                    Action action = (Action) evt.getSource();
                    action.removePropertyChangeListener(this);
                } else if (btn instanceof ToggleActionCheckBoxMenuItem) {
                    ToggleAction action = (ToggleAction) getActionListenedTo();
                    ((ToggleActionCheckBoxMenuItem) btn).setSelected(action.isSelected());
                }
            }
        }
View Full Code Here

                    // This means that the menu item has been garbage collected.
                    // Remove this listener from the action:
                    Action action = (Action) evt.getSource();
                    action.removePropertyChangeListener(this);
                } else if (btn instanceof ToggleActionRadioButtonMenuItem) {
                    ToggleAction action = (ToggleAction) getActionListenedTo();
                    ((ToggleActionRadioButtonMenuItem) btn).setSelected(action.isSelected());
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.action.ToggleAction

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.