<w:Chooser>

An AJAX auto-completion chooser. Supports both single and multi-select.

Bindings
selections

TBD

AWOrderedList
(get)
selectionSource

TBD

ChooserSelectionSource
(get)
state

TBD

ChooserState
(both)
noSelectionString

TBD

String
(get)
formatter

TBD

Formatter
(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)
allowFullMatchOnInput

Temp binding to allow full match on input. Later it will be true always.

boolean
(get)

ariba.ui.widgets
Class Chooser

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.core.AWComponent
          extended by ariba.ui.widgets.Chooser
All Implemented Interfaces:
AWCycleable, AWCycleableReference, AWResponseGenerating, AWResponseGenerating.ResponseSubstitution, AWObject

public class Chooser
extends AWComponent


Nested Class Summary
 
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().
 String behavior()
           
 String chooserAddLinkSemanticKey()
           
 String chooserDropDownSemanticKey()
          Method used to set the semantic key on the drop down image of the chooser.
 String chooserRemoveLinkSemanticKey()
           
 ChooserState chooserState()
           
 String cssClass()
           
 String currentItemHighlightedString()
           
 String currentItemString()
           
 boolean displayRecentlyViewed()
           
 String displayValue()
           
 boolean getFullMatchValue()
           
 boolean getRemoveValue()
           
 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()
           
 AWResponse matchAction()
           
 int maxRecentSelected()
           
 String moreSelectedString()
           
 String moreSelectedStringPlusOne()
           
 String moreSelectedStringPlusTwo()
           
 String noSelectionString()
           
 String recentSelectedStyle()
           
 void renderResponse(AWRequestContext requestContext, AWComponent component)
          The receiver should render its content to the AWRequestContext.response()
 AWResponseGenerating searchAction()
           
 String selectValue()
           
 void setChooserId(AWEncodedString chooserId)
           
 void setDisplayValue(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(String listId)
           
 void setSelectValue(String selectionIndexValue)
           
 void setToggleValue(String selectionIndexValue)
           
 boolean showBullet()
           
 boolean showCheck()
           
 boolean showMoreSelected()
           
 String[] supportedBindingNames()
           
 String toggleValue()
           
 
Methods inherited from class ariba.ui.aribaweb.core.AWComponent
_topLevelApplyValues, _topLevelInvokeAction, _topLevelRenderResponse, allowEmbeddedKeyPaths, allowsWhitespaceCompression, application, awcyclePageAndLog, bindingForName, bindingForName, bindings, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browserMaxWidth, browserMinWidth, characterEncoding, clearValidationError, clientTimeZone, componentConfiguration, componentDefinition, componentPath, componentReference, createPageWithName, defaultTemplateParser, determineInstance, determineInstance, dict, dict, dict, doubleValueForBinding, doubleValueForBinding, doubleValueForBinding, encodedStringValueForBinding, encodedStringValueForBinding, ensureAwake, ensureFieldValuesClear, env, errorManager, escapeAttribute, escapeString, escapeUnsafeString, extendedFields, formValueManager, generateResponse, generateResponse, generateResponse, generateStringContents, getAWParameter, getThis, hasBinding, hasBinding, hasContentNamed, hasMultipleTemplates, hasSubTemplateNamed, httpSession, init, init, intValueForBinding, intValueForBinding, intValueForBinding, isBidirectional, isBrowserMicrosoft, isClientPanel, isMacintosh, isStateless, isStrictTagNaming, isValidationEnabled, languageDirection, languageLeft, languageRight, loadTemplate, localizedJavaString, markBacktrackState, name, namePath, notifyChange, otherBindings, otherBindingsValues, page, pageComponent, pageWithClass, pageWithClass, pageWithName, pageWithName, parent, postTakeValueActions, preferredLocale, recordBacktrackState, recordBacktrackState, recordValidationError, recordValidationError, recordValidationError, recordValidationErrors, recordValidationWarning, redirectToPage, registerXmlNodeWithName, removeBacktrackState, replacementResponse, request, requestContext, requiresPreGlidCompatibility, resourceClassName, resourceManager, response, restoreFromBacktrackState, session, session, setCharacterEncoding, setClientPanel, setClientTimeZone, setComponentConfiguration, setDefaultTemplateParser, setEnv, setPreferredLocale, setResourceManager, setTemplateParser, setupForNextCycle, setValueForBinding, setValueForBinding, setValueForBinding, setValueForBinding, setValueForBinding, setValueForBinding, shouldCachePage, shouldCloseElements, strings, stringValueForBinding, stringValueForBinding, stringValueForBinding, template, templateName, templateParser, templateResource, templateResourceManager, truncateBacktrackState, truncateBacktrackState, urlForResourceNamed, urlForResourceNamed, urlForResourceNamed, useXmlEscaping, valueForBinding, valueForBinding, valueForBinding, xml
 
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

MaxRecentSelected

public static int MaxRecentSelected

Matches

public static String Matches

FilteredSelections

public static String FilteredSelections

NoSelectionString

public static String NoSelectionString

MoreSelectedString

public static String MoreSelectedString

NoMatchFoundString

public static String NoMatchFoundString

_chooserId

public AWEncodedString _chooserId

_menuId

public AWEncodedString _menuId
Constructor Detail

Chooser

public Chooser()
Method Detail

supportedBindingNames

public String[] supportedBindingNames()
Overrides:
supportedBindingNames in class AWComponent

noSelectionString

public String noSelectionString()

behavior

public String behavior()

setChooserId

public void setChooserId(AWEncodedString chooserId)

chooserState

public ChooserState chooserState()

currentItemString

public String currentItemString()

chooserDropDownSemanticKey

public String chooserDropDownSemanticKey()
Method used to set the semantic key on the drop down image of the chooser. This allows the recorder identify the image that the user clicks on.


chooserAddLinkSemanticKey

public String chooserAddLinkSemanticKey()

chooserRemoveLinkSemanticKey

public String chooserRemoveLinkSemanticKey()

currentItemHighlightedString

public String currentItemHighlightedString()

displayValue

public String displayValue()

setDisplayValue

public void setDisplayValue(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


isReadOnly

public boolean isReadOnly()

renderResponse

public void renderResponse(AWRequestContext requestContext,
                           AWComponent component)
Description copied from interface: AWCycleable
The receiver should render its content to the AWRequestContext.response()

Specified by:
renderResponse in interface AWCycleable
Overrides:
renderResponse in class AWComponent
Parameters:
requestContext - the context for the current request.
component - the current parent component

isInvalid

public boolean isInvalid()

showBullet

public boolean showBullet()

showCheck

public boolean showCheck()

recentSelectedStyle

public String recentSelectedStyle()

maxRecentSelected

public int maxRecentSelected()

showMoreSelected

public boolean showMoreSelected()

moreSelectedString

public String moreSelectedString()

moreSelectedStringPlusOne

public String moreSelectedStringPlusOne()

moreSelectedStringPlusTwo

public String moreSelectedStringPlusTwo()

applyValues

public void applyValues(AWRequestContext requestContext,
                        AWComponent component)
Description copied from interface: AWCycleable
The receiver should take any form values (or query string parameters) that it owns from the AWRequestContext.request().

Specified by:
applyValues in interface AWCycleable
Overrides:
applyValues in class AWComponent
Parameters:
requestContext - the context for the current request.
component - the current parent component

isSender

public boolean isSender()

invokeAction

public AWResponseGenerating invokeAction(AWRequestContext requestContext,
                                         AWComponent component)
Description copied from interface: AWCycleable
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.

Specified by:
invokeAction in interface AWCycleable
Overrides:
invokeAction in class AWComponent
Parameters:
requestContext - the context for the current request.
component - the current parent component
Returns:
the response for the action

selectValue

public String selectValue()

toggleValue

public String toggleValue()

getRemoveValue

public boolean getRemoveValue()

getSelectionList

public String getSelectionList()

displayRecentlyViewed

public boolean displayRecentlyViewed()

setSelectionList

public void setSelectionList(String listId)

setSelectValue

public void setSelectValue(String selectionIndexValue)

setToggleValue

public void setToggleValue(String selectionIndexValue)

setRemoveValue

public void setRemoveValue(boolean removeValue)

getFullMatchValue

public boolean getFullMatchValue()

setFullMatchValue

public void setFullMatchValue(boolean fullMatchValue)

matchAction

public AWResponse matchAction()

searchAction

public AWResponseGenerating searchAction()

isDisabled

public boolean isDisabled()

cssClass

public String cssClass()


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.