|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Renders some form of chooser control (Popop, 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 interface ariba.ui.aribaweb.core.AWResponseGenerating |
|---|
AWResponseGenerating.ResponseSubstitution |
| Constructor Summary | |
|---|---|
GenericChooser()
|
|
| Method Summary | |
|---|---|
Object |
displayValue()
|
void |
init()
|
boolean |
isSelected(Object selection)
|
boolean |
isStateless()
Overridden by AWComponent subclasses to indicate whether component instances should be preseved with the page/session (i.e. |
void |
renderResponse(AWRequestContext requestContext,
AWComponent component)
The receiver should render its content to the AWRequestContext.response() |
Object |
selectedObject()
|
List |
selectedObjects()
|
Object |
selection()
|
void |
setSelection(Object value)
|
void |
setSelectionState(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 |
| Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
|---|
getFieldValue, isKindOfClass, setFieldValue |
| Field Detail |
|---|
public Object _item
public List _list
public ChooserSelectionSource _chooserSource
public ChooserState _chooserState
public ariba.ui.validation.GenericChooser.ChooserType _type
public boolean _isMulti
public String _displayKey
public Object _formatter
public Object _chooserFormatter
| Constructor Detail |
|---|
public GenericChooser()
| Method Detail |
|---|
public boolean isStateless()
AWComponent
isStateless in class AWComponentpublic void init()
init in interface AWObjectinit in class AWComponent
public void renderResponse(AWRequestContext requestContext,
AWComponent component)
AWCycleableAWRequestContext.response()
renderResponse in interface AWCycleablerenderResponse in class AWComponentrequestContext - the context for the current request.component - the current parent componentpublic Object displayValue()
public Object selection()
public void setSelection(Object value)
public void setSelectionState(Object selection,
boolean selected)
setSelectionState in interface ChooserSelectionStatepublic Object selectedObject()
selectedObject in interface ChooserSelectionStatepublic List selectedObjects()
selectedObjects in interface ChooserSelectionStatepublic boolean isSelected(Object selection)
isSelected in interface ChooserSelectionState
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||