JavaScript API Reference for Oracle ADF Faces
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.1.2) E23186-01 |
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||
org.ecmascript.object.Object
|
+--oracle.adf.view.js.base.AdfObject
|
+--oracle.adf.view.js.base.AdfUIPeer
|
+--oracle.adf.view.js.laf.rich.AdfRichUIPeer
public class AdfRichUIPeer extends AdfUIPeer
Field Summary |
|
|---|---|
public static Object |
|
public static Object |
|
public static Object |
|
private static Object |
|
protected static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
public static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
public static Object |
|
private static Object |
|
private static Object |
|
static Object |
|
Fields inherited from oracle.adf.view.js.base.AdfObject |
constructor, superclass |
Fields inherited from org.ecmascript.object.Object |
prototype |
Constructor Summary |
|
|---|---|
public |
|
Method Summary |
|
|---|---|
public static Object |
|
private static Object |
|
public static Object |
|
private static Object |
|
public static Object |
|
private static Object |
|
public static Object |
|
private static Object |
|
public static Object |
|
public static Object |
|
private static Object |
|
public Object |
|
protected Object |
|
public Object |
|
protected Object |
|
public Object |
|
protected Object |
|
public Object |
|
public Object |
|
protected Object |
|
public Object |
|
protected Object |
|
public Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
public Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
public String |
|
public Object |
|
protected Object |
|
protected static Node |
|
public static Object |
|
public static Object |
|
public static String |
|
protected static Object |
|
private static Boolean |
|
public Object |
|
protected Object |
|
protected Object |
|
private Object |
|
protected Object |
|
public Node |
|
protected Node |
|
private static Node |
|
private Object |
|
public Object |
|
protected Object |
|
public String |
|
public String |
|
public Object |
|
protected Object |
|
public Object |
|
private Object |
|
private static Object |
|
public Object |
|
protected static Object |
|
protected Object |
|
public AdfUIComponent |
|
public Object |
|
protected Object |
|
public Array<AdfUIComponent> |
|
public Object |
|
public static Object |
|
public static HTMLElement |
|
protected static HTMLElement |
|
public Object |
|
public Object |
|
public static Object |
|
public Object |
|
protected static Object |
|
public static Object |
|
public Node |
|
protected Node |
|
public AdfTransferable |
|
protected AdfTransferable |
|
public static AdfUIComponent |
|
public AdfRichInlineEditor |
|
protected AdfRichInlineEditor |
|
public String |
|
public static String |
|
public Object |
|
public Object |
|
public Object |
|
protected Object |
|
protected Object |
|
public HTMLElement |
|
protected HTMLElement |
|
public Object |
|
public Object |
|
protected static Object |
|
protected Object |
|
public Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
public Object |
|
public Object |
|
public Object |
|
private static Object |
|
public Object |
|
protected Object |
|
public Object |
|
protected Object |
|
public Boolean |
|
public Object |
|
protected Object |
|
private Object |
|
public Boolean |
|
protected Boolean |
|
public static Object |
|
private static Object |
|
public Object |
|
protected Object |
|
public Object |
|
protected Object |
|
public Object |
|
protected Object |
|
public Object |
|
protected Object |
|
public Object |
|
public Object |
|
public Object |
|
private static Object |
|
protected Object |
|
private Object |
|
protected static Object |
|
protected Object |
|
public static Object |
|
public Number |
|
private Object |
|
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 |
|---|
public static Object addComponentPropertyChangespublic static Object addComponentPropertyGetterspublic static Object BUSY_STYLECLASSprivate static Object _CREATE_SUB_ID_ARRAYprotected static Object CreateSubIdpublic static Object DISABLED_STYLECLASSpublic static Object DRAG_READY_STYLECLASSpublic static Object DRAG_SOURCE_STYLECLASSpublic static Object DROP_TARGET_STYLECLASSpublic static Object FOCUS_TARGET_STYLECLASSprivate static Object _GET_COMPONENT_FORMATprivate static Object _HANDLE_COMPONENT_EVENT_FORMATprivate static Object _HANDLE_DOM_EVENT_FORMATpublic static Object HOVER_TARGET_STYLECLASSprivate static Object _POPUP_ID_DEFAULTprivate static Object _POPUP_LISTprivate static Object _PROPERTY_CHANGED_FORMATpublic static Object READONLY_STYLECLASSprivate static Object _TWINKLE_ON_STYLECLASSprivate static Object _TWINKLE_TIMER_ID_ATTRstatic Object __TYPE_ATTR
Constructor Detail |
|---|
public AdfRichUIPeer()
Method Detail |
|---|
public static Object addComponentEventHandlers(Class theClass,
String...:undefined componentEventTypes)theClass |
- | Constructor of class to add event handlers to |
componentEventTypes |
- | varArgs list of component event types. These constants can be found on the component classes.
Default value = undefined
|
Object_addComponentEventHandlers(Class, String[])private static Object _addComponentEventHandlers(Class theClass,
String[]:undefined componentEventTypes)theClass |
- | Constructor of class to add event handlers to |
componentEventTypes |
- | Array of component event types. These constants can be found on the component classes.
Default value = undefined
|
ObjectaddComponentEventHandlers(Class, String...)public static Object addComponentPropertyChanges(Class theClass,
String...:undefined propertyNames)theClass |
- | Constructor of class to add event handlers to |
propertyNames |
- | property names to listen to changes for.
Default value = undefined
|
Object_addComponentPropertyChanges(Class, String...)private static Object _addComponentPropertyChanges(Class theClass,
String...:undefined propertyNames)theClass |
- | Constructor of class to add event handlers to |
propertyNames |
- | property names to listen to changes for.
Default value = undefined
|
ObjectaddComponentPropertyChanges(Class, String...)public static Object addComponentPropertyGetters(Class theClass,
String...:undefined propertyNames)theClass |
- | Class to add property getters to |
propertyNames |
- | varArgs list of propertyNames that peer as optimzied getters for
Default value = undefined
|
Object_addComponentPropertyGetters(Class, String[])private static Object _addComponentPropertyGetters(Class theClass,
String[] propertyNames)theClass |
- | Class to add property getters to |
propertyNames |
- | Array of propertyNames that peer as optimzied getters for |
ObjectaddComponentPropertyGetters(Class, String...)public static Object addDomEventHandlers(Class theClass,
String...:undefined domEventTypes)InitDomElement function, using the addEventHandlerToDomInstance instead of registering the event with this function.theClass |
- | Constructor of class to add event handlers to |
domEventTypes |
- | varArgs list of DOM event types. These constants can be found on the DhtmlLookAndFeel.
Default value = undefined
|
ObjectaddEventHandlerToDomInstance(Function, Object, Object)_addDomEventHandlers(Class, String[])private static Object _addDomEventHandlers(Class theClass,
String[] domEventTypes)InitDomElement function, using the addEventHandlerToDomInstance instead of registering the event with this function.theClass |
- | Constructor of class to add event handlers to |
domEventTypes |
- | Array of DOM event types. These constants can be found on the DhtmlLookAndFeel. |
ObjectaddEventHandlerToDomInstance(Function, Object, Object)public static Object addEventHandlerToDomInstance(Function theClass,
Object domElement,
Object domEventType)The main purpose of this method is to add non-bubbling DOM event listeners. If you want to add a DOM event listener for a bubbling event, you should add it using AdfRichUIPeer.addDomEventHandlers.
Note that while calling this function will implicitly result in a call to AdfRichUIPeer.addDomEventHandlers, you should not rely on this behavior if your peer is non-final. Non-final peers must explicitly call AdfRichUIPeer.addDomEventHandlers to ensure that the DOM events are delivered to their subclasses.
theClass |
- | Class for which event should be registered |
domElement |
- | DOM Element to attach event listener to |
domEventType |
ObjectaddDomEventHandlers(Class, String...)public static Object addSuppressedPPRAttributes(Function theClass,
String...:undefined propertyNames)theClass |
- | AdfRichUIPeer subclass to specify the suppressed attributes for |
propertyNames |
- | var args list of component property names to suppress PPR for
Default value = undefined
|
Object_addSuppressedPPRAttributes(Function, String[])private static Object _addSuppressedPPRAttributes(Function theClass,
String[]:undefined propertyNames)theClass |
- | AdfRichUIPeer subclass to specify the suppressed attributes for |
propertyNames |
- | Array of component property names to suppress PPR for
Default value = undefined
|
ObjectaddSuppressedPPRAttributes(Function, String...)public Object applyDragReadyState(Object component,
Object inputEvent)component |
||
inputEvent |
ObjectAdfUIPeer.applyDragReadyState(AdfUIComponent, AdfUIInputEvent)protected Object ApplyDragReadyState(AdfUIInputEvent inputEvent)inputEvent |
- | the event that triggered the drag |
Object - An object that will be passed back to the drag source in order to clear the drag ready stateapplyDragReadyState(Object, Object)AdfUIPeer.applyDragReadyState(AdfUIComponent, AdfUIInputEvent)public Object applyDragSourceState(Object component,
Object inputEvent)component |
||
inputEvent |
ObjectAdfUIPeer.applyDragSourceState(AdfUIComponent, AdfDomUIInputEvent)protected Object ApplyDragSourceState(AdfDomUIInputEvent inputEvent)inputEvent |
- | the event that triggered the drag |
Object - An object that will be passed back to the clear methodapplyDragSourceState(Object, Object)AdfUIPeer.applyDragSourceState(AdfUIComponent, AdfDomUIInputEvent)public Object bind(AdfUIComponent component)component |
- | Component to bind peer to |
Objectprotected Object BindToComponent(Object component,
Object domNode)component |
||
domNode |
Objectpublic Object cancelAllPopups(AdfUIComponent component,
Object replaceDom)component |
- | the owner of one or more inline popups |
replaceDom |
ObjecthideAllPopups(AdfUIComponent)public Object cancelPopup(AdfUIComponent component,
String popupId)component |
- | owner of a inline popup |
popupId |
- | an identifier for the popup
Default value = null
|
ObjecthidePopup(AdfUIComponent, String)protected Object ChildVisibilityChanged(Object childComponent,
Object childDomElement,
Object childVisible)needsChildVisibilityChanges to return true. The peer can use the child's component, domElement, and new visibility parameters to determine whether it needs to handle the visibility change rather than letting the default implementation of hiding or showing the child. If the peer will handle the change (often by marking itself as needing to be redrawn, it should perform whatever work is necessary and return true from this method.
Overrides of this method should be aware that when this method is called, the child component's peer may no longer be bound to the child component (for example, if both the child and parent component peers are the same instance).
Overrides of this method should use the childDomElement parameter to determine whether the passed in childComponent is actually a direct descendant of the parent component.
childComponent |
||
childDomElement |
||
childVisible |
ObjectneedsChildVisibilityChanges(AdfUIComponent)public Object clearDragReadyState(Object component,
Object dragReadyObj)component |
||
dragReadyObj |
ObjectAdfUIPeer.clearDragReadyState(AdfUIComponent, Object)protected Object ClearDragReadyState(Object dragReadyObj)dragReadyObj |
- | the object returned from the apply method |
ObjectclearDragReadyState(Object, Object)AdfUIPeer.clearDragReadyState(AdfUIComponent, Object)public Object clearDragSourceState(Object component,
Object dragSourceObj)component |
||
dragSourceObj |
ObjectAdfUIPeer.clearDragSourceState(AdfUIComponent, Object)protected Object ClearDragSourceState(Object dragSourceObj)dragSourceObj |
- | the object returned from the apply method |
ObjectclearDragSourceState(Object, Object)AdfUIPeer.clearDragSourceState(AdfUIComponent, Object)protected Object ComponentInlineStyleChanged(Object component,
Object domElement,
Object newValue,
Object oldValue)setInlineProperty with propertyName as the first parameter and propertyValue as the second parameter, to replace the call to this deprecated method.component |
||
domElement |
||
newValue |
||
oldValue |
ObjectAdfUIComponent.getInlineStyleProperty(String)AdfUIComponent.setInlineStyleProperty(String, String)protected Object ComponentPropertyChanged(Object propertyChangeEvent)propertyChangeEvent |
ObjectAdfUIPeer.ComponentPropertyChanged(Object)public Object componentRemoved(AdfUIComponent component)Subclasses wishing to perform work when a peer's component is removed should override ComponentRemoved. When overriding, subclasses should call superclass.componentRemoved(component) as the last step in their override.
component |
- | to disassociate from the peer instance. |
ObjectComponentRemoved(AdfUIComponent)AdfUIPeer.componentRemoved(AdfUIComponent)protected Object ComponentRemoved(AdfUIComponent component)bind on itself if it needs to access its peer state.component |
- | Component being disassociated from the peer |
Objectbind(AdfUIComponent)componentRemoved(AdfUIComponent)AdfUIPeer.componentRemoved(AdfUIComponent)protected Object ComponentStyleClassChanged(Object component,
Object domElement,
Object newValue,
Object oldValue)component |
||
domElement |
||
newValue |
||
oldValue |
Objectprotected Object ComponentVisibleChanged(Object component,
Object domElement,
Object newValue,
Object oldValue)component |
||
domElement |
||
newValue |
||
oldValue |
Objectprotected Object ConvertClientIdToLocator(Object component,
Object childComponent,
Object descComponentClientId,
Object replaceArray)The peer is not bound when this method is called
Peers that need to replace and skip extra fragments when converting from clientIds to absolute locators such as Tables and Regions should override this method to add the index of the fragment to be replaced and skipped.component |
- | The component for this peer |
childComponent |
- | The immediate child component of this component |
descComponentClientId |
- | The clientId of the component that the absolute scoped id is being generated for |
replaceArray |
- | Array of maps of {index:<index>, item:<value>} to either skip or skip and fix the parent id fragment with the item value |
Objectpublic String convertLocatorToClientId(Object component,
Object stampKey)The peer is not bound when this method is called
Peers that need to replace and skip extra fragments when converting from clientIds to absolute locators such as Tables and Regions should override this method to add the index of the fragment to be replaced and skipped.component |
- | The component for this peer |
stampKey |
- | the stamp key which need to be replaced |
String - the client id fragment in the below format clientId + ":" + stamped index of client Id fragment related to stampKeyAdfUIPeer.convertLocatorToClientId(Object, Object)public Object createComponentEvent(Object component,
Object domEvent,
Object prevComponent)component |
||
domEvent |
||
prevComponent |
Objectprotected Object CreateComponentEvent(Object domEvent,
Object prevComponent)domEvent |
||
prevComponent |
Objectprotected static Node CreateDraggableNode(Node domNode)domNode |
- | DOM Node to use as the basis for the draggable Node |
Node - a Node containing the drag feedbackGetDragOverFeedback(AdfUIInputEvent)public static Object createInnerPeerClassWithSubId(Function theSuperclass,
String peerName,
Object subId)theSuperclass |
- | constructor of superclass |
peerName |
- | name of constructor to create for this peer |
subId |
Objectpublic static Object createPeerClass(Function theSuperclass,
String peerName,
Boolean stateless,
Object peerInitialization)theSuperclass |
- | constructor of superclass |
peerName |
- | name of constructor to create for this peer |
stateless |
- | true if all component instances can share the same peer instance. The default is to use the statelessness of the superclass.
Default value = special
|
peerInitialization |
- | Peer initialization state
Default value = undefined
|
ObjectAdfUIPeer.createPeerClass(Function, String, Object)public static String createSubId(String clientId,
String name)clientId |
- | The clientId of the peer's component |
name |
- | The identifier to use for the subpiece |
String - The generated sub IDprotected static Object DefaultInitClass(Object peerInitialization)peerInitialization |
Objectprivate static Boolean _defaultInstanceEventHandler(Object theEvent)theEvent |
- | DOM Event object |
Boolean - nullpublic Object descendantMessageChanged(AdfUIComponent component)component |
- | Component this peer should be bound to |
Objectprotected Object DescendantMessageChanged()Objectprotected Object DispatchComponentEvent(Object componentEvent)componentEvent |
ObjectAdfUIPeer.DispatchComponentEvent(Object)private Object _dispatchDomEvent(Object agent,
Object component,
Object domEvent)agent |
||
component |
||
domEvent |
Objectprotected Object DispatchUncanceledComponentEvent(Object componentEvent)true to postpone calling HandleEvent rather than simply canceling the event. In this case, it becomes the peer's responsibility to call HandleEvent, if desired, at some future point in time.componentEvent |
- | componentEvent that is about to be dispatched |
Object - null true if the event should be postponedAdfUIPeer.DispatchUncanceledComponentEvent(Object)public Node domReplaceNotify(AdfUIComponent component,
Object domNode)component |
- | Component that is being replaced |
domNode |
- | DOM Node for component that is being replaced |
Node - the DOM node which should be the target of a subsequent resize notify traversal. Typically this is simply the domNode that is being replaced. In some cases the parent peer may detect that it needs to re-run its own resize notification logic, in which case the parent should return its own root dom element. Returning null prevents the resize notify traversal from occurring.DomReplaceNotify(Object)protected Node DomReplaceNotify(Object domNode)domNode |
- | DOM Node for component that is being replaced |
Node - the DOM node which should be the target of a subsequent resize notify traversal. Typically this is simply the domNode that is being replaced. In some cases the parent peer may detect that it needs to re-run its own resize notification logic, in which case the parent should return its own root dom element. Returning null prevents the resize notify traversal from occurring.private static Node _findCommentNodeWithContent(Node ancestorNode,
String commentString)ancestorNode |
- | the node to start looking at, will continue looking at its descendants |
commentString |
- | the comment node must have this as its node value to be a match |
Node - null or a comment node that matches the given Stringprivate Object _fixClientId(Object component,
Object childComponent,
Object descComponentClientId,
Object replaceArray)The peer is not bound when this method is called
component |
- | The component for this peer |
childComponent |
- | The child component of this component |
descComponentClientId |
- | The clientId of the component that the absolute locator is being generated for. |
replaceArray |
- | Array of key-value array in format [<index>, <item>] to either skip or skip and fix the parent id fragment with the item value |
Objectpublic Object focus(AdfUIComponent component)Focus.component |
- | The component the peer should focus on |
ObjectFocus()AdfUIPeer.focus(Object)protected Object Focus()Objectfocus(AdfUIComponent)AdfUIPeer.focus(Object)public String getAbsoluteId(Object component,
Object clientId)AdfPage.findComponentByAbsoluteId or by prepending a ":", to AdfUIComponent.findComponent on any AdfUIComponent instance. to find this component instance as long as the component instance isn't stamped.component |
||
clientId |
String - The absolute scoped id for the componentAdfUIComponent.findComponent(String, Boolean)AdfPage.findComponentByAbsoluteId(String)AdfUIPeer.getAbsoluteId(AdfUIComponent, String)public String getAbsoluteLocator(Object component,
Object clientId)findComponentByAbsoluteLocator.component |
- | The component for this peer |
clientId |
- | the client Id of the component |
String - The absolute locator for the componentAdfUIComponent.getAbsoluteLocator()AdfUIPeer.getAbsoluteLocator(AdfUIComponent, String)public Object getAccessibleName(Object component)component |
Objectprotected Object GetAccessibleName()Objectpublic Object getAllPopups(AdfUIComponent component)component |
- | The component that owns the popup |
ObjectshowPopup(AdfUIComponent, HTMLElement, Object, String)isPopupVisible(AdfUIComponent, String)hidePopup(AdfUIComponent, String)getPopupWindow(AdfUIComponent, String)private Object _getBestMatchSubId(Object domElement,
Number upCount)- if domElement is the root DOM for the component, then a null value is returned
- if domElement is a descendent of the root DOM for the component, then the DOM element among the list of supported subIds for the component, that is the best match is determined and this best match subid is returned.
- if the domElement has no parent component then a null value is returned WARNING - You must make sure to bind the component to the peer before calling this function.
domElement |
||
upCount |
- | the count to go up in the dom tree to root dom element |
ObjectGetSubIdDomElement(Object)private static Object _getCommentNodeForComponent(Object firstSibling,
Object commentString)firstSibling |
||
commentString |
Objectpublic Object getComponent()ObjectAdfUIPeer.getComponent()protected static Object GetComponent(Object element)element |
ObjectAdfUIPeer.getComponent()protected Object GetComponentId(Object component,
Object domElement)component |
||
domElement |
Objectpublic AdfUIComponent getComponentParent(AdfUIComponent component)null.component |
- | to determine the parent of |
AdfUIComponent - the parent of this component in the client component hierarchy.AdfUIPeer.getComponentParent(AdfUIComponent)public Object getComponentProperty(AdfUIComponent component,
String propertyName)Peers implement getters by implementing InitSubclass on their peer class and registering their properrty getters in this implementation by calling AdfRichUIPeer.addComponentPropertyGetters.
component |
- | Component to retrieve the property for |
propertyName |
- | Name of property to retrieve |
Object - value of the property if the peer can derive itaddComponentPropertyGetters(Class, String...)AdfUIPeer.getComponentProperty(AdfUIComponent, String)protected Object GetComponentVisible(Object component,
Object domElement)component |
||
domElement |
Objectpublic Array<AdfUIComponent> getDescendantComponents(AdfUIComponent component,
Array<AdfUIComponent> children)There is no guarantee about the order of the children returned. If visiting the children in a known order is required please use AdfUIComponent.visitChildren.
All descendent children are returned, visible or not. If ignoring hidden children is required please use AdfUIComponent.visitChildren.
This method is faster than AdfUIComponent.visitChildren, if the limitations above are acceptable it is preferable to use this method.
Returns an array of descendant (child) components for this component.component |
- | this component |
children |
- | array to store child components in. Descendent components will be added to the end of the array. This param is optional, if not passed in an array will be created. |
Array<AdfUIComponent> - array of child components, may be emptyAdfUIPeer.getDescendantComponents(AdfUIComponent, Array<AdfUIComponent>)public Object getDomContentElement()ObjectgetDomElement()getDomContentElement()public static Object getDomContentElement()Objectpublic static HTMLElement getDomContentElementForComponent(Object component)component |
HTMLElement - the HTML element or nullprotected static HTMLElement GetDomContentElementForNode(Object domNode)domNode |
HTMLElement - a non-null HTML Element (not a comment node)public Object getDomDocument()Objectpublic Object getDomElement()ObjectgetDomNode()getDomContentElement()public static Object getDomElementForComponent(Object component)component |
Objectpublic Object getDomNode()ObjectgetDomElement()getDomContentElement()protected static Object GetDomNodeForCommentComponent(Object component)component |
Objectpublic static Object getDomNodeForComponent(Object component)component |
Objectpublic Node getDragOverFeedback(AdfUIComponent component,
AdfUIInputEvent inputEvent)Subclasses should override GetDragOverFeedback
component |
- | the component for this peer |
inputEvent |
- | the inputEvent that triggered the drag |
Node - HTML Node contianing the drag feedbackGetDragOverFeedback(AdfUIInputEvent)AdfUIPeer.getDragOverFeedback(AdfUIComponent, AdfUIInputEvent)protected Node GetDragOverFeedback(AdfUIInputEvent inputEvent)inputEvent |
- | the inputEvent that triggered the drag |
Node - HTML Node contianing the drag feedbackgetDragOverFeedback(AdfUIComponent, AdfUIInputEvent)CreateDraggableNode(Node)AdfUIPeer.getDragOverFeedback(AdfUIComponent, AdfUIInputEvent)public AdfTransferable getDragTransferable(AdfUIComponent component,
AdfUIInputEvent inputEvent)null if this peer has no default Transferable.
Subclasses should override GetDragTransferable
component |
- | the component for this peer |
inputEvent |
- | the inputEvent that triggered the drag |
AdfTransferable - Default transferable object, or null if no default transferableGetDragTransferable(AdfUIInputEvent)AdfUIPeer.getDragTransferable(AdfUIComponent, AdfUIInputEvent)protected AdfTransferable GetDragTransferable(AdfUIInputEvent inputEvent)null if this peer has no default Transferable.
The defaul implementation returns null
inputEvent |
- | the inputEvent that triggered the drag |
AdfTransferable - Default transferable object, or null if no default transferablegetDragTransferable(AdfUIComponent, AdfUIInputEvent)AdfUIPeer.getDragTransferable(AdfUIComponent, AdfUIInputEvent)public static AdfUIComponent getFirstAncestorComponent(Object node)node |
- | DOM Node to determine ancestor component of |
AdfUIComponent - nullpublic AdfRichInlineEditor getInlineEditor(AdfUIComponent component,
Object event)GetInlineEditor.component |
- | Component this peer should be bound to |
event |
AdfRichInlineEditor - Inline editor for the component at the event location, if anyGetInlineEditor(Object)protected AdfRichInlineEditor GetInlineEditor(Object event)getInlineEditor. The default implementation returns null for the inline editor.event |
AdfRichInlineEditor - Inline editor for the component at the event location, if anygetInlineEditor(AdfUIComponent, Object)public String getInlineStyleProperty(AdfUIComponent component,
String propName)The supplied parameter (propName) value should conform to CSS format and should be in lower case.
component |
- | Component to associate with this peer |
propName |
- | The name of the css property to set |
String - Returns the value corresponding to the CSS propertyAdfUIPeer.getInlineStyleProperty(Object, String)public static String getLocatorByDomElement(Object domElement)- if domElement is the root DOM for the component, then the absoluteLocator of the component is returned
- if domElement is a descendent of the root DOM for the component, then the DOM element among the list of supported subIds for the component, that is the best match is determined and the locator comprising of the 'absoluteLocator' and the best match 'subId' is returned.
- if domElement does not have a match among the list of supported subids, then the absoluteLocator for the component is returned. - if the domElement has no parent component then a null value is returned
domElement |
String - locator , usually the concatenation of 'absoluteLocator' and 'subId'public Object getPagePosition(Object component)component |
Object - an object with two properties (x for the left coordinate and y for the top coordinate)AdfUIPeer.getPagePosition(AdfUIComponent)public Object getPopupWindow(AdfUIComponent component,
String popupId)component |
- | the component that owns the popup |
popupId |
- | an identifier for the popup
Default value = null
|
ObjectshowPopup(AdfUIComponent, HTMLElement, Object, String)isPopupVisible(AdfUIComponent, String)hidePopup(AdfUIComponent, String)public Object getReadyState(Object component)AdfUIComponent.STATE_LOADING The UIComponent is still loading state or contentAdfUIComponent.STATE_COMPLETE The UIComponent is fully loadedcomponent |
ObjectGetReadyState()AdfUIPeer.getReadyState(Object)protected Object GetReadyState()AdfUIComponent.STATE_COMPLETE. Peers that need to perform additional initialization should override this method and register their component with AdfPage.registerLoadingComponent when the component is created and unregister the component with AdfPage.unregisterLoadingComponent when the component is completely loaded or removed.ObjectgetReadyState(Object)AdfPage.registerLoadingComponent(AdfUIComponent)AdfPage.unregisterLoadingComponent(AdfUIComponent)AdfUIPeer.getReadyState(Object)protected Object GetRichResourceURL(Object path)path |
Objectpublic HTMLElement getSubIdDomElement(Object component,
Object subId)component |
||
subId |
HTMLElement - the DOM within the component related to subIdprotected HTMLElement GetSubIdDomElement(Object subId)subId |
HTMLElement - the DOM within the component related to subIdpublic Object hideAllPopups(AdfUIComponent component)component |
- | the component that owns the popup |
ObjectshowPopup(AdfUIComponent, HTMLElement, Object, String)isPopupVisible(AdfUIComponent, String)hidePopup(AdfUIComponent, String)cancelAllPopups(AdfUIComponent, Object)public Object hidePopup(AdfUIComponent component,
String popupId)component |
- | the component that owns the popup |
popupId |
- | an identifier for the popup
Default value = null
|
ObjectcancelPopup(AdfUIComponent, String)protected static Object InitClass(Object initializationState)class.InitSublass(theClass) function to perform their subclass-specific initialization.initializationState |
ObjectAdfUIPeer.InitClass()protected Object InitDomElement(AdfUIComponent component,
Object domElement)component |
- | Component that this peer will be associated with |
domElement |
- | Root DOM element of this peer |
Objectpublic Object initialize(AdfUIComponent component)component |
- | to associate with this peer instance |
ObjectAdfUIPeer.initialize(AdfUIComponent)private static Object _initializeCallbacks(Object theClass,
Object callbackMapPropertyName,
Object callbackFormat,
Object transformationMap,
Object callbackBases)theClass |
- | Constructor to attach callback map to |
callbackMapPropertyName |
- | Name of callback map property on constructor and its superclass |
callbackFormat |
- | Format array to use when determining callback functions to map base names to |
transformationMap |
- | Additional tranformation map to apply base callback names to before concatenation |
callbackBases |
- | Array of new callback types to apply for this subclass |
Objectprivate static Object _innerInit(Object clazz,
Object component,
Object outerThis)clazz |
||
component |
||
outerThis |
Objectprivate static Object _innerSubIdInitialize(Object component)component |
Objectpublic Object isActive()Objectpublic Object isInActiveHeirarchy()Objectpublic Object isPopupVisible(AdfUIComponent component,
String popupId)component |
- | the component that owns the popup |
popupId |
- | an identifier for the popup
Default value = null
|
ObjectshowPopup(AdfUIComponent, HTMLElement, Object, String)hidePopup(AdfUIComponent, String)private static Object _keystrokeCallback(Object keystroke)keystroke |
ObjectregisterKeyStroke(AdfUIComponent, AdfKeyStroke, Function)public Object messageNotify(Object component,
Object maxType,
Object messages)component |
||
maxType |
||
messages |
ObjectAdfUIPeer.messageNotify(Object, Number, Array)protected Object MessageNotify(Object maxType,
Object messages)maxType |
||
messages |
ObjectAdfUIPeer.messageNotify(Object, Number, Array)public Object messageShow(Object component,
Object maxType,
Object messages)component |
||
maxType |
||
messages |
ObjectAdfUIPeer.messageShow(Object, Number, Array)protected Object MessageShow(Object maxType,
Object messages)maxType |
||
messages |
ObjectAdfUIPeer.messageShow(Object, Number, Array)public Boolean needsChildVisibilityChanges(AdfUIComponent component)true, the peer's ChildVisibilityChanged method will be called.
The peer is not bound when this method is called. Peers with complicated logic to determine whether they need to be informed of child visibility changes should return true from this method and place their logic inside of their ChildVisibilityChanged override.
component |
Boolean - null true if the peer cares about visiblity changesChildVisibilityChanged(Object, Object, Object)public Object needsFocusTargetStyleClass()Objectprotected Object PopupClosed(AdfUIComponent component,
HTMLElement contentDom,
String popupId)component |
- | the component that owns the popup |
contentDom |
- | the DOM within the component that should be displayed |
popupId |
- | an identifier for the popup
Default value = null
|
Objectprivate Object _popupClosedHandler(Object param)param |
Objectpublic Boolean processPushData(AdfUIComponent component,
Object payload,
Number changeCount)ProcessPushDatacomponent |
- | Component to associate with this peer |
payload |
- | Peer-specific payload for the component |
changeCount |
- | Monotonically increasing Change count for this change |
Boolean - Returns true if the component should continue to receive active data events.ProcessPushData(Object, Number)AdfUIPeer.processPushData(AdfUIComponent, Object, Boolean)protected Boolean ProcessPushData(Object payload,
Number changeCount)payload |
- | Peer-specific payload for the component |
changeCount |
- | Monotonically increasing Change count for this change |
Boolean - Returns true if the component should continue to receive active data events.processPushData(AdfUIComponent, Object, Number)AdfUIPeer.processPushData(AdfUIComponent, Object, Boolean)public static Object registerKeyStroke(AdfUIComponent component,
AdfKeyStroke keystroke,
Function keyPressedCallback)component |
- | Component the keystroke should be registered for |
keystroke |
- | the key combination for the accelerator |
keyPressedCallback |
- | function called in response to the keystroke. The function takes a single argument--the KeyStroke pressed and returns false if the callback did not handle the event. The peer instance is passed as the implicit "this". |
ObjectunregisterKeyStroke(AdfUIComponent, AdfKeyStroke)InitDomElement(AdfUIComponent, Object)componentRemoved(AdfUIComponent)private static Object _removeTwinkleCallback(Object domId)domId |
Objectpublic Object replaceDomElement(AdfUIComponent component,
HTMLElement newElement,
HTMLElement oldElement)component |
- | Component for which to replace the dom node |
newElement |
- | the new dom element |
oldElement |
- | the old dom element |
Objectprotected Object ReplaceDomElement(HTMLElement newElement,
HTMLElement oldElement)newElement |
- | the new dom element |
oldElement |
- | the old dom element |
Objectpublic Object resizeNotify(Object component,
Object oldWidth,
Object oldHeight,
Object newWidth,
Object newHeight)component |
||
oldWidth |
||
oldHeight |
||
newWidth |
||
newHeight |
ObjectAdfUIPeer.resizeNotify(Object, Object, Object, Object, Object)protected Object ResizeNotify(Object oldWidth,
Object oldHeight,
Object newWidth,
Object newHeight)oldWidth |
||
oldHeight |
||
newWidth |
||
newHeight |
ObjectAdfUIPeer.resizeNotify(Object, Object, Object, Object, Object)public Object scrollIntoView(Object component,
Object focus,
String subTargetId)component |
||
focus |
||
subTargetId |
- | optional component dependent DOM sub-id that needs to be scrolled/focused into view
Default value = null
|
Objectprotected Object ScrollIntoView(Object component,
Object focus,
String subTargetId)component |
||
focus |
||
subTargetId |
- | optional component dependent DOM sub-id that needs to be scrolled/focused into view
Default value = null
|
Objectpublic Object setBusy(Object component,
Object isBusy)component |
||
isBusy |
Objectprotected Object SetBusy(Object isBusy)isBusy |
Objectpublic Object setInlineStyleProperty(AdfUIComponent component,
String propName,
String propValue)The supplied parameter (propName) value should conform to CSS format and should be in lower case.
The property value set via setInlineStyleProperty will not be synchronized with the server-side property.
component |
- | Component to associate with this peer |
propName |
- | The name of the css property to set |
propValue |
- | The value for this css property |
ObjectAdfUIPeer.setInlineStyleProperty(Object, String, String)public Object showContextMenu(Event domEvent,
String menuId,
AdfUIComponent parentComponent,
HTMLElement alignElement,
String alignHint,
String launchSourceId)domEvent |
- | the domEvent that triggered the context menu |
menuId |
- | the id of the popup containing the menu |
parentComponent |
- | [optional] the parent component for which the context menu is displayed. if the parentComponent is passed in, the context menu is resolved by taking into account if it is a naming container or not. |
alignElement |
- | [optional] the dom element to align the context menu with. |
alignHint |
- | [optional] alignment hint wrt alignElement (see AdfRichPopup). Defaults to AdfRichPopup.ALIGN_AFTER_START The context menu is shown at the mouse pointer by default. However it can be aligned with a dom element if this parameter is specified. |
launchSourceId |
- | [optional] client id of the launching source |
Objectpublic Object showPopup(AdfUIComponent component,
HTMLElement contentDom,
Object hints,
String popupId)component |
- | the component that owns the popup |
contentDom |
- | the DOM within the component that should be displayed |
hints |
- | a set of popup hints (see AdfDhtmlPopupWindow)
Default value = null
|
popupId |
- | an identifier for the popup
Default value = null
|
ObjectisPopupVisible(AdfUIComponent, String)hidePopup(AdfUIComponent, String)private static Object _sliceArgumentsArray(Array theArguments,
Number startIndex)theArguments |
- | Arguments object to create array from |
startIndex |
- | argument index to start copying arguments from |
Objectprotected Object TruncateClientId(Object component,
Object descendantComponent,
Object childClientId,
Object skipArray)The peer is not bound when this method is called
Peers that need to remove extra fragments when converting from clientIds to absolute scoped ids such as Tables and Regions should override this method to add the index of the fragment to be skipped to the end of the skipArray.
component |
- | The component for this peer |
descendantComponent |
- | The component that the absolute scoped id is being generated for. |
childClientId |
- | The clientId of the component that the absolute scoped id is being generated for |
skipArray |
- | Array of indices to skip |
Objectprivate Object _truncateClientId(Object component,
Object descendantComponent,
Object childClientId,
Object skipArray)The peer is not bound when this method is called
component |
- | The component for this peer |
descendantComponent |
- | The component that the absolute scoped id is being generated for. |
childClientId |
- | The clientId of the component that the absolute scoped id is being generated for |
skipArray |
- | Array of indices to skip |
Objectprotected static Object TruncateClientIdOnceImpl(Object component,
Object descendantComponent,
Object childClientId,
Object skipArray)component |
||
descendantComponent |
||
childClientId |
||
skipArray |
Objectprotected Object UnbindFromComponent()Objectpublic static Object unregisterKeyStroke(AdfUIComponent component,
AdfKeyStroke keystroke)component |
- | Component the keystroke should be unregistered for |
keystroke |
- | the key combination for the accelerator |
ObjectregisterKeyStroke(AdfUIComponent, AdfKeyStroke, Function)componentRemoved(AdfUIComponent)public Number visitChildren(AdfUIComponent component,
Function callback,
Object context,
Boolean ignoreHidden)component |
- | the component |
callback |
- | a function that will be called on each child |
context |
- | an object that will be set as "this" when the callback is invoked; can be null if no context is required. |
ignoreHidden |
- | if true, hidden DOM nodes will be skipped |
Number - nullAdfUIPeer.visitChildren(AdfUIComponent, Function, Object, Boolean)private Object _visitChildren(Object component,
Object domElement,
Object callback,
Object context,
Object ignoreHidden)component |
||
domElement |
||
callback |
||
context |
||
ignoreHidden |
Object
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.1.2) E23186-01 |
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||