OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.laf.dhtml.rich
Class AdfDhtmlSelectOneListboxPeer

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.base.AdfUIPeer
               |
               +--oracle.adf.view.js.laf.rich.AdfRichUIPeer
                     |
                     +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlValuePeer
                           |
                           +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer
                                 |
                                 +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectOnePeer
                                       |
                                       +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectOneListbasePeer
                                             |
                                             +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectOneListboxPeer
Direct Known Subclasses:
AdfDhtmlSelectOneChoicePeer

public class AdfDhtmlSelectOneListboxPeer
extends AdfDhtmlSelectOneListbasePeer
Peer DHTML code for rich selectOneListbox



Field Summary

private static Object
_DISABLED_STYLE_CLASS
public static Object
LIST_HOLDER_ID
private static Object
_SELECTED_ID
private static Object
_SELECTED_STYLE_CLASS
private static Object
_TITLES_POPULATED_EXPANDO


Fields inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer

ComponentLabelChanged


Fields inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer

addComponentPropertyChanges, addComponentPropertyGetters, BUSY_STYLECLASS, DISABLED_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_TARGET_STYLECLASS, HOVER_TARGET_STYLECLASS, READONLY_STYLECLASS


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfDhtmlSelectOneListboxPeer()
Peer DHTML code for rich selectOneListbox


Method Summary

protected Object
BindToComponent(Object component, Object domElement)
Update any state necessary to bind to the current DOM component
protected Object
GetInlineEditor(Event event)
Override to return an inline editor that edits the component's label property
protected Object
GetItemElementsParent(Object component)
Returns the parent of the item elements so that the item elements can be traversed
protected Object
GetNoteWindowAlignmentNode(Object component, Object rootNode)
Returns the node for which to aling the note help window
private Object
_getSelectedItemElement(Object component, Object domElement)
protected Object
HandleComponentBlur(Object componentEvent)
On blur, we need check and see if we have stashed a changed value.
protected Object
HandleComponentClick(Object componentEvent)
component mouse click event handler.
protected Object
HandleComponentKeyDown(Object componentEvent)
protected Object
HandleComponentMouseDown(Object componentEvent)
I need to eat this event, because the browser uses ctrl-mouseDown to do weird selection stuff and I don't want that when you ctrl-mouseDown on an item.
protected static Object
InitSubclass()
protected Object
SetDisplayValue(Object component, Object domElement, Object newValue)
set the display string
private Object
_validate(Object component, Object domElement, Object newValue)
Since this component is different that a *standard* html component, we need a special validate() function to call first SetDisplayValue and then the org.


Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectOneListbasePeer

FindItemElementWithValue, GetComponentSelectItems, GetFirstEnabledItem, GetItemElements, GetNextEnabledItem, GetPreviousEnabledItem, GetSubmittedValue, IsItemEnabled, SelectItemElement


Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectOnePeer

GetSubIdDomElement, HandleComponentMouseOver


Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer

autoSubmit, __componentLabelChanged, ComponentSubmittedValueChanged, ComponentTextChanged, Focus, GetComponentLabel, GetComponentSubmittedValue, GetComponentValue, GetContentNode, GetContentNodeId, GetDisplayValue, GetNoteWindowAlignmentHint, GetValidatorHints, HandleComponentFocus, HandleComponentKeyUp, HideNoteWindow, InitDomElement, IsInitialized, IsNoteWindowVisible, LazyInitialize, MessageNotify, MessageShow, ShouldShowHint, ShowNoteWindow, ShowNoteWindowMouseOver, StashOldValue, Validate, ValidateAndStashNewValue, ValidateIfStashedOldValue, VetoShowNoteWindow, WasSubmitted


Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlValuePeer

ComponentValueChanged, getConvertedObject, getConvertedValue, getFormatHint, GetNullDefault, isEmpty


Methods inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer

addComponentEventHandlers, addComponentPropertyChanges, addComponentPropertyGetters, addDomEventHandlers, addEventHandlerToDomInstance, addSuppressedPPRAttributes, bind, cancelAllPopups, cancelPopup, ChildVisibilityChanged, ComponentInlineStyleChanged, ComponentPropertyChanged, componentRemoved, ComponentRemoved, ComponentStyleClassChanged, ComponentVisibleChanged, ConvertClientIdToLocator, convertLocatorToClientId, CreateDraggableNode, createPeerClass, createSubId, CreateSubId, DefaultInitClass, DispatchComponentEvent, domReplaceNotify, DomReplaceNotify, focus, getAbsoluteId, getAbsoluteLocator, getAllPopups, getComponent, GetComponent, GetComponentId, getComponentParent, getComponentProperty, GetComponentVisible, getDescendantComponents, getDomContentElement, getDomContentElementForComponent, GetDomContentElementForNode, getDomDocument, getDomElement, getDomElementForComponent, getDomNode, GetDomNodeForCommentComponent, getDomNodeForComponent, getDragOverFeedback, GetDragOverFeedback, getDragTransferable, GetDragTransferable, getFirstAncestorComponent, getInlineEditor, getInlineStyleProperty, getLocatorByDomElement, getPagePosition, getPopupWindow, GetRichResourceURL, getSubIdDomElement, hideAllPopups, hidePopup, Init, InitClass, initialize, isActive, isInActiveHeirarchy, isPopupVisible, messageNotify, messageShow, needsChildVisibilityChanges, PopupClosed, processPushData, ProcessPushData, registerKeyStroke, replaceDomElement, ReplaceDomElement, resizeNotify, ResizeNotify, scrollIntoView, ScrollIntoView, setBusy, SetBusy, setInlineStyleProperty, showContextMenu, showPopup, TruncateClientId, TruncateClientIdOnceImpl, UnbindFromComponent, unregisterKeyStroke, visitChildren


