public class Menus extends ControlInstance
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMON_APPLINK_MENUITEM_LIBRARY_ID |
static java.lang.String |
COMMON_MENU_LIBRARY_ID |
static java.lang.String |
COMPONENT_TYPE_MENU |
static java.lang.String |
COMPONENT_TYPE_MENUITEM |
static java.lang.String |
ID_MENUITEM |
static java.lang.String |
LIBRARY_MENUS |
static int |
MENUTYPE_ACTIONS |
static int |
MENUTYPE_COMBOBOX |
static int |
MENUTYPE_DYNAMIC |
static int |
MENUTYPE_GOTO |
static int |
MENUTYPE_MENUBAR |
static int |
MENUTYPE_PROFILE |
static int |
MENUTYPE_QUERY |
static int |
MENUTYPE_REPORTS |
static int |
MENUTYPE_TOOLBAR |
static int |
MENUTYPE_UNKNOWN |
static java.lang.String |
PROPERTY_ACCESSKEY |
static java.lang.String |
PROPERTY_APP |
static java.lang.String |
PROPERTY_APPLINK |
static java.lang.String |
PROPERTY_BORDER |
static java.lang.String |
PROPERTY_CLAUSENAME |
static java.lang.String |
PROPERTY_CMSENTRYID |
static java.lang.String |
PROPERTY_CMSEVENT |
static java.lang.String |
PROPERTY_CMSITEM |
static java.lang.String |
PROPERTY_COMPONENT |
static java.lang.String |
PROPERTY_CONTROL |
static java.lang.String |
PROPERTY_CONTROLVALUE |
static java.lang.String |
PROPERTY_CSSCLASS |
static java.lang.String |
PROPERTY_DISABLE_NULL |
static java.lang.String |
PROPERTY_DISABLE_QUERY |
static java.lang.String |
PROPERTY_DISABLE_READONLY |
static java.lang.String |
PROPERTY_DISABLED |
static java.lang.String |
PROPERTY_ELEMENTTYPE |
static java.lang.String |
PROPERTY_EVENT |
static java.lang.String |
PROPERTY_EVENTVALUE |
static java.lang.String |
PROPERTY_HEADER |
static java.lang.String |
PROPERTY_ID |
static java.lang.String |
PROPERTY_IMAGE |
static java.lang.String |
PROPERTY_INPUTMODE |
static java.lang.String |
PROPERTY_KEY |
static java.lang.String |
PROPERTY_LABEL |
static java.lang.String |
PROPERTY_LICENSEKEY |
static java.lang.String |
PROPERTY_LINK |
static java.lang.String |
PROPERTY_LOADLINK |
static java.lang.String |
PROPERTY_LOOKUP |
static java.lang.String |
PROPERTY_MAINMENU |
static java.lang.String |
PROPERTY_MENUPARENT |
static java.lang.String |
PROPERTY_MENUTYPE |
static java.lang.String |
PROPERTY_MODULE |
static java.lang.String |
PROPERTY_MXEVENT |
static java.lang.String |
PROPERTY_MXEVENT_CHG |
static java.lang.String |
PROPERTY_OPENAT |
static java.lang.String |
PROPERTY_QUERY |
static java.lang.String |
PROPERTY_READONLY |
static java.lang.String |
PROPERTY_SELECTVALUE |
static java.lang.String |
PROPERTY_SUBMENU |
static java.lang.String |
PROPERTY_TABDISPLAY |
static java.lang.String |
PROPERTY_TAG |
static java.lang.String |
PROPERTY_TARGET |
static java.lang.String |
PROPERTY_TEXT |
amIinitialize, DATASOURCE, INPUTMODE, labelOverride, ONDATACAHNGE, PARAM_APP, PARAM_APPTABTYPE, PARAM_DESIGNMODE, PARAM_MOBILE, PARAM_MODULE, PARAM_PAGE, PARAM_PARENTCOMPONENT, PARAM_PARENTCONTROL, PARAM_PRESENTATION, PARAM_SCREENREADER, PARAM_SKINNAME, PARAM_TAB, PARAM_TABGROUP, PARAM_TABGROUP_MAIN, PARAM_TABLE, PARAM_USERINFO, PARAM_VERTICALLABEL, RERENDER_PROPERTY
EXCEPTION_ERROR, EXCEPTION_INFO, EXCEPTION_NONE, EXCEPTION_REQUIREDFIELD, EXCEPTION_SMARTFILL, EXCEPTION_WARNING, EXCEPTION_YESNOCANCEL, FORCE_WARNING_HANDLING, NO_PROMPT_WITH_WARNING, presentationTags, PROMPT_WHEN_WARNING_EXIST
Constructor and Description |
---|
Menus() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildDummyMenu(org.w3c.dom.Element libraryMenu,
boolean isSub,
java.lang.String parentId) |
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
|
void |
buildMenu(java.util.Map<?,java.util.Map<java.lang.String,java.lang.String>> 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
|
void |
buildMenu(java.util.Map<?,java.util.Map<java.lang.String,java.lang.String>> options,
int limit) |
void |
buildMenu(java.util.Map<?,java.util.Map<java.lang.String,java.lang.String>> options,
int limit,
WebClientEvent overflowEvent) |
com.ibm.json.java.JSONObject |
buildMenuCache(java.lang.String componentId) |
java.util.Map<java.lang.String,java.lang.String> |
changePropertyName(java.util.Map<java.lang.String,java.lang.String> props,
java.lang.String oldName,
java.lang.String newName) |
void |
clearMenuData() |
int |
click()
Handles the clicking of any menuitem
|
java.util.Map<java.lang.String,java.lang.String> |
createMenuItemProperties(java.util.Map<java.lang.String,java.lang.String> oldMap) |
int |
fetchmenucache() |
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
|
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
|
java.lang.String |
getFirstMenuId() |
java.lang.String |
getFirstMenuItemId() |
java.lang.String |
getId()
Return the ID
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getMenubarOptions()
Create the Map of menus and menuitems for a menubar
|
java.util.Map<java.lang.String,java.lang.String> |
getMenuItem(java.lang.String id)
Walks current menus to find the correct item to use when clicked
|
java.util.ArrayList<MenuInstance> |
getMenus() |
com.ibm.json.java.JSONObject |
getMenusAsJson() |
int |
getMenuType() |
WebClientEvent |
getOriginalEvent() |
ComponentInstance |
getParentComponent() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getQueryOptions()
Create the Map of menus and items for the query dropdown
|
boolean |
getShowSingle() |
java.lang.String |
getTriggerItemId() |
boolean |
hiddenByProperty(java.lang.String hideWhen)
Allows hiding components via the registry by using reflection on parentControl (control that launched menu)
|
boolean |
isGotoMenu() |
int |
render()
Render this control's components
|
void |
setIsGotoMenu(boolean showGoto) |
void |
setNeedsRender(boolean needsRender) |
void |
setRendered() |
int |
showmenu() |
addChild, addComponent, broadcastEvent, canInsert, canInsert, canRemove, childHasError, childHasErrorFocus, cleanup, clearComponent, clearErrors, copy, createRenderId, errorLevelChanged, eventCheck, findComponentByDescriptorId, findDesignerProperty, findProperty, findUseForLablledByComponent, getAdaptorInstance, getBoundComponent, getComponent, getComponents, getDataBean, getDataSource, getDescriptorControl, getDesignerProperty, getDesignerSelected, getDesignerSelectedControl, getElement, getErrorLevel, getGeneratedControl, getOriginalControl, getOriginalProperty, getProperties, getProperty, getProperty, getPropertyIgnoreFlags, getPropertyOriginator, getPropertyUncle, getRecordHover, getSkipPreRender, getTableControl, getTakesValueComponent, handleEvent, hasChanged, hasChangedConditionally, hasChildElements, hasMaskedChanged, hasRecordHover, hasVisibleChildren, initialize, instantiatedatasrc, isDesignerEditedProperty, isDisabled, isFocusable, isGenerated, isHiddenByLicense, isIncluded, isLastChild, isMainrecActionMenu, isMasked, isOnTableFilterRow, isOnTableTitleRow, isPersistentProperty, isReInitialize, isSelected, isToBeDisplayedOnCurrentTab, isToBeDisplayedOnTab, isVisible, launchexternal, moveChild, needsRender, parseParamvalues, preRender, preRenderChecks, quickinsert, registerDesignerEditedProperty, reInitialize, removeChild, renderChildren, resetDataSource, resolveParam, resolveParams, setAttributeError, setBoundComponent, setChangedFlag, setChangedFlag, setDesignerSelected, setDisabled, setElement, setErrorFocusOnControl, setFocus, setFocus, setFocusable, setFocusTable, setGenerated, setGeneratedControl, setIncluded, setIncluded, setOnTableFilterRow, setOnTableRow, setOnTableTitleRow, setOriginalControl, setPropertyOriginator, setPropertyUncle, setReInitialize, setReRenderFlags, setSelected, setSkipPreRender, setTableControl, setVisibility, stopRender, walkForId, walkForId
addChild, addChild, addRefreshListener, clearChildren, clearProperties, clone, clone, getBoolean, getChildCount, getChildIndex, getChildren, getConsiderInDesigner, getDescriptor, getIdExtension, getInt, getLocalizedType, getPage, getParent, getParentInstance, getPropertyNames, getRefreshListeners, getRenderId, getRowNum, getSafeId, getString, getType, getWebClientSession, handleEvent, hasAnyPropertyChanged, hasLocalProperty, hasPropertyChanged, initProperty, isDynamicContainer, isOnTable, isOnTableRow, maintainControlId, removeProperty, setConsiderInDesigner, setDescriptor, setDynamicContainer, setOnTable, setParent, setProperty, setProperty, setRenderId, setType, setWebClientSession, toString
public static final java.lang.String PROPERTY_MODULE
public static final java.lang.String PROPERTY_APP
public static final java.lang.String PROPERTY_QUERY
public static final java.lang.String PROPERTY_HEADER
public static final java.lang.String PROPERTY_OPENAT
public static final java.lang.String LIBRARY_MENUS
public static final java.lang.String ID_MENUITEM
public static final java.lang.String PROPERTY_MENUTYPE
public static final java.lang.String PROPERTY_TARGET
public static final java.lang.String PROPERTY_ID
public static final java.lang.String PROPERTY_ACCESSKEY
public static final java.lang.String PROPERTY_CLAUSENAME
public static final java.lang.String PROPERTY_COMPONENT
public static final java.lang.String PROPERTY_CONTROL
public static final java.lang.String PROPERTY_CSSCLASS
public static final java.lang.String PROPERTY_DISABLED
public static final java.lang.String PROPERTY_DISABLE_NULL
public static final java.lang.String PROPERTY_DISABLE_READONLY
public static final java.lang.String PROPERTY_DISABLE_QUERY
public static final java.lang.String PROPERTY_READONLY
public static final java.lang.String PROPERTY_KEY
public static final java.lang.String PROPERTY_EVENTVALUE
public static final java.lang.String PROPERTY_IMAGE
public static final java.lang.String PROPERTY_ELEMENTTYPE
public static final java.lang.String PROPERTY_TEXT
public static final java.lang.String PROPERTY_MAINMENU
public static final java.lang.String PROPERTY_SUBMENU
public static final java.lang.String PROPERTY_TAG
public static final java.lang.String PROPERTY_MENUPARENT
public static final java.lang.String PROPERTY_MXEVENT
public static final java.lang.String PROPERTY_MXEVENT_CHG
public static final java.lang.String PROPERTY_TABDISPLAY
public static final java.lang.String COMPONENT_TYPE_MENU
public static final java.lang.String COMPONENT_TYPE_MENUITEM
public static final java.lang.String PROPERTY_APPLINK
public static final java.lang.String PROPERTY_LOOKUP
public static final java.lang.String PROPERTY_LOADLINK
public static final java.lang.String PROPERTY_SELECTVALUE
public static final java.lang.String PROPERTY_LINK
public static final java.lang.String PROPERTY_LABEL
public static final java.lang.String PROPERTY_EVENT
public static final java.lang.String PROPERTY_BORDER
public static final java.lang.String PROPERTY_LICENSEKEY
public static final java.lang.String PROPERTY_CONTROLVALUE
public static final java.lang.String PROPERTY_INPUTMODE
public static final java.lang.String COMMON_MENU_LIBRARY_ID
public static final java.lang.String COMMON_APPLINK_MENUITEM_LIBRARY_ID
public static final java.lang.String PROPERTY_CMSITEM
public static final java.lang.String PROPERTY_CMSEVENT
public static final java.lang.String PROPERTY_CMSENTRYID
public static final int MENUTYPE_UNKNOWN
public static final int MENUTYPE_COMBOBOX
public static final int MENUTYPE_GOTO
public static final int MENUTYPE_QUERY
public static final int MENUTYPE_ACTIONS
public static final int MENUTYPE_MENUBAR
public static final int MENUTYPE_REPORTS
public static final int MENUTYPE_PROFILE
public static final int MENUTYPE_DYNAMIC
public static final int MENUTYPE_TOOLBAR
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
ControlInstance
render
in class ControlInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void clearMenuData()
public void setIsGotoMenu(boolean showGoto)
public ComponentInstance getParentComponent()
public java.lang.String getTriggerItemId()
public void setRendered()
public int getMenuType()
public java.lang.String getFirstMenuId()
public java.lang.String getFirstMenuItemId()
public boolean isGotoMenu()
public WebClientEvent getOriginalEvent()
public int showmenu()
public java.util.ArrayList<MenuInstance> getMenus()
public com.ibm.json.java.JSONObject buildMenuCache(java.lang.String componentId)
public com.ibm.json.java.JSONObject fetchMenuDef(int type, java.lang.String compId, java.lang.String menuId)
public com.ibm.json.java.JSONObject fetchMenuDef(int type, java.lang.String compId, java.lang.String menuId, boolean inLeftNav)
public int fetchmenucache() throws java.io.IOException, MXException
java.io.IOException
MXException
public com.ibm.json.java.JSONObject getMenusAsJson()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getMenubarOptions()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getQueryOptions()
public java.lang.String buildMenu(org.w3c.dom.Element libraryMenu, boolean isSub, java.lang.String parentId)
Element
- xml menu elementBoolean
- is this a sub menuString
- parent menus idpublic java.lang.String buildDummyMenu(org.w3c.dom.Element libraryMenu, boolean isSub, java.lang.String parentId)
public void buildMenu(java.util.Map<?,java.util.Map<java.lang.String,java.lang.String>> options)
Map
- of menitemspublic void buildMenu(java.util.Map<?,java.util.Map<java.lang.String,java.lang.String>> options, int limit)
public void buildMenu(java.util.Map<?,java.util.Map<java.lang.String,java.lang.String>> options, int limit, WebClientEvent overflowEvent)
public java.util.Map<java.lang.String,java.lang.String> createMenuItemProperties(java.util.Map<java.lang.String,java.lang.String> oldMap)
public java.util.Map<java.lang.String,java.lang.String> changePropertyName(java.util.Map<java.lang.String,java.lang.String> props, java.lang.String oldName, java.lang.String newName)
public java.util.Map<java.lang.String,java.lang.String> getMenuItem(java.lang.String id)
public int click()
public boolean getShowSingle()
public void setNeedsRender(boolean needsRender)
setNeedsRender
in class ControlInstance
public boolean hiddenByProperty(java.lang.String hideWhen)
public java.lang.String getId()
getId
in class BaseInstance