public class WLibMenuItem extends com.github.bordertech.wcomponents.WMenuItem implements RelativeUrlBaseable
This will be put into WComponents core.
RELATIVE_FLAG_ATTR| Constructor and Description |
|---|
WLibMenuItem(String text)
Creates a new WMenuItem with the specified text.
|
WLibMenuItem(String text,
com.github.bordertech.wcomponents.Action action)
Creates a WMenuItem with the given label and action.
|
WLibMenuItem(String text,
char accessKey)
Creates a new WMenuItem with the specified text and accessKey.
|
WLibMenuItem(String text,
char accessKey,
com.github.bordertech.wcomponents.Action action)
Creates a new WMenuItem with the specified text, accessKey and action.
|
WLibMenuItem(String text,
String url)
Creates a WMenuItem with the given text and url.
|
WLibMenuItem(com.github.bordertech.wcomponents.WDecoratedLabel label)
Creates a WMenuItem with the given label.
|
WLibMenuItem(com.github.bordertech.wcomponents.WDecoratedLabel label,
com.github.bordertech.wcomponents.Action action)
Creates a WMenuItem with the given label and action.
|
WLibMenuItem(com.github.bordertech.wcomponents.WDecoratedLabel label,
String url)
Creates a WMenuItem with the given label and url.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getUrl() |
boolean |
isRelativeBaseUrl() |
void |
setRelativeBaseUrl(boolean relativeBaseUrl) |
void |
setUrl(String url,
boolean relativeBaseUrl) |
getAccessKey, getAccessKeyAsString, getAction, getActionCommand, getActionObject, getComponentModel, getDecoratedLabel, getMessage, getOrCreateComponentModel, getSelectability, getTargetWindow, getText, handleRequest, isCancel, isDisabled, isMenuPresent, isSelectable, isSelectAllowed, isSelected, isSubmit, isTopLevelItem, newComponentModel, setAccessKey, setAction, setActionCommand, setActionObject, setCancel, setDisabled, setMessage, setSelectability, setSelectable, setTargetWindow, setText, setUrl, toStringgetChildAt, getChildCount, getChildren, getIndexOfChildaddHtmlClass, addHtmlClass, addNotify, afterPaint, assertAddSupported, beforePaint, createErrorDiagnostic, createErrorDiagnostic, forward, getAccessibleText, getAttribute, getBaseUrl, getDefaultModel, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getScratchMap, getTabIndex, getTag, getTemplate, getTemplateMarkUp, getToolTip, hasNoComponentModel, hasTabIndex, initialiseComponentModel, invokeLater, invokeLaters, isDebugStructure, isDefaultState, isFlagSet, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, paintComponent, preparePaint, preparePaintComponent, removeAttribute, removeComponentModel, removeHtmlClass, removeHtmlClass, removeNotify, replaceWComponent, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFlag, setFocussed, setHidden, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showErrorIndicatorsForComponent, showWarningIndicators, showWarningIndicatorsForComponent, tidyUpUIContext, tidyUpUIContextForTree, validate, validateComponent, writeReplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHtmlClass, addHtmlClass, forward, getAccessibleText, getAttribute, getBaseUrl, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getTabIndex, getTag, getToolTip, handleRequest, hasTabIndex, invokeLater, isDefaultState, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, preparePaint, removeAttribute, removeHtmlClass, removeHtmlClass, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFocussed, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showWarningIndicators, tidyUpUIContextForTree, validatepublic WLibMenuItem(com.github.bordertech.wcomponents.WDecoratedLabel label)
label - the menu item label.public WLibMenuItem(com.github.bordertech.wcomponents.WDecoratedLabel label,
String url)
label - the menu item label.url - the URL to navigate to when the menu item is invoked.public WLibMenuItem(com.github.bordertech.wcomponents.WDecoratedLabel label,
com.github.bordertech.wcomponents.Action action)
label - the menu item label.action - the action to execute when the menu item is invoked.public WLibMenuItem(String text, String url)
text - the menu item text.url - the URL to navigate to when the menu item is invoked.public WLibMenuItem(String text, com.github.bordertech.wcomponents.Action action)
text - the menu item text.action - the action to execute when the menu item is invoked.public WLibMenuItem(String text)
text - the menu item's text.public WLibMenuItem(String text, char accessKey)
text - the menu item's text.accessKey - the menu item's access key.public WLibMenuItem(String text, char accessKey, com.github.bordertech.wcomponents.Action action)
text - the menu item's text.accessKey - the menu item's access key.action - the action to execute when the menu item is invoked.public void setUrl(String url, boolean relativeBaseUrl)
url - the URL to navigate torelativeBaseUrl - true if use relative to base URLpublic String getUrl()
getUrl in class com.github.bordertech.wcomponents.WMenuItempublic void setRelativeBaseUrl(boolean relativeBaseUrl)
setRelativeBaseUrl in interface RelativeUrlBaseablerelativeBaseUrl - true if URL is relative to base URLpublic boolean isRelativeBaseUrl()
isRelativeBaseUrl in interface RelativeUrlBaseableCopyright © 2018. All rights reserved.