|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UISelectItem
org.rcfaces.core.internal.component.CameliaItemComponent
org.rcfaces.core.component.AbstractItemComponent
org.rcfaces.core.component.SelectItemComponent
org.rcfaces.core.component.UIImageItemComponent
org.rcfaces.core.component.ExpandableItemComponent
org.rcfaces.core.component.MenuItemComponent
public class MenuItemComponent
A menu item
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.internal.component.CameliaItemComponent |
|---|
engine |
| Fields inherited from class javax.faces.component.UISelectItem |
|---|
COMPONENT_FAMILY |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
MenuItemComponent()
|
|
MenuItemComponent(String componentId)
|
|
| Method Summary | |
|---|---|
void |
addMenuListener(IMenuListener listener)
Adds a listener to the component for the menu event |
String |
getAcceleratorKey()
Returns a string that indicates the (composed) key used to execute an action from the keyboard. |
String |
getAcceleratorKey(FacesContext facesContext)
See getAcceleratorKey() for more details |
String |
getAccessKey()
Returns a string that indicates the alphanumeric key used to execute an action from the keyboard (in conjunction with a alteration key ex : Alt). |
String |
getAccessKey(FacesContext facesContext)
See getAccessKey() for more details |
protected Set |
getCameliaFields()
|
IMenuComponent |
getMenu()
|
String |
getStyleClass()
Returns the style class of the component. |
String |
getStyleClass(FacesContext facesContext)
See getStyleClass() for more details |
boolean |
isAcceleratorKeySetted()
Returns true if the attribute "acceleratorKey" is set. |
boolean |
isAccessKeySetted()
Returns true if the attribute "accessKey" is set. |
boolean |
isImmediate()
Returns a boolean value indicating that this component's value must be converted and validated immediately (that is, during Apply Request Values phase), rather than waiting until Process Validations phase. |
boolean |
isImmediate(FacesContext facesContext)
See isImmediate() for more details |
boolean |
isImmediateSetted()
Returns true if the attribute "immediate" is set. |
boolean |
isRemoveAllWhenShown()
Returns a boolean value specifying wether the content of the component must be remove before the listener is called and the component displayed. |
boolean |
isRemoveAllWhenShown(FacesContext facesContext)
Returns a boolean value specifying wether the content of the component must be remove before the listener is called and the component displayed. |
boolean |
isRemoveAllWhenShownSetted()
Returns true if the attribute "removeAllWhenShown" is set. |
boolean |
isStyleClassSetted()
Returns true if the attribute "styleClass" is set. |
IMenuItemIterator |
listMenuItems()
|
FacesListener[] |
listMenuListeners()
Returns a list of menu listener for the component |
void |
removeMenuListener(IMenuListener listener)
Removes a listener from the component for the menu event |
void |
setAcceleratorKey(String acceleratorKey)
Sets a string that indicates the (composed) key used to execute an action from the keyboard. |
void |
setAccessKey(String accessKey)
Sets a string that indicates the alphanumeric key used to execute an action from the keyboard (in conjunction with a alteration key ex : Alt). |
void |
setImmediate(boolean immediate)
Sets a boolean value indicating that this component's value must be converted and validated immediately (that is, during Apply Request Values phase), rather than waiting until Process Validations phase. |
void |
setRemoveAllWhenShown(boolean removeAllWhenShown)
Sets a boolean value specifying wether the content of the component must be remove before the listener is called and the component displayed. |
void |
setStyleClass(String styleClass)
Specify the style class of the component. |
| Methods inherited from class org.rcfaces.core.component.ExpandableItemComponent |
|---|
getBackgroundColor, getBackgroundColor, getExpandedImageURL, getExpandedImageURL, getForegroundColor, getForegroundColor, getText, isBackgroundColorSetted, isExpandedImageURLSetted, isForegroundColorSetted, isTextSetted, setBackgroundColor, setExpandedImageURL, setForegroundColor, setText, setValueExpression |
| Methods inherited from class org.rcfaces.core.component.SelectItemComponent |
|---|
getToolTip, getToolTipText, getToolTipText, isToolTipTextSetted, setToolTip, setToolTipText |
| Methods inherited from class org.rcfaces.core.internal.component.CameliaItemComponent |
|---|
clearListeners, confirmListenerAppend, constructPhase, constructTemplate, decodePhase, encodeBegin, encodeChildren, encodeEnd, getAsyncRenderer, getCameliaValueAlias, getChildren, getChildrenListState, getFamily, getRendererType, getTransientAttribute, getValueExpression, hasDefaultProperties, initializeComponent, initializePhase, isClientRendered, isRendered, isTemplateComponent, processDecodes, processEngineUpdates, processEngineValidators, processUpdates, processValidators, queueEvent, renderPhase, restoreState, saveState, setDefaultProperties, setRendered, setTransientAttribute, toString, updatePhase, validationPhase, verifyAsyncDecode |
| Methods inherited from class javax.faces.component.UISelectItem |
|---|
getItemDescription, getItemLabel, getItemValue, getValue, isItemDisabled, isItemEscaped, setItemDescription, setItemDisabled, setItemEscaped, setItemLabel, setItemValue, setValue |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.rcfaces.core.component.capability.IStatesImageCapability |
|---|
getDisabledImageURL, getHoverImageURL, getSelectedImageURL, setDisabledImageURL, setHoverImageURL, setSelectedImageURL |
| Methods inherited from interface org.rcfaces.core.component.capability.IImageCapability |
|---|
getImageAccessors, getImageURL, setImageURL |
| Methods inherited from interface org.rcfaces.core.internal.manager.IContainerManager |
|---|
getChildCount |
| Field Detail |
|---|
public static final String COMPONENT_TYPE
protected static final Set CAMELIA_ATTRIBUTES
| Constructor Detail |
|---|
public MenuItemComponent()
public MenuItemComponent(String componentId)
| Method Detail |
|---|
public IMenuComponent getMenu()
public IMenuItemIterator listMenuItems()
public String getAccessKey()
IAccessKeyCapability
getAccessKey in interface IAccessKeyCapabilitypublic String getAccessKey(FacesContext facesContext)
getAccessKey() for more details
public final boolean isAccessKeySetted()
true if the attribute "accessKey" is set.
true if the attribute is set.public void setAccessKey(String accessKey)
IAccessKeyCapability
setAccessKey in interface IAccessKeyCapabilityaccessKey - <Any alphanumeric key>public String getAcceleratorKey()
IAcceleratorKeyCapability
getAcceleratorKey in interface IAcceleratorKeyCapabilitypublic String getAcceleratorKey(FacesContext facesContext)
getAcceleratorKey() for more details
public final boolean isAcceleratorKeySetted()
true if the attribute "acceleratorKey" is set.
true if the attribute is set.public void setAcceleratorKey(String acceleratorKey)
IAcceleratorKeyCapability
setAcceleratorKey in interface IAcceleratorKeyCapabilityacceleratorKey - [Shift|Alt|Ctrl] + <Any key>public String getStyleClass()
IStyleClassCapability
getStyleClass in interface IStyleClassCapabilitypublic String getStyleClass(FacesContext facesContext)
getStyleClass() for more details
public final boolean isStyleClassSetted()
true if the attribute "styleClass" is set.
true if the attribute is set.public void setStyleClass(String styleClass)
IStyleClassCapability
setStyleClass in interface IStyleClassCapabilitystyleClass - style classpublic boolean isImmediate()
IImmediateCapability
isImmediate in interface IImmediateCapabilitypublic boolean isImmediate(FacesContext facesContext)
isImmediate() for more details
public final boolean isImmediateSetted()
true if the attribute "immediate" is set.
true if the attribute is set.public void setImmediate(boolean immediate)
IImmediateCapability
setImmediate in interface IImmediateCapabilityimmediate - booleanpublic final void addMenuListener(IMenuListener listener)
IMenuEventCapability
addMenuListener in interface IMenuEventCapabilitylistener - the menu listener to addpublic final void removeMenuListener(IMenuListener listener)
IMenuEventCapability
removeMenuListener in interface IMenuEventCapabilitylistener - the menu listener to removepublic final FacesListener[] listMenuListeners()
IMenuEventCapability
listMenuListeners in interface IMenuEventCapabilitypublic boolean isRemoveAllWhenShown()
public boolean isRemoveAllWhenShown(FacesContext facesContext)
public void setRemoveAllWhenShown(boolean removeAllWhenShown)
removeAllWhenShown - true if content is to be removed when shownpublic boolean isRemoveAllWhenShownSetted()
true if the attribute "removeAllWhenShown" is set.
true if the attribute is set.protected Set getCameliaFields()
getCameliaFields in class ExpandableItemComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||