| com.sun.rave.web.ui.component.SelectorBase com.sun.rave.web.ui.component.Selector
All known Subclasses: com.sun.rave.web.ui.component.ListSelectorBase, com.sun.rave.web.ui.component.CheckboxGroupBase, com.sun.rave.web.ui.component.RadioButtonGroupBase, com.sun.rave.web.ui.component.RbCbSelectorBase,
Selector | public Selector()(Code) | | |
compareValues | protected boolean compareValues(Object previous, Object value)(Code) | | Return true if the new value is different from the
previous value.
This only implements a compareValues for value if it is an Array.
If value is not an Array, defer to super.compareValues.
The assumption is that the ordering of the elements
between the previous value and the new value is determined
in the same manner.
Another assumption is that the two object arguments
are of the same type, both arrays of both not arrays.
Parameters: previous - old value of this component (if any) Parameters: value - new value of this component (if any) |
getConvertedValue | public Object getConvertedValue(FacesContext context, Object submittedValue) throws ConverterException(Code) | | Retrieve the value of this component (the "selected" property) as an
object. This method is invoked by the JSF engine during the validation
phase. The JSF default behaviour is for components to defer the
conversion and validation to the renderer, but for the Selector based
components, the renderers do not share as much functionality as the
components do, so it is more efficient to do it here.
Parameters: context - The FacesContext of the request Parameters: submittedValue - The submitted value of the component |
getLabelLevel | public int getLabelLevel()(Code) | | |
getRendersChildren | public boolean getRendersChildren()(Code) | | Return a flag indicating whether this component is responsible
for rendering its child components. The default implementation
in
UIComponentBase.getRendersChildren tries to find the
renderer for this component. If it does, it calls
Renderer.getRendersChildren and returns the result. If it
doesn't, it returns false. As of version 1.2 of the JavaServer
Faces Specification, component authors are encouraged to return
true from this method and rely on
UIComponentBase.encodeChildren .
|
getValueAsReadOnly | protected String getValueAsReadOnly(FacesContext context)(Code) | | Return a string suitable for displaying the value in read only mode.
The default is to separate the list values with a comma.
Parameters: context - The FacesContext throws: javax.faces.FacesException - If the list items cannot be processed |
isMultiple | public boolean isMultiple()(Code) | | Getter for property multiple.
Value of property multiple. |
log | static void log(String s, Object o)(Code) | | private method for development time error detecting
|
log | void log(String s)(Code) | | private method for development time error detecting
|
setMultiple | public void setMultiple(boolean multiple)(Code) | | Setter for property multiple.
Parameters: multiple - New value of property multiple. |
toString | public String toString()(Code) | | Public method toString()
A String representation of this component |
|
|