Class WMenuItemGroup
- java.lang.Object
-
- com.github.bordertech.wcomponents.AbstractWComponent
-
- com.github.bordertech.wcomponents.AbstractContainer
-
- com.github.bordertech.wcomponents.WMenuItemGroup
-
- All Implemented Interfaces:
Container,Disableable,MenuContainer,MenuItem,MenuItemGroup,WComponent,WebComponent,Serializable
@Deprecated public class WMenuItemGroup extends AbstractContainer implements Disableable, MenuItemGroup
Deprecated.menu groups are not compatible with WCAG 2.0.This component provides a logical grouping of related menu items. The rendered version in the UI usually provides a visual grouping as well, including the menu item group's title.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis, Jonathan Austin
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.bordertech.wcomponents.AbstractWComponent
AbstractWComponent.WComponentRef
-
-
Field Summary
-
Fields inherited from interface com.github.bordertech.wcomponents.WComponent
DEFAULT_APPLICATION_ID, DEFAULT_INTERNAL_ID, DEFAULT_NO_ID, ID_CONTEXT_SEPERATOR, ID_FRAMEWORK_ASSIGNED_SEPERATOR, ID_VALIDATION_PATTERN
-
-
Constructor Summary
Constructors Constructor Description WMenuItemGroup(WDecoratedLabel label)Deprecated.Creates a new WMenuItem containing the specified button.WMenuItemGroup(String headingText)Deprecated.Creates a new WMenuItem containing the specified button.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(WMenuItem item)Deprecated.voidadd(WSeparator item)Deprecated.voidadd(WSubMenu item)Deprecated.voidaddMenuItem(MenuItem item)Deprecated.voidaddSeparator()Deprecated.Adds a separator to this group.WDecoratedLabelgetDecoratedLabel()Deprecated.StringgetHeadingText()Deprecated.List<MenuItem>getMenuItems()Deprecated.booleanisDisabled()Deprecated.Indicates whether this group is disabled.voidremove(WComponent item)Deprecated.voidremoveAllMenuItems()Deprecated.Remove all menu items.voidremoveMenuItem(MenuItem item)Deprecated.voidsetDisabled(boolean disabled)Deprecated.Sets whether this group is disabled.voidsetHeadingText(String headingText)Deprecated.Sets the group heading text.StringtoString()Deprecated.Creates a String representation of this component; usually for debugging purposes.-
Methods inherited from class com.github.bordertech.wcomponents.AbstractContainer
getChildAt, getChildCount, getChildren, getIndexOfChild
-
Methods inherited from class com.github.bordertech.wcomponents.AbstractWComponent
addHtmlClass, addHtmlClass, addNotify, afterPaint, assertAddSupported, beforePaint, createErrorDiagnostic, createErrorDiagnostic, forward, getAccessibleText, getAttribute, getBaseUrl, getComponentModel, getDefaultModel, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getOrCreateComponentModel, getParent, getScratchMap, getTabIndex, getTag, getTemplate, getTemplateMarkUp, getToolTip, handleRequest, hasNoComponentModel, hasTabIndex, initialiseComponentModel, invokeLater, invokeLaters, isDebugStructure, isDefaultState, isFlagSet, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, newComponentModel, 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, writeReplace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.bordertech.wcomponents.WComponent
addHtmlClass, 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, validate
-
-
-
-
Constructor Detail
-
WMenuItemGroup
public WMenuItemGroup(String headingText)
Deprecated.Creates a new WMenuItem containing the specified button.- Parameters:
headingText- the heading text for the group.
-
WMenuItemGroup
public WMenuItemGroup(WDecoratedLabel label)
Deprecated.Creates a new WMenuItem containing the specified button.- Parameters:
label- the label for the group.
-
-
Method Detail
-
getDecoratedLabel
public WDecoratedLabel getDecoratedLabel()
Deprecated.- Returns:
- the decorated label for this menu item group
-
getHeadingText
public String getHeadingText()
Deprecated.- Returns:
- returns the group heading text.
-
setHeadingText
public void setHeadingText(String headingText)
Deprecated.Sets the group heading text.- Parameters:
headingText- the heading to set.
-
isDisabled
public boolean isDisabled()
Deprecated.Indicates whether this group is disabled.- Specified by:
isDisabledin interfaceDisableable- Returns:
- true if this group is disabled.
-
setDisabled
public void setDisabled(boolean disabled)
Deprecated.Sets whether this group is disabled.- Specified by:
setDisabledin interfaceDisableable- Parameters:
disabled- true to disable the group, false to enable it.
-
addSeparator
public void addSeparator()
Deprecated.Adds a separator to this group.
-
add
public void add(WSeparator item)
Deprecated.- Parameters:
item- add aWSeparator
-
addMenuItem
public void addMenuItem(MenuItem item)
Deprecated.- Specified by:
addMenuItemin interfaceMenuContainer- Parameters:
item- the menu item to add
-
remove
@Deprecated public void remove(WComponent item)
Deprecated.
-
removeMenuItem
public void removeMenuItem(MenuItem item)
Deprecated.- Specified by:
removeMenuItemin interfaceMenuContainer- Parameters:
item- the menu item to remove
-
removeAllMenuItems
public void removeAllMenuItems()
Deprecated.Remove all menu items.- Specified by:
removeAllMenuItemsin interfaceMenuContainer
-
getMenuItems
public List<MenuItem> getMenuItems()
Deprecated.- Specified by:
getMenuItemsin interfaceMenuContainer- Returns:
- the items of this menu container
-
toString
public String toString()
Deprecated.Description copied from class:AbstractWComponentCreates a String representation of this component; usually for debugging purposes.- Overrides:
toStringin classAbstractWComponent- Returns:
- a String representation of this component, for debugging purposes.
-
-