Interface StaticMenuItemControl
- All Superinterfaces:
- Control,- Element,- EventOwner,- MenuItemControl,- MessageContainer,- MessageProperties,- java.io.Serializable,- WebFormEventOwner
public interface StaticMenuItemControl extends MenuItemControl
Vertical Menu or a Horizontal Menu. 
 Each menu item can contain a text and/or a single image; if an image is displayed as part of the item, its location can be to the right or left of the text.
An override on click event can be set for each individual menu item; if this property is not set, the on click event for the parent Menu Control is executed.
Each menu item can either be enabled or disabled. When disabled, the menu item is still displayed but cannot be clicked by the user.
- Since:
- V4.4
- 
Method SummaryModifier and Type Method Description MenuStatePropertiesgetAllState()Styling properties that apply to all states - selected, unselected, hover.MenuStatePropertiesgetHoverState()Styling properties applied to the menu item when the mouse is hovered over the menu item.TextgetImageAltText()Returns theTextobject for the menu item image alternate text.java.lang.StringgetImageClass()Returns the list of CSS classes applied to the menu item image.TextgetImageMouseOverText()Returns theTextobject for the menu item image mouse over text.java.lang.StringgetImagePosition()The position of the optional image relative to the menu item text.ImageStylePropertiesgetImageProperties()Styling properties applied to optional menu item image.java.lang.StringgetImageStyle()Returns the inline CSS style applied to the menu item image.java.lang.StringgetImageURL()Returns the URL of the optional image to be displayed on the menu item.MenuStatePropertiesgetSelectedState()Styling properties applied to the menu item when it is selected.TextgetText()Returns theTextobject for the menu item text.java.lang.StringgetTextImageGap()The gap between the menu item text and any configured image.MenuStatePropertiesgetUnselectedState()Styling properties applied to the menu item when it is unselected.booleanisEnabled()When enabled, the menu item can be clicked; when disabled the menu item is still displayed but cannot be clicked.voidsetEnabled(boolean enabled)Sets whether or not the menu item can be clicked by the user.voidsetImageClass(java.lang.String imageClass)Sets one or more CSS classes to be applied to the menu item image.voidsetImagePosition(java.lang.String imagePosition)Sets the position of the optional image relative to the menu item text.voidsetImageStyle(java.lang.String imageStyle)Sets the inline CSS style to be applied to the menu item image.voidsetImageURL(java.lang.String imageURL)Sets the URL of the optional image to be displayed on the menu item.voidsetTextImageGap(java.lang.String textImageGap)Sets the gap between the menu item text and any configured image.Methods inherited from interface com.ebasetech.xi.api.controls.ControladdCssClass, getAll, getCssClass, getErrorMsgClass, getErrorMsgStyle, getInfoMsgClass, getInfoMsgStyle, getLayoutCell, getNextSiblingControl, getPage, getParentControl, getPreviousSiblingControl, getRootHtmlElementProperties, getStyle, getWarningMsgClass, getWarningMsgStyle, hasModifier, hide, isContainer, isDisplayOnly, isDisplayOnlyIncludingParents, isEventField, isHidden, isInheritMsg, isLocalMsg, isNewLine, isShowing, refresh, removeCssClass, requestFocus, setCssClass, setDisplayOnly, setErrorMsgClass, setErrorMsgStyle, setHidden, setInfoMsgClass, setInfoMsgStyle, setNewLine, setStyle, setWarningMsgClass, setWarningMsgStyle, showMethods inherited from interface com.ebasetech.xi.api.ElementgetElementName, getElementTypeMethods inherited from interface com.ebasetech.xi.api.controls.MenuItemControlgetItemName, getNameMethods inherited from interface com.ebasetech.xi.api.MessageContaineraddErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessageText, addErrorMessageText, addErrorMessageText, addInfoMessage, addInfoMessage, addInfoMessageText, addInfoMessageText, addInfoMessageText, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessageText, addWarningMessageText, addWarningMessageText, existErrorMessages, existInfoMessages, existMessages, existWarningMessagesMethods inherited from interface com.ebasetech.xi.api.controls.MessagePropertiesgetErrorMessageStyle, getInfoMessageStyle, getWarningMessageStyle
- 
Method Details- 
getTextText getText()Returns theTextobject for the menu item text.- Since:
- V4.4
 
