|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Renders some form of chooser control (Popup, Radio Buttons, Checkboxes, Chooser). The type of chooser may be determined dynamically based on the number of items in the choice list, or can be specified explicitly via the "type" binding.
Bindings | |||
---|---|---|---|
object
|
The object being assigned to. Defaults to the curent component instance. |
Object (get) |
|
key
|
The object key(path) being assigned to. |
Object (get) |
|
list
|
List of choice objects assignable to the key of the object. |
AWOrderedList (get) |
|
destinationClass
|
Can be used in place of "list" to trigger obtaining the list of choices by was of the ChoiceSource class extension. |
String (get) |
|
choiceProviderParams
|
See ChoiceSourceRegistry... (Optional) map of params for the provider. |
Map (get) |
|
multiSelect
|
Is this a List property, or a to-one. |
boolean (get) |
|
type
|
The style of chooser to use (Radio, Checkbox, Popup, PopupControl, Chooser) Defaults based on cardinality of the list and whether it's multiSelect. |
String (get) |
|
displayKey
|
The key(path) of the choice objects to get the property to display (uses choice object directly if null). |
String (get) |
|
action
|
The action invoked when a popup menu item is changed. Note that action="$null" is different from no action binding at all. If you have action="$null", it will submit the form and cycle the page upon change to the popup, while no action at all makes the popup passive (ie. user must click a button to submt the form). |
AWResponseGenerating (get) |
|
noSelectionString
|
TBD |
String (get) |
|
isRefresh
|
Convenience binding that is the same as action="$null". See action binding for more information on action="$null". |
boolean (get) |
|
disabled
|
Disables the popup menu if true. |
boolean (get) |
|
size
|
TBD |
int (get) |
|
allowFullMatchOnInput
|
Should we attempt a match as they type (against the full list) |
boolean (get) |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWComponent
ariba.ui.validation.GenericChooser
public class GenericChooser
Nested Class Summary | |
---|---|
static class |
GenericChooser.FieldPathFormatter
|
Nested classes/interfaces inherited from class ariba.ui.aribaweb.core.AWComponent |
---|
AWComponent.RenderingFilter, AWComponent.RenderingListener |
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating |
---|
AWResponseGenerating.ResponseSubstitution |
Constructor Summary | |
---|---|
GenericChooser()
|
Method Summary | |
---|---|
java.lang.Object |
displayValue()
|
void |
init()
|
boolean |
isSelected(java.lang.Object selection)
|
boolean |
isStateless()
Overridden by AWComponent subclasses to indicate whether component instances should be preserved with the page/session (i.e. |
void |
renderResponse(AWRequestContext requestContext,
AWComponent component)
The receiver should render its content to the AWRequestContext.response() |
java.lang.Object |
selectedObject()
|
java.util.List |
selectedObjects()
|
java.lang.Object |
selection()
|
void |
setSelection(java.lang.Object value)
|
void |
setSelectionState(java.lang.Object selection,
boolean selected)
|
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
debugString, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
---|
getFieldValue, isKindOfClass, setFieldValue |
Field Detail |
---|
public java.lang.Object _item
public java.util.List _list
public ChooserSelectionSource _chooserSource
public ChooserState _chooserState
public ariba.ui.validation.GenericChooser.ChooserType _type
public boolean _isMulti
public java.lang.String _displayKey
public java.lang.Object _formatter
public java.lang.Object _chooserFormatter
Constructor Detail |
---|
public GenericChooser()
Method Detail |
---|
public boolean isStateless()
AWComponent
isStateless
in class AWComponent
public void init()
init
in interface AWObject
init
in class AWComponent
public void renderResponse(AWRequestContext requestContext, AWComponent component)
AWCycleable
AWRequestContext.response()
renderResponse
in interface AWCycleable
renderResponse
in class AWComponent
requestContext
- the context for the current request.component
- the current parent componentpublic java.lang.Object displayValue()
public java.lang.Object selection()
public void setSelection(java.lang.Object value)
public void setSelectionState(java.lang.Object selection, boolean selected)
setSelectionState
in interface ChooserSelectionState
public java.lang.Object selectedObject()
selectedObject
in interface ChooserSelectionState
public java.util.List selectedObjects()
selectedObjects
in interface ChooserSelectionState
public boolean isSelected(java.lang.Object selection)
isSelected
in interface ChooserSelectionState
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |