OracleJavaScript API Reference for Oracle ADF Faces

 

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

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

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.AdfDhtmlCommandNavigationItemPeer
                           |
                           +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlCommandTrainStopPeer

public class AdfDhtmlCommandTrainStopPeer
extends AdfDhtmlCommandNavigationItemPeer



Field Summary

private static Object
_SUB_ID_MAP
train component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1.


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

addComponentPropertyChanges, addComponentPropertyGetters, BUSY_STYLECLASS, CreateSubId, DISABLED_STYLECLASS, DRAG_READY_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_TARGET_STYLECLASS, FOCUS_TARGET_STYLECLASS, HOVER_TARGET_STYLECLASS, READONLY_STYLECLASS, SELECTED_STYLECLASS


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

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfDhtmlCommandTrainStopPeer()


Method Summary

protected Object
GetComponentText(Object component, Object domElement)
Optimized getter for text property
protected HTMLElement
GetSubIdDomElement(String subElementId)
Get the DOM element of a train stop for the given sub-id
protected Object
HandleComponentClick(Object componentEvent)
Ignore clicks when either the component is marked disabled or if they are made with a right-click.
protected Object
InitDomElement(AdfUIComponent component, HTMLElement domElement)
Initialize the associated domElement when the peer is created.
protected static Object
InitSubclass()
Static function to perform their subclass-specific initialization.
private Object
_isSelected()
To check if the commandNavigationItem is displayed selected.
private static Object
_isTrain(Object component)
Returns true for Train, false for TrainButtonBar
private static Object
_isVerticalTrain(Object component)
Returns true for vertical train layout, false for horizontal layout Note - Ensure the component passed is not TrainButtonBar
protected Object
SetLinkAttributes(Object component, Object domElement)


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

canRemove, ComponentTextChanged, GetAccessibleName, getInlineEditableTextElement, GetInlineEditor, HandleComponentBlur, HandleComponentFocus, HandleComponentKeyUp, HandleComponentMouseOver


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

addComponentEventHandlers, addComponentPropertyChanges, addComponentPropertyGetters, addDomEventHandlers, addEventHandlerToDomInstance, addSuppressedPPRAttributes, applyDragReadyState, ApplyDragReadyState, applyDragSourceState, ApplyDragSourceState, bind, BindToComponent, cancelAllPopups, cancelPopup, ChildVisibilityChanged, clearDragReadyState, ClearDragReadyState, clearDragSourceState, ClearDragSourceState, ComponentInlineStyleChanged, ComponentPropertyChanged, componentRemoved, ComponentRemoved, ComponentStyleClassChanged, ComponentVisibleChanged, ConvertClientIdToLocator, convertLocatorToClientId, createComponentEvent, CreateComponentEvent, CreateDraggableNode, createInnerPeerClassWithSubId, createPeerClass, createSubId, DefaultInitClass, descendantMessageChanged, DescendantMessageChanged, DispatchComponentEvent, DispatchUncanceledComponentEvent, domReplaceNotify, DomReplaceNotify, focus, Focus, getAbsoluteId, getAbsoluteLocator, getAccessibleName, 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, getReadyState, GetReadyState, GetRichResourceURL, getSubIdDomElement, hideAllPopups, hidePopup, InitClass, initialize, isActive, isBusy, isInActiveHeirarchy, isPopupVisible, messageNotify, MessageNotify, messageShow, MessageShow, needsChildVisibilityChanges, needsFocusTargetStyleClass, 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, Init, initiateDrag, isVisible, needsResizeNotify


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

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


Field Detail


_SUB_ID_MAP

private static Object _SUB_ID_MAP

train component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1. [stop_icon_link --> stop_icon_link] - train stop icon link 2. [stop_text_link --> stop_text_link] - train stop text link Train component contains commandNavigations. If a subId is not contained in the map below, it's corresponding DOM is located programmatically in AdfDhtmlCommandTrainStopPeer.GetSubIdDomElement().

Overrides:
AdfDhtmlCommandNavigationItemPeer._SUB_ID_MAP

Constructor Detail


AdfDhtmlCommandTrainStopPeer

public AdfDhtmlCommandTrainStopPeer()

Method Detail


GetComponentText

protected Object GetComponentText(Object component,
                                  Object domElement)

Optimized getter for text property

Parameters:
component    
domElement    
Return:
Object
Overrides:
AdfDhtmlCommandNavigationItemPeer.GetComponentText(Object, Object)

GetSubIdDomElement

protected HTMLElement GetSubIdDomElement(String subElementId)

Get the DOM element of a train stop for the given sub-id

Parameters:
subElementId  -  the ID of the sub element
Return:
HTMLElement - the element or null if not found
Overrides:
AdfRichUIPeer.getSubIdDomElement(Object, Object)

HandleComponentClick

protected Object HandleComponentClick(Object componentEvent)

Ignore clicks when either the component is marked disabled or if they are made with a right-click. If the commandNaviagtionItem is a having valid href, then the click on commandNavigationItem should result in opening the href in the specified target frame. Otherwise the click will get converted into an action event.

Parameters:
componentEvent    
Return:
Object
Overrides:
AdfDhtmlCommandNavigationItemPeer.HandleComponentClick(Object)

InitDomElement

protected Object InitDomElement(AdfUIComponent component,
                                HTMLElement domElement)

Initialize the associated domElement when the peer is created. Stateless peers are not bound at the time that this method is called.

Parameters:
component  -  Component that this peer will be associated with
domElement  -  Root DOM element of this peer
Return:
Object
Overrides:
AdfRichUIPeer.InitDomElement(AdfUIComponent, Object)

InitSubclass

protected static Object InitSubclass()

Static function to perform their subclass-specific initialization.

Return:
Object
Overrides:
AdfDhtmlCommandNavigationItemPeer.InitSubclass()

_isSelected

private Object _isSelected()

To check if the commandNavigationItem is displayed selected.

Return:
Object

_isTrain

private static Object _isTrain(Object component)

Returns true for Train, false for TrainButtonBar

Parameters:
component    
Return:
Object

_isVerticalTrain

private static Object _isVerticalTrain(Object component)

Returns true for vertical train layout, false for horizontal layout Note - Ensure the component passed is not TrainButtonBar

Parameters:
component    
Return:
Object

SetLinkAttributes

protected Object SetLinkAttributes(Object component,
                                   Object domElement)

Parameters:
component    
domElement    
Return:
Object

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

 

Generated on 2014.03.27 12:59 UTC
Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.