|
||||||||||
| 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.UIOutput
javax.faces.component.UIInput
javax.faces.component.UISelectMany
org.rcfaces.core.internal.component.CameliaSelectManyComponent
org.rcfaces.core.component.MenuComponent
public class MenuComponent
The menu Component provides a way of creating desktop style menus on web pages. It allows sub-menus, check and radio menu items and image menus. It also provides pop-up menus.
The menu Component has the following capabilities :
The default menu renderer is linked to the f_menu javascript class. f_menu extends f_menuBase
Table of component style classes:
| Style Name | Description |
|---|---|
| f_menu | Defines styles for the wrapper UL element. Coantains f_grid_popup and f_menu_item styles |
| Field Summary | |
|---|---|
protected static Set |
CAMELIA_ATTRIBUTES
|
static String |
COMPONENT_TYPE
|
| Fields inherited from class org.rcfaces.core.internal.component.CameliaSelectManyComponent |
|---|
engine |
| Fields inherited from class javax.faces.component.UISelectMany |
|---|
COMPONENT_FAMILY, INVALID_MESSAGE_ID |
| Fields inherited from class javax.faces.component.UIInput |
|---|
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
MenuComponent()
|
|
MenuComponent(String componentId)
|
|
| Method Summary | |
|---|---|
void |
addCheckListener(ICheckListener listener)
Adds a listener to the component for the checked event |
void |
addMenuListener(IMenuListener listener)
Adds a listener to the component for the menu event |
void |
addSelectionListener(ISelectionListener listener)
Adds a listener to the component for the selection event |
void |
check(Object value)
|
void |
checkAll()
|
protected Set |
getCameliaFields()
|
Object |
getCheckedValues()
|
Object |
getCheckedValues(FacesContext facesContext)
See getCheckedValues() for more details |
int |
getCheckedValuesCount()
|
Class |
getCheckedValuesType(FacesContext facesContext)
Return the type of the property represented by the ValueExpression, relative to the specified FacesContext. |
org.rcfaces.core.internal.tools.CollectionTools.IComponentValueType |
getComponentValueType()
|
Object |
getFirstCheckedValue()
|
String |
getMenuId()
Returns an id used to retreive a specific menu. |
String |
getMenuId(FacesContext facesContext)
Returns an id used to retreive a specific menu. |
int |
getPreloadedLevelDepth()
|
int |
getPreloadedLevelDepth(FacesContext facesContext)
See getPreloadedLevelDepth() for more details |
boolean |
isCheckedValuesSetted()
Returns true if the attribute "checkedValues" is set. |
boolean |
isMenuIdSetted()
Returns true if the attribute "menuId" is set. |
boolean |
isPreloadedLevelDepthSetted()
Returns true if the attribute "preloadedLevelDepth" 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. |
Object[] |
listCheckedValues()
|
FacesListener[] |
listCheckListeners()
Returns the list of check listener for the component |
IMenuItemIterator |
listMenuItems()
|
FacesListener[] |
listMenuListeners()
Returns a list of menu listener for the component |
FacesListener[] |
listSelectionListeners()
Returns a list of selection listener for the component |
void |
removeCheckListener(ICheckListener listener)
Removes a listener from the list of listeners |
void |
removeMenuListener(IMenuListener listener)
Removes a listener from the component for the menu event |
void |
removeSelectionListener(ISelectionListener listener)
Removes a listener from the component for the selection event |
void |
setCheckedValues(Object checkedValues)
|
void |
setMenuId(String menuId)
Sets an id used to retreive a specific menu. |
void |
setPreloadedLevelDepth(int preloadedLevelDepth)
|
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 |
uncheck(Object value)
|
void |
uncheckAll()
|
| Methods inherited from class org.rcfaces.core.internal.component.CameliaSelectManyComponent |
|---|
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, setConverter, setConverter, setDefaultProperties, setRendered, setTransientAttribute, setValueExpression, toString, updatePhase, validationPhase, verifyAsyncDecode |
| Methods inherited from class javax.faces.component.UISelectMany |
|---|
compareValues, getSelectedValues, getValueBinding, setSelectedValues, setValueBinding, validateValue |
| Methods inherited from class javax.faces.component.UIOutput |
|---|
getConverter, getLocalValue, getValue, setConverter |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, findComponent, getAttributes, getChildCount, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendersChildren, invokeOnComponent, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| 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.internal.manager.IContainerManager |
|---|
getChildCount |
| Methods inherited from interface javax.faces.component.ValueHolder |
|---|
getConverter, getLocalValue, getValue, setConverter, setValue |
| Field Detail |
|---|
public static final String COMPONENT_TYPE
protected static final Set CAMELIA_ATTRIBUTES
| Constructor Detail |
|---|
public MenuComponent()
public MenuComponent(String componentId)
| Method Detail |
|---|
public IMenuItemIterator listMenuItems()
listMenuItems in interface IMenuComponentpublic org.rcfaces.core.internal.tools.CollectionTools.IComponentValueType getComponentValueType()
getComponentValueType in interface org.rcfaces.core.internal.tools.CollectionTools.IComponentValueTypeCapabilitypublic void check(Object value)
check in interface org.rcfaces.core.internal.capability.ICheckComponentpublic void checkAll()
checkAll in interface org.rcfaces.core.internal.capability.ICheckComponentpublic void uncheck(Object value)
uncheck in interface org.rcfaces.core.internal.capability.ICheckComponentpublic void uncheckAll()
uncheckAll in interface org.rcfaces.core.internal.capability.ICheckComponentpublic int getPreloadedLevelDepth()
getPreloadedLevelDepth in interface IPreloadedLevelDepthCapabilitypublic int getPreloadedLevelDepth(FacesContext facesContext)
getPreloadedLevelDepth() for more details
public final boolean isPreloadedLevelDepthSetted()
true if the attribute "preloadedLevelDepth" is set.
true if the attribute is set.public void setPreloadedLevelDepth(int preloadedLevelDepth)
setPreloadedLevelDepth in interface IPreloadedLevelDepthCapabilitypublic 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 final void addSelectionListener(ISelectionListener listener)
ISelectionEventCapability
addSelectionListener in interface ISelectionEventCapabilitylistener - the selection listener to addpublic final void removeSelectionListener(ISelectionListener listener)
ISelectionEventCapability
removeSelectionListener in interface ISelectionEventCapabilitylistener - the selection listener to removepublic final FacesListener[] listSelectionListeners()
ISelectionEventCapability
listSelectionListeners in interface ISelectionEventCapabilitypublic final void addCheckListener(ICheckListener listener)
ICheckEventCapability
addCheckListener in interface ICheckEventCapabilitylistener - the listener to addpublic final void removeCheckListener(ICheckListener listener)
ICheckEventCapability
removeCheckListener in interface ICheckEventCapabilitylistener - the listener to removepublic final FacesListener[] listCheckListeners()
ICheckEventCapability
listCheckListeners in interface ICheckEventCapabilitypublic Object getCheckedValues()
getCheckedValues in interface ICheckProviderpublic Object getCheckedValues(FacesContext facesContext)
getCheckedValues() for more details
public final boolean isCheckedValuesSetted()
true if the attribute "checkedValues" is set.
true if the attribute is set.public void setCheckedValues(Object checkedValues)
setCheckedValues in interface ICheckProviderpublic Class getCheckedValuesType(FacesContext facesContext)
ValueExpression, relative to the specified FacesContext.
getCheckedValuesType in interface ICheckedValuesCapabilitypublic Object getFirstCheckedValue()
getFirstCheckedValue in interface ICheckProviderpublic int getCheckedValuesCount()
getCheckedValuesCount in interface ICheckProviderpublic Object[] listCheckedValues()
listCheckedValues in interface ICheckProviderpublic String getMenuId()
public String getMenuId(FacesContext facesContext)
public void setMenuId(String menuId)
menuId - menu Idpublic boolean isMenuIdSetted()
true if the attribute "menuId" is set.
true if the attribute is set.public boolean isRemoveAllWhenShown()
isRemoveAllWhenShown in interface IMenuComponentpublic boolean isRemoveAllWhenShown(FacesContext facesContext)
public void setRemoveAllWhenShown(boolean removeAllWhenShown)
setRemoveAllWhenShown in interface IMenuComponentremoveAllWhenShown - 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 org.rcfaces.core.internal.component.CameliaSelectManyComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||