|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An AJAX auto-completion chooser. Supports both single and multi-select.
Bindings | |||
---|---|---|---|
selections
|
Short list of available selections. |
AWOrderedList (get) |
|
selectionSource
|
Interface responsible for returning matches given a pattern. See ChooserSelectionSource. |
ChooserSelectionSource (get) |
|
state
|
The object holding all the UI state including the current selected objects. See ChooserState and ChooserSelectionState. |
ChooserState (both) |
|
noSelectionString
|
TBD |
String (get) |
|
formatter
|
Formatter used to format each selection and selected object for display. |
AWFormatting (get) |
|
disabled
|
TBD |
boolean (get) |
|
size
|
TBD |
int (get) |
|
multiSelect
|
TBD |
boolean (get) |
|
searchAction
|
TBD |
AWResponseGenerating (get) |
|
maxLength
|
TBD |
int (get) |
|
errorKey
|
TBD |
Object (get) |
|
basic
|
If true, the chooser will run in the basic mode with the following:
|
boolean (get) |
|
class
|
CSS class for wrapper and match menu element. "Menu" will be appended for the menu class name. Example: .foo { // style wrapper } .foo input { // style text field } .fooMenu { // style menu } |
String (get) |
|
allowFullMatchOnInput
|
Temp binding to allow full match on input. Later it will be true always. |
boolean (get) |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWComponent
ariba.ui.widgets.Chooser
public class Chooser
Nested Class Summary |
---|
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 | |
---|---|
Chooser()
|
Method Summary | |
---|---|
void |
applyValues(AWRequestContext requestContext,
AWComponent component)
The receiver should take any form values (or query string parameters) that it owns from the AWRequestContext.request() . |
java.lang.String |
behavior()
|
boolean |
canAdd()
|
java.lang.String |
chooserAddLinkSemanticKey()
|
java.lang.String |
chooserDropDownSemanticKey()
Method used to set the semantic key on the drop down image of the chooser. |
java.lang.String |
chooserRemoveLinkSemanticKey()
|
ChooserState |
chooserState()
|
java.lang.String |
cssClass()
|
java.lang.String |
currentItemHighlightedString()
|
java.lang.String |
currentItemString()
|
boolean |
displayRecentlyViewed()
|
java.lang.String |
displayValue()
|
boolean |
getFullMatchValue()
|
boolean |
getRemoveValue()
|
java.lang.String |
getSelectionList()
|
AWResponseGenerating |
invokeAction(AWRequestContext requestContext,
AWComponent component)
The receiver should determine if it is the intended recipient of the current action (by checking the AWRequestContext.request() AWRequest.senderId() ) and,
if so, handle the action and return the result. |
boolean |
isDisabled()
|
boolean |
isInvalid()
|
boolean |
isReadOnly()
|
boolean |
isSender()
|
boolean |
itemCountChanged()
The size of multi-select choosers can change based on user selections. |
AWResponse |
matchAction()
|
int |
maxRecentSelected()
|
java.lang.String |
menuClass()
|
java.lang.String |
moreSelectedString()
|
java.lang.String |
moreSelectedStringPlusOne()
|
java.lang.String |
moreSelectedStringPlusTwo()
|
java.lang.String |
noSelectionString()
|
java.lang.String |
recentSelectedStyle()
|
void |
renderResponse(AWRequestContext requestContext,
AWComponent component)
The receiver should render its content to the AWRequestContext.response() |
AWResponseGenerating |
searchAction()
|
java.lang.String |
selectValue()
|
void |
setChooserId(AWEncodedString chooserId)
|
void |
setDisplayValue(java.lang.String displayValue)
we only do a match if the incoming strings differs from the previous value - if the underlying selected object has changed we don't rematch |
void |
setFullMatchValue(boolean fullMatchValue)
|
void |
setRemoveValue(boolean removeValue)
|
void |
setSelectionList(java.lang.String listId)
|
void |
setSelectValue(java.lang.String selectionIndexValue)
|
void |
setToggleValue(java.lang.String selectionIndexValue)
|
boolean |
showBullet()
|
boolean |
showCheck()
|
boolean |
showMoreSelected()
|
java.lang.String[] |
supportedBindingNames()
|
AWResponseGenerating |
textAction()
|
java.lang.String |
toggleValue()
|
java.lang.String |
wrapperClass()
|
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 static int MaxRecentSelected
public static java.lang.String Matches
public static java.lang.String FilteredSelections
public static java.lang.String NoSelectionString
public static java.lang.String MoreSelectedString
public static java.lang.String NoMatchFoundString
public AWEncodedString _chooserId
public AWEncodedString _menuId
public boolean _basic
Constructor Detail |
---|
public Chooser()
Method Detail |
---|
public java.lang.String[] supportedBindingNames()
supportedBindingNames
in class AWComponent
public java.lang.String noSelectionString()
public java.lang.String behavior()
public void setChooserId(AWEncodedString chooserId)
public ChooserState chooserState()
public java.lang.String currentItemString()
public java.lang.String chooserDropDownSemanticKey()
public java.lang.String chooserAddLinkSemanticKey()
public java.lang.String chooserRemoveLinkSemanticKey()
public java.lang.String currentItemHighlightedString()
public java.lang.String displayValue()
public void setDisplayValue(java.lang.String displayValue)
public boolean isReadOnly()
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 boolean isInvalid()
public boolean showBullet()
public boolean showCheck()
public java.lang.String recentSelectedStyle()
public int maxRecentSelected()
public boolean showMoreSelected()
public java.lang.String moreSelectedString()
public java.lang.String moreSelectedStringPlusOne()
public java.lang.String moreSelectedStringPlusTwo()
public void applyValues(AWRequestContext requestContext, AWComponent component)
AWCycleable
AWRequestContext.request()
.
applyValues
in interface AWCycleable
applyValues
in class AWComponent
requestContext
- the context for the current request.component
- the current parent componentpublic boolean isSender()
public AWResponseGenerating invokeAction(AWRequestContext requestContext, AWComponent component)
AWCycleable
AWRequestContext.request()
AWRequest.senderId()
) and,
if so, handle the action and return the result.
invokeAction
in interface AWCycleable
invokeAction
in class AWComponent
requestContext
- the context for the current request.component
- the current parent component
public java.lang.String selectValue()
public java.lang.String toggleValue()
public boolean getRemoveValue()
public java.lang.String getSelectionList()
public boolean displayRecentlyViewed()
public void setSelectionList(java.lang.String listId)
public void setSelectValue(java.lang.String selectionIndexValue)
public void setToggleValue(java.lang.String selectionIndexValue)
public boolean itemCountChanged()
public void setRemoveValue(boolean removeValue)
public boolean getFullMatchValue()
public void setFullMatchValue(boolean fullMatchValue)
public AWResponse matchAction()
public boolean canAdd()
public AWResponseGenerating textAction()
public AWResponseGenerating searchAction()
public boolean isDisabled()
public java.lang.String wrapperClass()
public java.lang.String menuClass()
public java.lang.String cssClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |