Package info.magnolia.cms.gui.control

Examples of info.magnolia.cms.gui.control.ContextMenuItem


     * Helper method to creat menu items for the list
     */
    protected void addContextMenuItem(ContextMenu menu, String name, String label, String iconName, String methodName,
        String isActiveMethodName)
    {
        final ContextMenuItem showInTree = new ContextMenuItem(name);
        showInTree.setLabel(getMsgs().get(label));
        showInTree.setIcon(MgnlContext.getContextPath() + "/.resources/icons/16/" + iconName);
        showInTree.setOnclick(this.getList().getName() + "." + methodName + "();");
        showInTree.addJavascriptCondition("function(){return "
            + this.getList().getName()
            + "."
            + isActiveMethodName
            + "()}");
        menu.addMenuItem(showInTree);
View Full Code Here

TOP

Related Classes of info.magnolia.cms.gui.control.ContextMenuItem

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.