OracleJavaScript API Reference for Oracle ADF Faces

 

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

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

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.AdfDhtmlLinkPeer

public class AdfDhtmlLinkPeer
extends AdfRichUIPeer
Peer implementation for link.



Field Summary

private static Object
_BUSY
protected Object
ComponentTextChanged
Handle change to the text property.
private static Object
_DEPRESSED_STYLE_CLASS
private static Object
_LINK_CONTEXT_KEY
private static Object
_SELECTED_STYLE_CLASS


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
AdfDhtmlLinkPeer()
Peer implementation for link.


Method Summary

protected Object
ComponentDisabledChanged(AdfUIComponent component, HTMLElement domElement, Boolean newValue, Boolean oldValue)
Handle change to the disabled property.
protected Object
ComponentSelectedChanged(AdfUIComponent component, HTMLElement domElement, boolean newValue, boolean oldValue)
Handle change to the selected property.
private Object
_displayDefaultIcon(AdfUIComponent component)
Display the default icon
private Object
_displayDisabledIcon(AdfUIComponent component)
Display the disabled icon
private Object
_displayIcon(AdfUIComponent component, string icon)
Display the provided icon
private Object
_displayMouseDownIcon(AdfUIComponent component)
Display the mousedown icon
private Object
_displayMouseOverIcon(AdfUIComponent component)
Display the mouseover icon
private Object
_executeAction()
Execute Action event for the link.
private Object
_executeDestination(AdfComponentEvent componentEvent)
Execute destination for button.
protected string
GetAccessibleName()
Returns a human readable name for the component.
protected Object
GetComponentText(Object component, Object domElement)
Optimized getter for text property
private HTMLElement
_getIconElement(AdfUIComponent component)
Get the icon element
protected Object
GetInlineEditor(Object event)
Given the component this peer is bound to and the optional DOM event to start editing, return the AdfRichInlineEditor for this component at the event location, if any.
protected Object
HandleComponentClick(AdfComponentEvent componentEvent)
Handle a click on the link
protected Object
HandleComponentMouseDown(AdfComponentEvent componentEvent)
Handles the mousedown either on the link, and adjusts the mousedown state accordingly.
protected Object
HandleComponentMouseOut(AdfComponentEvent componentEvent)
On mouseout, the default icon is displayed.
protected Object
HandleComponentMouseOver(AdfComponentEvent componentEvent)
On mouseover, the mouseover icon is displayed.
protected Object
HandleComponentMouseUp(AdfComponentEvent componentEvent)
On mouse up, the mouseover icon is displayed.
protected static Object
InitSubclass()
Init link peer.
public Object
isBusy()
Overridden to return the busy state of the component.
private Object
_isDestinationLink()
Returns true if this is a destination type link
protected Object
SetBusy(Object isBusy)
Override to disable the link when in busy state.
private Object
_setDepressedStyle(AdfUIComponent component, boolean depressed)
Button uses depressed instead of active, in order to have finer control over depressed highlighting.


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, GetSubIdDomElement, hideAllPopups, hidePopup, InitClass, InitDomElement, initialize, isActive, isInActiveHeirarchy, isPopupVisible, messageNotify, MessageNotify, messageShow, MessageShow, needsChildVisibilityChanges, needsFocusTargetStyleClass, PopupClosed, processPushData, ProcessPushData, registerKeyStroke, replaceDomElement, ReplaceDomElement, resizeNotify, ResizeNotify, scrollIntoView, ScrollIntoView, 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


_BUSY

private static Object _BUSY

ComponentTextChanged

protected Object ComponentTextChanged

Handle change to the text property.

_DEPRESSED_STYLE_CLASS

private static Object _DEPRESSED_STYLE_CLASS

_LINK_CONTEXT_KEY

private static Object _LINK_CONTEXT_KEY

_SELECTED_STYLE_CLASS

private static Object _SELECTED_STYLE_CLASS

Constructor Detail


AdfDhtmlLinkPeer

public AdfDhtmlLinkPeer()

Peer implementation for link.

Method Detail


ComponentDisabledChanged

protected Object ComponentDisabledChanged(AdfUIComponent component,
                                          HTMLElement domElement,
                                          Boolean newValue,
                                          Boolean oldValue)

Handle change to the disabled property.

Parameters:
component  -  the associated component
domElement  -  the dom element
newValue  -  the new text value
oldValue  -  the old text value
Return:
Object

