Subclasses of this should implement - GetSubmittedValue - return a value (or array of values for a selectMany) that are ready to be passed to the converter's getAsObject function - SetDisplayValue - this method is defined on AdfDhtmlValuePeer. This method takes a value that has already been converted. For example on inputText it would be passed a string, and on a selectMany an array of strings. Subclasses do not need to implement GetDisplayValue. GetDisplayValue will eventually call through to GetSubmittedValue.
Method Summary
|
private Object |
_addMessageTimeout(Object componentId)
|
public Object |
autoSubmit(Object component)
-
Handle autoSubmitting when the converter has returned undefined
|
protected Object |
BindToComponent(Object component, Object domElement)
-
Update any state necessary to bind to the current DOM component
|
protected Boolean |
ComponentChanged(AdfDomComponentFocusEvent componentEvent)
-
Convenience function for determining whether the active component has changed.
|
static Object |
__componentLabelChanged(Object component, Object domElement, Object newValue, Object oldValue)
|
protected Object |
ComponentSubmittedValueChanged(Object component, Object domElement, Object newValue, Object oldValue)
|
public Object |
disableBrowserAutoComplete(Object component)
-
Disables the browser auto-complete property of the input element bound to the component instance.
|
protected Object |
Focus()
-
Override of AdfRichUIPeer.Focus.
|
protected String |
GetComponentLabel(Object component, Object domElement)
-
Default optimized label getter for subclasses that support labels and for which an implementation which retrieves the label text by getting the text of the label element is sufficient.
|
protected Object |
GetComponentSubmittedValue(Object component, Object domElement)
|
protected Object |
GetComponentValue(Object component, Object domElement)
|
protected static Object |
GetContentNode(Object component, Object rootNode)
-
Returns the content node of the supplied component.
|
protected static Object |
GetContentNodeId(Object component, Object rootNode)
-
The 'content' node is the one with an html id that has a subId of 'content', so if the id of the component is 'foo', the html id is 'foo::content'.
|
protected Object |
GetDisplayValue(Object component, Object domElement, Object unconditional)
-
return a value that is ready to be passed to the converter
|
protected Object |
GetNoteWindowAlignmentHint()
|
protected Object |
GetNoteWindowAlignmentNode(Object component, Object rootNode)
-
Returns the node for which to align the note help window
|
protected Object |
GetSubmittedValue(Object component, Object domElement)
-
Returns the submittedValue by getting the value of the input dom node.
|
protected Object |
GetValidatorHints(Object component)
-
Returns the hints for all used validators of the peer in a JS array.
|
protected Object |
HandleComponentClick(Object componentEvent)
|
protected Object |
HandleComponentFocus(Object componentEvent)
|
protected Object |
HandleComponentKeyUp(Object componentEvent)
-
Intercept the ctrl+alt+w key combination and activate an associated notewindow if one is open.
|
protected Object |
HideNoteWindow(Object component)
|
protected Object |
InitDomElement(Object component, Object domElement)
-
Initialize the associated domElement when the peer is created.
|
private Object |
_initializeScreenReader(Object component, Object domElement)
|
protected static Object |
InitSubclass()
|
protected Object |
IsInitialized(Object component, Object domElement)
|
protected Object |
IsNoteWindowVisible(Object component)
|
private Object |
_killNoteWindowFocusTimeout()
|
private Object |
_killNoteWindowMouseTimeout()
|
private Object |
_killNoteWindowTimeout()
|
protected Object |
LazyInitialize(Object component, Object domElement)
-
We need to initialize the 'value' property before the user makes any changes so that we're not going to the peer for the 'value' property in the component.setProperty method.
|
protected Object |
MessageNotify(Object maxType, Object messages)
-
Overrides to hide the note window when the message changes.
|
private Object |
_messageNotifyScreenReader(Object maxType, Object messages)
-
In screen reader mode we may need to change/hide the icon that's rendered in the launch link when messages are added/removed.
|
protected Object |
MessageShow(Object maxType, Object messages)
-
Overrides to hide the note window when the message changes.
|
private Object |
_onFocusTimeout(Object componentId)
|
private Object |
_onMouseOverTimeout(Object componentId)
|
protected Object |
ShouldShowHint(Object component, Object domElement)
-
Controls whether we show hints in the note window.
|
protected Object |
ShowNoteWindow(Object component, Object isMouseOver)
-
- kill any timeout to show the note window - if there is no note window visible create it if needed - if there is a note window shown and isMouseOver is false change the autodismiss hint to 'menu'
|
protected Object |
ShowNoteWindowMouseOver(Object componentEvent)
|
protected Object |
StashOldValue(Object component, Object domElement)
-
If we need to postpone validation, we stash the old value for later comparison
|
protected Object |
Validate(Object component, Object submittedValue)
|
protected Object |
ValidateAndStashNewValue(Object component, Object domElement)
-
If the old value doesn't equal the cur value, then a validate needs to happen and we need to stash the new value.
|
protected Object |
ValidateIfStashedOldValue(Object component, Object domElement)
-
If we have stashed the old value, that means we have a pending validate that needs to happen (only if the value has changed).
|
protected Object |
VetoShowNoteWindow(Object component)
|
protected Object |
WasSubmitted(Object component)
-
Override this method to return "false" if the component was not actually submitted (if, for instance, it was disabled or "read-only".
|