Methods inherited from oracle.adf.view.js.base.AdfUIPeer

getDefaultDragRecognizer, getParentPeer, initiateDrag, isVisible, needsResizeNotify


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString


Field Detail


_DISABLED_STYLE_CLASS

private static Object _DISABLED_STYLE_CLASS

Overrides:
AdfDhtmlSelectOneListbasePeer._DISABLED_STYLE_CLASS

LIST_HOLDER_ID

public static Object LIST_HOLDER_ID

_SELECTED_ID

private static Object _SELECTED_ID

_SELECTED_STYLE_CLASS

private static Object _SELECTED_STYLE_CLASS

Overrides:
AdfDhtmlSelectOneListbasePeer._SELECTED_STYLE_CLASS

_TITLES_POPULATED_EXPANDO

private static Object _TITLES_POPULATED_EXPANDO

Constructor Detail


AdfDhtmlSelectOneListboxPeer

public AdfDhtmlSelectOneListboxPeer()

Peer DHTML code for rich selectOneListbox

Method Detail


BindToComponent

protected Object BindToComponent(Object component,
                                 Object domElement)

Update any state necessary to bind to the current DOM component

Parameters:
component    
domElement    
Return:
Object
Overrides:
AdfRichUIPeer.BindToComponent(Object, Object)

GetInlineEditor

protected Object GetInlineEditor(Event event)

Override to return an inline editor that edits the component's label property

Parameters:
event  -  DOM Event that triggered the inline edit
Return:
Object
Overrides:
AdfRichUIPeer.getInlineEditor(AdfUIComponent, Object)

GetItemElementsParent

protected Object GetItemElementsParent(Object component)

Returns the parent of the item elements so that the item elements can be traversed

Parameters:
component    
Return:
Object
Overrides:
AdfDhtmlSelectOneListbasePeer.GetItemElementsParent(Object)

GetNoteWindowAlignmentNode

protected Object GetNoteWindowAlignmentNode(Object component,
                                            Object rootNode)

Returns the node for which to aling the note help window

Parameters:
component    
rootNode    
Return:
Object
Overrides:
AdfDhtmlEditableValuePeer.GetNoteWindowAlignmentNode(Object, Object)

_getSelectedItemElement

private Object _getSelectedItemElement(Object component,
                                       Object domElement)

Parameters:
component    
domElement    
Return:
Object

HandleComponentBlur

protected Object HandleComponentBlur(Object componentEvent)

On blur, we need check and see if we have stashed a changed value.

Parameters:
componentEvent    
Return:
Object

HandleComponentClick

protected Object HandleComponentClick(Object componentEvent)

component mouse click event handler.

Parameters:
componentEvent  -  the component event invoked by mouse up
Return:
Object
Overrides:
AdfDhtmlEditableValuePeer.HandleComponentClick(Object)

HandleComponentKeyDown

protected Object HandleComponentKeyDown(Object componentEvent)

Parameters:
componentEvent  -  Key Press event - Implement keyboard support for selectOneListbox
Return:
Object

HandleComponentMouseDown

protected Object HandleComponentMouseDown(Object componentEvent)

I need to eat this event, because the browser uses ctrl-mouseDown to do weird selection stuff and I don't want that when you ctrl-mouseDown on an item. TODO: IE7 still does weird selection stuff.

Parameters:
componentEvent    
Return:
Object

InitSubclass

protected static Object InitSubclass()

Return:
Object
Overrides:
AdfDhtmlValuePeer.InitSubclass()

SetDisplayValue

protected Object SetDisplayValue(Object component,
                                 Object domElement,
                                 Object newValue)

set the display string

Parameters:
component    
domElement    
newValue    
Return:
Object
Overrides:
AdfDhtmlValuePeer.SetDisplayValue(Object, Object, Object)

_validate

private Object _validate(Object component,
                         Object domElement,
                         Object newValue)

Since this component is different that a *standard* html component, we need a special validate() function to call first SetDisplayValue and then the org. validate on the client component.

Parameters:
component    
domElement    
newValue    
Return:
Object

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2009.04.27 01:06 UTC
Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.