ComponentSelectedChanged

protected Object ComponentSelectedChanged(AdfUIComponent component,
                                          HTMLElement domElement,
                                          boolean newValue,
                                          boolean oldValue)

Handle change to the selected property.

Parameters:
component  -  the associated component
domElement  -  the dom element
newValue  -  the new selected value
oldValue  -  the old selected value
Return:
Object

_displayDefaultIcon

private Object _displayDefaultIcon(AdfUIComponent component)

Display the default icon

Parameters:
component  -  The link component
Return:
Object

_displayDisabledIcon

private Object _displayDisabledIcon(AdfUIComponent component)

Display the disabled icon

Parameters:
component  -  The link component
Return:
Object

_displayIcon

private Object _displayIcon(AdfUIComponent component,
                            string icon)

Display the provided icon

Parameters:
component  -  The link component
icon  -  Icon location string
Return:
Object

_displayMouseDownIcon

private Object _displayMouseDownIcon(AdfUIComponent component)

Display the mousedown icon

Parameters:
component  -  The link component
Return:
Object

_displayMouseOverIcon

private Object _displayMouseOverIcon(AdfUIComponent component)

Display the mouseover icon

Parameters:
component  -  The link component
Return:
Object

_executeAction

private Object _executeAction()

Execute Action event for the link.

Return:
Object

_executeDestination

private Object _executeDestination(AdfComponentEvent componentEvent)

Execute destination for button.

Parameters:
componentEvent  -  The component event being dispatched
Return:
Object

GetAccessibleName

protected string GetAccessibleName()

Returns a human readable name for the component.

Return:
string - accessible name for the component.
Overrides:
AdfRichUIPeer.getAccessibleName(Object)

GetComponentText

protected Object GetComponentText(Object component,
                                  Object domElement)

Optimized getter for text property

Parameters:
component    
domElement    
Return:
Object

_getIconElement

private HTMLElement _getIconElement(AdfUIComponent component)

Get the icon element

Parameters:
component  -  The link component to unselect
Return:
HTMLElement - the icon element

GetInlineEditor

protected Object GetInlineEditor(Object event)

Given the component this peer is bound to and the optional DOM event to start editing, return the AdfRichInlineEditor for this component at the event location, if any. Subclasses should override GetInlineEditor.

Parameters:
event    
Return:
Object
Overrides:
AdfRichUIPeer.getInlineEditor(AdfUIComponent, Object)

HandleComponentClick

protected Object HandleComponentClick(AdfComponentEvent componentEvent)

Handle a click on the link

Parameters:
componentEvent  -  The component event being dispatched
Return:
Object

HandleComponentMouseDown

protected Object HandleComponentMouseDown(AdfComponentEvent componentEvent)

Handles the mousedown either on the link, and adjusts the mousedown state accordingly.

Parameters:
componentEvent  -  The component event being dispatched
Return:
Object

HandleComponentMouseOut

protected Object HandleComponentMouseOut(AdfComponentEvent componentEvent)

On mouseout, the default icon is displayed.

Parameters:
componentEvent  -  The component event being dispatched
Return:
Object

HandleComponentMouseOver

protected Object HandleComponentMouseOver(AdfComponentEvent componentEvent)

On mouseover, the mouseover icon is displayed.

Parameters:
componentEvent  -  The component event being dispatched
Return:
Object

HandleComponentMouseUp

protected Object HandleComponentMouseUp(AdfComponentEvent componentEvent)

On mouse up, the mouseover icon is displayed.

Parameters:
componentEvent  -  The component event being dispatched
Return:
Object

InitSubclass

protected static Object InitSubclass()

Init link peer.

Return:
Object

isBusy

public Object isBusy()

Overridden to return the busy state of the component.

Return:
Object
Overrides:
AdfRichUIPeer.isBusy()

_isDestinationLink

private Object _isDestinationLink()

Returns true if this is a destination type link

Return:
Object - true if destination type link

SetBusy

protected Object SetBusy(Object isBusy)

Override to disable the link when in busy state.

Parameters:
isBusy    
Return:
Object
Overrides:
AdfRichUIPeer.setBusy(Object, Object)

_setDepressedStyle

private Object _setDepressedStyle(AdfUIComponent component,
                                  boolean depressed)

Button uses depressed instead of active, in order to have finer control over depressed highlighting. This method sets the depressed style state.

Parameters:
component  -  The link component
depressed  -  Is depressed
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.