Package org.antlr.xjlib.appkit.menu

Examples of org.antlr.xjlib.appkit.menu.XJMenuItem


        else
            return (int)getCurrentGraph().getHeight()+20;
    }

    public void addMenuItem(JPopupMenu menu, String title, int tag, Object object) {
        XJMenuItem item = new XJMenuItem();
        item.setTitle(title);
        item.setTag(tag);
        item.setObject(object);
        item.setDelegate(this);

        menu.add(item.getSwingComponent());
    }
View Full Code Here


    public XJMenuItem addItem(int tag) {
        if(shouldInsertSeparator) {
            menu.addSeparator();
            shouldInsertSeparator = false;
        }
        XJMenuItem item = stWindowMenu.createMenuItem(tag, true);
        menu.add(item.getSwingComponent());
        return item;
    }
View Full Code Here

    public XJMenuItem addItem(int tag) {
        if(shouldInsertSeparator) {
            menu.addSeparator();
            shouldInsertSeparator = false;
        }
        XJMenuItem item = grammarWindowMenu.createMenuItem(tag, true);
        menu.add(item.getSwingComponent());
        return item;
    }
View Full Code Here

            System.out.println(message);
        }
    }

    public void customizeHelpMenu(XJMenu menu) {
        menu.insertItemAfter(new XJMenuItem("Check for Updates", GrammarWindowMenu.MI_CHECK_UPDATES, this), XJMainMenuBar.MI_HELP);
        menu.insertItemAfter(new XJMenuItem("Send Feedback", GrammarWindowMenu.MI_SEND_FEEDBACK, this), XJMainMenuBar.MI_HELP);
        menu.insertItemAfter(new XJMenuItem("Submit Statistics...", GrammarWindowMenu.MI_SUBMIT_STATS, this), XJMainMenuBar.MI_HELP);
        menu.insertSeparatorAfter(XJMainMenuBar.MI_HELP);
    }
View Full Code Here

        eventManager.performEventObjects(GEventManager.EVENT_DRAW, null, null, g);
    }

    public void addMenuItem(JPopupMenu menu, String title, int tag, Object object) {
        XJMenuItem item = new XJMenuItem();
        item.setTitle(title);
        item.setTag(tag);
        item.setObject(object);
        item.setDelegate(this);

        menu.add(item.getSwingComponent());
    }
View Full Code Here

TOP

Related Classes of org.antlr.xjlib.appkit.menu.XJMenuItem

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.