public interface MenuLevelProperties
MenuLevelProperties
interface represents styling properties applied to all menu items at a specific level of a menu.Modifier and Type | Method and Description |
---|---|
MenuStateProperties |
getAllState()
Default styling properties for menu items in all states - selected, unselected, hover.
|
java.lang.String |
getHAlign()
Horizontal alignment of the content within each menu item.
|
MenuStateProperties |
getHoverState()
Styling properties applied to menu items when the mouse is hovered over a tab.
|
BorderStyleProperties |
getItemBorder()
Border properties for each menu item.
|
PaddingStyleProperties |
getItemPadding()
Padding properties for each menu item.
|
java.lang.String |
getItemWidth()
The width of all menu items.
|
MenuStateProperties |
getNormalState()
Styling properties applied to unselected menu items.
|
MenuStateProperties |
getSelectedState()
Styling properties applied to selected menu items.
|
void |
setHAlign(java.lang.String hAlign)
Sets the horizontal alignment of the content within each menu item.
|
void |
setItemWidth(java.lang.String itemWidth)
Sets the width of all menu items.
|
java.lang.String getItemWidth()
setItemWidth(String)
for details of supported values when setting this property.void setItemWidth(java.lang.String itemWidth)
Any valid value for the CSS width property can be specified e.g. 30px
java.lang.String getHAlign()
setHAlign(String)
for details of supported values when setting this property.void setHAlign(java.lang.String hAlign)
Supported values:
Value | Constant |
---|---|
Center | ControlConstants.HORIZONTAL_ALIGNMENT_CENTER |
Left | ControlConstants.HORIZONTAL_ALIGNMENT_LEFT |
Right | ControlConstants.HORIZONTAL_ALIGNMENT_RIGHT |
Example:
controls.HORIZONTALMENU1.globalLevel.setHAlign(ControlConstants.HORIZONTAL_ALIGNMENT_CENTER);
PaddingStyleProperties getItemPadding()
BorderStyleProperties getItemBorder()
MenuStateProperties getAllState()
getNormalState()
,
getSelectedState()
,
getHoverState()
MenuStateProperties getNormalState()
allState
property.
The properties can also be overridden for individual menu items.MenuStateProperties getSelectedState()
allState
property.
The properties can also be overridden for individual menu items.MenuStateProperties getHoverState()
allState
property.
The properties can also be overridden for individual menu items.