psdi.webclient.controls

Class Menus

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class Menus
    extends ControlInstance
    • Constructor Detail

      • Menus

        public Menus()
    • Method Detail

      • render

        public int render()
                   throws java.lang.NoSuchMethodException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
        Description copied from class: ControlInstance
        Render this control's components
        Overrides:
        render in class ControlInstance
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • clearMenuData

        public void clearMenuData()
      • setIsGotoMenu

        public void setIsGotoMenu(boolean showGoto)
      • getTriggerItemId

        public java.lang.String getTriggerItemId()
      • setRendered

        public void setRendered()
      • getMenuType

        public int getMenuType()
      • getFirstMenuId

        public java.lang.String getFirstMenuId()
      • getFirstMenuItemId

        public java.lang.String getFirstMenuItemId()
      • isGotoMenu

        public boolean isGotoMenu()
      • showmenu

        public int showmenu()
      • getMenus

        public java.util.ArrayList getMenus()
      • buildMenuCache

        public com.ibm.json.java.JSONObject buildMenuCache(java.lang.String componentId)
      • fetchMenuDef

        public com.ibm.json.java.JSONObject fetchMenuDef(int type,
                                                         java.lang.String compId,
                                                         java.lang.String menuId)
        Returns JSON definition for menu types or a static menu
      • fetchMenuDef

        public com.ibm.json.java.JSONObject fetchMenuDef(int type,
                                                         java.lang.String compId,
                                                         java.lang.String menuId,
                                                         boolean inLeftNav)
        Returns JSON definition for menu types or a static menu
      • fetchmenucache

        public int fetchmenucache()
                           throws java.io.IOException,
                                  MXException
        Throws:
        java.io.IOException
        MXException
      • getMenusAsJson

        public com.ibm.json.java.JSONObject getMenusAsJson()
      • getMenubarOptions

        public java.util.Map getMenubarOptions()
        Create the Map of menus and menuitems for a menubar
      • getQueryOptions

        public java.util.Map getQueryOptions()
        Create the Map of menus and items for the query dropdown
      • buildMenu

        public java.lang.String buildMenu(org.w3c.dom.Element libraryMenu,
                                          boolean isSub,
                                          java.lang.String parentId)
        This is used to build a menu from a menus.xml menu definition This now separates all sub menus and places them at the same level as the main menu
        Parameters:
        Element - xml menu element
        Boolean - is this a sub menu
        String - parent menus id
      • buildDummyMenu

        public java.lang.String buildDummyMenu(org.w3c.dom.Element libraryMenu,
                                               boolean isSub,
                                               java.lang.String parentId)
      • buildMenu

        public void buildMenu(java.util.Map options)
        Builds menus based on a Map of options This now spearates all sub menus and places them at the same level as the main menu
        Parameters:
        Map - of menitems
      • buildMenu

        public void buildMenu(java.util.Map options,
                              int limit)
      • buildMenu

        public void buildMenu(java.util.Map options,
                              int limit,
                              WebClientEvent overflowEvent)
      • createMenuItemProperties

        public java.util.Map createMenuItemProperties(java.util.Map oldMap)
      • changePropertyName

        public java.util.Map changePropertyName(java.util.Map props,
                                                java.lang.String oldName,
                                                java.lang.String newName)
      • getMenuItem

        public java.util.Map getMenuItem(java.lang.String id)
        Walks current menus to find the correct item to use when clicked
      • click

        public int click()
        Handles the clicking of any menuitem
      • getShowSingle

        public boolean getShowSingle()
      • hiddenByProperty

        public boolean hiddenByProperty(java.lang.String hideWhen)
        Allows hiding components via the registry by using reflection on parentControl (control that launched menu)
      • getId

        public java.lang.String getId()
        Return the ID
        Overrides:
        getId in class BaseInstance
        Returns:
        Returns the id.