- 
getImageURLjava.lang.String getImageURL()Returns the URL of the optional image to be displayed on the menu item. The URL can be either relative or absolute.- Since:
- V4.4
 
- 
setImageURLvoid setImageURL(java.lang.String imageURL)Sets the URL of the optional image to be displayed on the menu item. The URL can be either relative or absolute. When absolute, is should start with the protocol e.g.http://www.google.com.- Since:
- V4.4
 
- 
getImageMouseOverTextText getImageMouseOverText()Returns theTextobject for the menu item image mouse over text.- Since:
- V4.4
 
- 
getImageAltTextText getImageAltText()Returns theTextobject for the menu item image alternate text.- Since:
- V4.4
 
- 
getImageStylejava.lang.String getImageStyle()Returns the inline CSS style applied to the menu item image.This inline style is configured in the designer using the Advanced Properties button within the control's Styling Assistant. - Since:
- V4.4
- See Also:
- setImageStyle(String)
 
- 
setImageStylevoid setImageStyle(java.lang.String imageStyle)Sets the inline CSS style to be applied to the menu item image. Style is entered as for the HTML style parameter.This inline style is configured in the designer using the Advanced Properties button within the control's Styling Assistant. - Since:
- V4.4
 
- 
getImageClassjava.lang.String getImageClass()Returns the list of CSS classes applied to the menu item image.These classes are configured in the designer using the Advanced Properties button within the control's Styling Assistant. - Since:
- V4.4
- See Also:
- setImageClass(String)
 
- 
setImageClassvoid setImageClass(java.lang.String imageClass)Sets one or more CSS classes to be applied to the menu item image. Multiple classes are specified by using a space between the class names, as per the HTML class parameter.These classes are configured in the designer using the Advanced Properties button within the control's Styling Assistant. - Since:
- V4.4
 
- 
isEnabledboolean isEnabled()When enabled, the menu item can be clicked; when disabled the menu item is still displayed but cannot be clicked.- Since:
- V4.4
 
- 
setEnabledvoid setEnabled(boolean enabled)Sets whether or not the menu item can be clicked by the user.- Since:
- V4.4
 
- 
getTextImageGapjava.lang.String getTextImageGap()The gap between the menu item text and any configured image.- Since:
- V4.4
- See Also:
- setTextImageGap(String)
 
- 
setTextImageGapvoid setTextImageGap(java.lang.String textImageGap)Sets the gap between the menu item text and any configured image. Any valid value for the CSS font-size property can be used.Examples: controls.STATICMENUITEM1.textImageGap = "30px"; - Since:
- V4.4
 
- 
getImagePositionjava.lang.String getImagePosition()The position of the optional image relative to the menu item text. SeesetImagePosition(String)for details of supported values when setting this property.- Since:
- V4.4
 
- 
setImagePositionvoid setImagePosition(java.lang.String imagePosition)Sets the position of the optional image relative to the menu item text.Supported values: Value Description Left Image is positioned to the left of the text Right Image is positioned to the right of the text None No image will be displayed Examples: controls.STATICMENUITEM1.imagePosition = "Left"; - Since:
- V4.4
 
- 
getAllStateMenuStateProperties getAllState()Styling properties that apply to all states - selected, unselected, hover. These properties can be overridden by setting properties to be applied when a menu item has an explicit state. These properties override any corresponding properties configured for the parent menu control.- Since:
- V4.4
- See Also:
- getUnselectedState(),- getSelectedState(),- getHoverState()
 
- 
getUnselectedStateMenuStateProperties getUnselectedState()Styling properties applied to the menu item when it is unselected. These properties override any properties set using theallStateproperty, and also override any corresponding properties configured for the parent menu control.- Since:
- V4.4
 
- 
getSelectedStateMenuStateProperties getSelectedState()Styling properties applied to the menu item when it is selected. These properties override any properties set using theallStateproperty, and also override any corresponding properties configured for the parent menu control.- Since:
- V4.4
 
- 
getHoverStateMenuStateProperties getHoverState()Styling properties applied to the menu item when the mouse is hovered over the menu item. These properties override any properties set using theallStateproperty, and also override any corresponding properties configured for the parent menu control.- Since:
- V4.4
 
- 
getImagePropertiesImageStyleProperties getImageProperties()Styling properties applied to optional menu item image.- Since:
- V4.4
 
 
-