Examples of ToggleActionCheckBoxMenuItem


Examples of org.jitterbit.ui.widget.menu.ToggleActionCheckBoxMenuItem

    private void addMenuItem(JPopupMenu menu, String actionId, String nameOverride) {
        Action action = treeMapper.getPageAction(actionId);
        if (action == null) {
            return;
        }
        JMenuItem item = (action instanceof ToggleAction) ? new ToggleActionCheckBoxMenuItem((ToggleAction) action) :
            new KongaMenuItem(action);
        if (nameOverride != null) {
            item.setText(nameOverride);
        }
        menu.add(item);
View Full Code Here

Examples of org.jitterbit.ui.widget.menu.ToggleActionCheckBoxMenuItem

    private JMenuItem getMenuItem(String id) {
        Action action = page.getPageAction(id);
        if (action == null) {
            return null;
        } else {
            return new ToggleActionCheckBoxMenuItem((ToggleAction) action);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.menu.ToggleActionCheckBoxMenuItem

    @Override
    protected List<? extends JMenuItem> getMenuItems() {
        List<JMenuItem> items = Lists.newArrayList();
        for (ToggleAction a : individualActions.values()) {
            items.add(new ToggleActionCheckBoxMenuItem(a));
        }
        items.add(null);
        items.add(new KongaMenuItem(hideAll));
        items.add(new KongaMenuItem(showAll));
        return items;
View Full Code Here

Examples of org.jitterbit.ui.widget.menu.ToggleActionCheckBoxMenuItem

    private JMenuItem getMenuItem(String id) {
        Action action = page.getPageAction(id);
        if (action == null) {
            return null;
        } else if (action instanceof ToggleAction) {
            return new ToggleActionCheckBoxMenuItem((ToggleAction) action);
        } else {
            return new KongaMenu(action);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.menu.ToggleActionCheckBoxMenuItem

        if (project != null) {
            DataElementsMenu deMenu = new DataElementsMenu(project.getGlobalDataElements(), area);
            area.addToContextMenu(deMenu.getMenu());
        }
        area.addToContextMenu(null);
        area.addToContextMenu(new ToggleActionCheckBoxMenuItem(showLineNumberAction));
        area.addToContextMenu(new KongaMenuItem(gotoLineAction));
        area.addToContextMenu(new KongaMenuItem(toggleCommentAction));
        area.addToContextMenu(null);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.menu.ToggleActionCheckBoxMenuItem

    }

    @Override
    protected JMenuItem createActionComponent(Action a) {
        JMenuItem mi = (a instanceof ToggleAction ?
            new ToggleActionCheckBoxMenuItem((ToggleAction) a) {

            @Override
            protected PropertyChangeListener createActionPropertyChangeListener(Action a) {
                PropertyChangeListener pcl = createActionChangeListener(this);
                if (pcl == null) {
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.