|
||||||||||
| PREV CLASS Documentation homepage 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
ilog.views.faces.component.IlvFacesMenu
public class IlvFacesMenu
This class defines a menu whose parent is a view or another menu.
| Field Summary |
|---|
| Fields inherited from class javax.faces.component.UIInput |
|---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
| Constructor Summary | |
|---|---|
IlvFacesMenu()
Creates a new IlvFacesMenu instance. |
|
| Method Summary | |
|---|---|
void |
broadcast(FacesEvent event)
In addition to to the default broadcast processing, pass the event being broadcast to the listeners registered on the selected menu item. |
void |
clearDecodedPropertyMap()
Clears the decoded properties. |
Map |
getAttributes()
Return a mutable Map representing the attributes
(and properties, see below) associated with this UIComponent,
keyed by attribute name (which must be a String). |
static String |
getComponentType()
Returns the type of this component. |
String |
getFamily()
Returns the identifier of the component family to which this component belongs. |
String |
getItemDisabledStyleClass()
Returns the CSS class name of a disabled menu item. |
String |
getItemHighlightedStyleClass()
Returns the CSS class name of a highlighted menu item. |
String |
getItemStyleClass()
Returns the CSS class name of a menu item. |
boolean |
isDecodedProperty(String property)
Returns true if the specified property was decoded during the "Apply
Request Value" phase of the JSF lifecycle, false otherwise. |
void |
resetDecodedProperties()
Resets the decoded properties of this component. |
void |
restoreState(FacesContext context,
Object stateObj)
Restores the state of this component from the state parameter. |
Object |
saveState(FacesContext context)
Returns the state of this component. |
void |
setDecodedProperty(String property)
Sets the property to decoded, which means that the property value was
updated from the request during the "Apply Request Value" phase of the JSF
life cycle. |
void |
setItemDisabledStyleClass(String itemDisabledStyleClass)
Sets the CSS class name of a disabled menu item. |
void |
setItemHighlightedStyleClass(String itemHighlightedStyleClass)
Sets the CSS class name of a highlighted menu item. |
void |
setItemStyleClass(String itemStyleClass)
Sets the CSS class name of a menu item. |
void |
updateModel(FacesContext context)
|
| Methods inherited from class javax.faces.component.UIInput |
|---|
addValidator, addValueChangeListener, compareValues, decode, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, validate, validateValue |
| Methods inherited from class javax.faces.component.UIOutput |
|---|
getConverter, getLocalValue, getValue, setConverter |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.faces.component.ValueHolder |
|---|
getConverter, getLocalValue, getValue, setConverter |
| Constructor Detail |
|---|
public IlvFacesMenu()
IlvFacesMenu instance.
| Method Detail |
|---|
public String getFamily()
Returns the identifier of the component family to which this component
belongs. This identifier, in conjunction with the value of the rendererType
property, may be used to select the appropriate Renderer for this component
instance.
This implementation returns the fully qualified class name.
getFamily in class UIInputpublic static String getComponentType()
public void broadcast(FacesEvent event)
throws AbortProcessingException
In addition to to the default broadcast processing, pass the event being broadcast to the listeners registered on the selected menu item.
broadcast in class UIInputevent - The event to be broadcast
AbortProcessingException - Signal the JavaServer Faces
implementation that no further processing on the current event
should be performed
IllegalArgumentException - if the implementation class
of this FacesEvent is not supported by this component
NullPointerException - if event is
nullpublic String getItemStyleClass()
public void setItemStyleClass(String itemStyleClass)
itemStyleClass - The itemStyleClass to set.public String getItemHighlightedStyleClass()
public void setItemHighlightedStyleClass(String itemHighlightedStyleClass)
itemHighlightedStyleClass - The itemHighlightedStyleClass to set.public String getItemDisabledStyleClass()
public void setItemDisabledStyleClass(String itemDisabledStyleClass)
itemDisabledStyleClass - The itemDisabledStyleClass to set.public void updateModel(FacesContext context)
updateModel in class UIInputpublic Object saveState(FacesContext context)
saveState in interface IlvFacesComponentsaveState in interface StateHoldersaveState in class UIInputcontext - The current faces context.
public void restoreState(FacesContext context,
Object stateObj)
restoreState in interface IlvFacesComponentrestoreState in interface StateHolderrestoreState in class UIInputcontext - The current faces context.stateObj - The previously saved state of this component.public Map getAttributes()
Return a mutable Map representing the attributes
(and properties, see below) associated with this UIComponent,
keyed by attribute name (which must be a String). The returned
implementation must support all of the standard and optional
Map methods, plus support the following additional
requirements:
Map implementation must implement
the java.io.Serializable interface.null key or value must
throw a NullPointerException.ClassCastException.UIComponent's implementation class, the following
methods will have special behavior:
containsKey - Return false.get() - If the property is readable, call
the getter method and return the returned value (wrapping
primitive values in their corresponding wrapper classes);
otherwise throw IllegalArgumentException.put() - If the property is writable, call
the setter method to set the corresponding value (unwrapping
primitive values in their corresponding wrapper classes).
If the property is not writeable, or an attempt is made to
set a property of primitive type to null,
throw IllegalArgumentException.remove - Throw
IllegalArgumentException.
getAttributes in class UIComponentBasepublic boolean isDecodedProperty(String property)
true if the specified property was decoded during the "Apply
Request Value" phase of the JSF lifecycle, false otherwise.
isDecodedProperty in interface IlvFacesComponentproperty - The property to test.
true if the property was decoded, false otherwise.public void setDecodedProperty(String property)
decoded, which means that the property value was
updated from the request during the "Apply Request Value" phase of the JSF
life cycle. This method must be called by renderers only during the execution of their decode
method.
setDecodedProperty in interface IlvFacesComponentproperty - The property to set to decoded.public void resetDecodedProperties()
resetDecodedProperties in interface IlvFacesComponentpublic void clearDecodedPropertyMap()
clearDecodedPropertyMap in interface IlvFacesComponent
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||