ilog.views.faces.component
Class IlvFacesMenu

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by ilog.views.faces.component.IlvFacesMenu
All Implemented Interfaces:
IlvFacesComponent, IlvFacesConstants, Serializable, EditableValueHolder, StateHolder, ValueHolder
Direct Known Subclasses:
IlvFacesContextualMenu

public class IlvFacesMenu
extends UIInput
implements IlvFacesComponent

This class defines a menu whose parent is a view or another menu.

Since:
JViews 7.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface ilog.views.faces.IlvFacesConstants
BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CORE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, ENABLED, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, GANTT_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MENU_MODEL_ID, MESSAGE, MESSAGE_BOX, MESSAGE_BOX_ID, MOVE_ALLOWED, OBJECT_FINDER, PARAM_COMPID, PARAM_DATA, PARAM_KEY, PARAM_NAMESPACE, PARAM_RESOURCE, PARAM_SERVICE, PARAM_TYPE, POPUP_MENU, POPUP_MENU_FACTORY, POPUP_MENU_FACTORY_CLASS, PORTLET_NAMESPACE, PROJECT, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH
 
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, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, 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, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, getValueExpression, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, setValueExpression
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
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

IlvFacesMenu

public IlvFacesMenu()
Creates a new IlvFacesMenu instance.

Method Detail

getFamily

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.

Overrides:
getFamily in class UIInput
Returns:
The family to which this component belongs.

getComponentType

public static String getComponentType()
Returns the type of this component.

Returns:
The type of this component.

broadcast

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.

Overrides:
broadcast in class UIComponentBase
Parameters:
event - The event to be broadcast
Throws:
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 null

getItemStyleClass

public String getItemStyleClass()
Returns the CSS class name of a menu item.

Returns:
The itemStyleClass.

setItemStyleClass

public void setItemStyleClass(String itemStyleClass)
Sets the CSS class name of a menu item.

Parameters:
itemStyleClass - The itemStyleClass to set.

getItemHighlightedStyleClass

public String getItemHighlightedStyleClass()
Returns the CSS class name of a highlighted menu item.

Returns:
The itemHighlightedStyleClass.

setItemHighlightedStyleClass

public void setItemHighlightedStyleClass(String itemHighlightedStyleClass)
Sets the CSS class name of a highlighted menu item.

Parameters:
itemHighlightedStyleClass - The itemHighlightedStyleClass to set.

getItemDisabledStyleClass

public String getItemDisabledStyleClass()
Returns the CSS class name of a disabled menu item.

Returns:
The itemDisabledStyleClass.

setItemDisabledStyleClass

public void setItemDisabledStyleClass(String itemDisabledStyleClass)
Sets the CSS class name of a disabled menu item.

Parameters:
itemDisabledStyleClass - The itemDisabledStyleClass to set.

updateModel

public void updateModel(FacesContext context)

Overrides:
updateModel in class UIInput

saveState

public Object saveState(FacesContext context)
Returns the state of this component.

Specified by:
saveState in interface IlvFacesComponent
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class UIInput
Parameters:
context - The current faces context.
Returns:
The state of this component.

restoreState

public void restoreState(FacesContext context,
                         Object stateObj)
Restores the state of this component from the state parameter.

Specified by:
restoreState in interface IlvFacesComponent
Specified by:
restoreState in interface StateHolder
Overrides:
restoreState in class UIInput
Parameters:
context - The current faces context.
stateObj - The previously saved state of this component.

getAttributes

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:

Overrides:
getAttributes in class UIComponentBase
Since:
JViews 8.1

isDecodedProperty

public boolean isDecodedProperty(String property)
Returns true if the specified property was decoded during the "Apply Request Value" phase of the JSF lifecycle, false otherwise.

Specified by:
isDecodedProperty in interface IlvFacesComponent
Parameters:
property - The property to test.
Returns:
true if the property was decoded, false otherwise.

setDecodedProperty

public 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. This method must be called by renderers only during the execution of their decode method.

Specified by:
setDecodedProperty in interface IlvFacesComponent
Parameters:
property - The property to set to decoded.

resetDecodedProperties

public void resetDecodedProperties()
Resets the decoded properties of this component.

Specified by:
resetDecodedProperties in interface IlvFacesComponent

clearDecodedPropertyMap

public void clearDecodedPropertyMap()
Clears the decoded properties.

Specified by:
clearDecodedPropertyMap in interface IlvFacesComponent


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.