|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.0.0) E17489-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 |
|
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 |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public Object |
|
protected Object |
|
public Object |
|
public Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
public Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
public String |
|
private static Object |
|
Object |
|
protected static Node |
|
public static Object |
|
public static String |
|
protected static String |
|
protected static Object |
|
private static Boolean |
|
public Object |
|
protected Object |
|
protected Object |
|
private 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 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 Object |
|
protected static Object |
|
protected Object |
|
public Object |
|
private static Object |
|
public Object |
|
public Object |
|
public Object |
|
private static Object |
|
public Object |
|
protected Object |
|
public Object |
|
protected Object |
|
public Boolean |
|
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, 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 |
---|
public static Object addComponentPropertyChanges
public static Object addComponentPropertyGetters
public static Object BUSY_STYLECLASS
private static Object _CREATE_SUB_ID_ARRAY
public static Object DISABLED_STYLECLASS
public static Object DRAG_SOURCE_STYLECLASS
public static Object DROP_TARGET_STYLECLASS
public static Object FOCUS_TARGET_STYLECLASS
private static Object _GET_COMPONENT_FORMAT
private static Object _HANDLE_COMPONENT_EVENT_FORMAT
private static Object _HANDLE_DOM_EVENT_FORMAT
public static Object HOVER_TARGET_STYLECLASS
private static Object _POPUP_ID_DEFAULT
private static Object _POPUP_LIST
private static Object _PROPETY_CHANGED_FORMAT
public static Object READONLY_STYLECLASS
private static Object _TWINKLE_ON_STYLECLASS
private static Object _TWINKLE_TIMER_ID_ATTR
static Object __TYPE_ATTR
Constructor Detail |
---|
public AdfRichUIPeer()
Method Detail |
---|
public static Object addComponentEventHandlers(Object theClass,
Object 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. |
Object
public static Object addComponentPropertyChanges(Object theClass,
Object componentEventTypes)
InitDomElement
function, using the addEventHandlerToDomInstance
in addition to registering the event with this function.theClass |
- | Constructor of class to add event handlers to |
componentEventTypes |
Object
addEventHandlerToDomInstance(Function, Object, Object)
public static Object addComponentPropertyGetters(Object theClass,
Object propertyNames)
theClass |
||
propertyNames |
Object
public static Object addDomEventHandlers(Object theClass,
Object 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. |
Object
addEventHandlerToDomInstance(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 |
Object
addDomEventHandlers(Object, Object)
public static Object addSuppressedPPRAttributes(Function theClass,
String... 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
public Object bind(AdfUIComponent component)
component |
- | Component to bind peer to |
Object
protected Object BindToComponent(Object component,
Object domNode)
component |
||
domNode |
Object
public Object cancelAllPopups(AdfUIComponent component,
Object replaceDom)
component |
- | the owner of one or more inline popups |
replaceDom |
Object
hideAllPopups(AdfUIComponent)
public Object cancelPopup(AdfUIComponent component,
String popupId)
component |
- | owner of a inline popup |
popupId |
- | an identifier for the popup
Default value = null
|
Object
hidePopup(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 |
Object
needsChildVisibilityChanges(AdfUIComponent)
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 |
Object
AdfUIComponent.getInlineStyleProperty(String)
AdfUIComponent.setInlineStyleProperty(String, String)
protected Object ComponentPropertyChanged(Object propertyChangeEvent)
propertyChangeEvent |
Object
AdfUIPeer.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. |
Object
ComponentRemoved(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 |
Object
bind(AdfUIComponent)
componentRemoved(AdfUIComponent)
AdfUIPeer.componentRemoved(AdfUIComponent)
protected Object ComponentStyleClassChanged(Object component,
Object domElement,
Object newValue,
Object oldValue)
component |
||
domElement |
||
newValue |
||
oldValue |
Object
protected Object ComponentVisibleChanged(Object component,
Object domElement,
Object newValue,
Object oldValue)
component |
||
domElement |
||
newValue |
||
oldValue |
Object
protected 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 |
Object
public 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)
private static Object _copyDragSize(Object sourceElement,
Object clonedElement)
sourceElement |
||
clonedElement |
Object
Object __CreateComponentEvent(Object component,
Object domEvent,
Object prevComponent)
component |
||
domEvent |
||
prevComponent |
Object
protected 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 createPeerClass(Function theSuperclass,
String peerName,
Boolean stateless)
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 true
Default value = true
|
Object
AdfUIPeer.createPeerClass(Object, 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 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
private static Boolean _defaultInstanceEventHandler(Object theEvent)
theEvent |
- | DOM Event object |
Boolean
- nullpublic Object descendantMessageChanged(AdfUIComponent component)
component |
- | Component this peer should be bound to |
Object
protected Object DescendantMessageChanged()
Object
protected Object DispatchComponentEvent(Object componentEvent)
componentEvent |
Object
AdfUIPeer.DispatchComponentEvent(Object)
private Object _dispatchDomEvent(Object agent,
Object component,
Object domEvent)
agent |
||
component |
||
domEvent |
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 |
Object
public Object focus(AdfUIComponent component)
Focus
.component |
- | The component the peer should focus on |
Object
Focus()
AdfUIPeer.focus(Object)
protected Object Focus()
Object
focus(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 |
Object
protected Object GetAccessibleName()
Object
public Object getAllPopups(AdfUIComponent component)
component |
- | The component that owns the popup |
Object
showPopup(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 |
Object
GetSubIdDomElement(Object)
private static Object _getCommentNodeForComponent(Object firstSibling,
Object commentString)
firstSibling |
||
commentString |
Object
public Object getComponent()
Object
AdfUIPeer.getComponent()
protected static Object GetComponent(Object element)
element |
Object
AdfUIPeer.getComponent()
protected Object GetComponentId(Object component,
Object domElement)
component |
||
domElement |
Object
public 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(Object, Object)
AdfUIPeer.getComponentProperty(AdfUIComponent, String)
protected Object GetComponentVisible(Object component,
Object domElement)
component |
||
domElement |
Object
public 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 static Object getDomContentElement()
Object
getDomElement()
getDomContentElement()
public 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()
Object
public Object getDomElement()
Object
getDomNode()
getDomContentElement()
public static Object getDomElementForComponent(Object component)
component |
Object
public Object getDomNode()
Object
getDomElement()
getDomContentElement()
protected static Object GetDomNodeForCommentComponent(Object component)
component |
Object
public static Object getDomNodeForComponent(Object component)
component |
Object
public 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
|
Object
showPopup(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 |
Object
GetReadyState()
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.Object
getReadyState(Object)
AdfPage.registerLoadingComponent(AdfUIComponent)
AdfPage.unregisterLoadingComponent(AdfUIComponent)
AdfUIPeer.getReadyState(Object)
protected Object GetRichResourceURL(Object path)
path |
Object
public 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 |
Object
showPopup(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
|
Object
cancelPopup(AdfUIComponent, String)
protected Object Init(Object component)
component |
Object
AdfObject.Init()
protected static Object InitClass()
class.InitSublass(theClass)
function to perform their subclass-specific initialization.Object
AdfUIPeer.InitClass()
protected Object InitDomElement(AdfUIComponent component,
Object domElement)
component |
- | Component that this peer will be associated with |
domElement |
- | Root DOM element of this peer |
Object
public Object initialize(AdfUIComponent component)
component |
- | to associate with this peer instance |
Object
AdfUIPeer.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 |
Object
public Object isActive()
Object
public Object isInActiveHeirarchy()
Object
public Object isPopupVisible(AdfUIComponent component,
String popupId)
component |
- | the component that owns the popup |
popupId |
- | an identifier for the popup
Default value = null
|
Object
showPopup(AdfUIComponent, HTMLElement, Object, String)
hidePopup(AdfUIComponent, String)
private static Object _keystrokeCallback(Object keystroke)
keystroke |
Object
registerKeyStroke(AdfUIComponent, AdfKeyStroke, Function)
public Object messageNotify(Object component,
Object maxType,
Object messages)
component |
||
maxType |
||
messages |
Object
AdfUIPeer.messageNotify(Object, Number, Array)
protected Object MessageNotify(Object maxType,
Object messages)
maxType |
||
messages |
Object
AdfUIPeer.messageNotify(Object, Number, Array)
public Object messageShow(Object component,
Object maxType,
Object messages)
component |
||
maxType |
||
messages |
Object
AdfUIPeer.messageShow(Object, Number, Array)
protected Object MessageShow(Object maxType,
Object messages)
maxType |
||
messages |
Object
AdfUIPeer.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)
protected 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
|
Object
private Object _popupClosedHandler(Object param)
param |
Object
public Boolean processPushData(AdfUIComponent component,
Object payload,
Number changeCount)
ProcessPushData
component |
- | 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". |
Object
unregisterKeyStroke(AdfUIComponent, AdfKeyStroke)
InitDomElement(AdfUIComponent, Object)
componentRemoved(AdfUIComponent)
private static Object _removeTwinkleCallback(Object domId)
domId |
Object
public 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 |
Object
protected Object ReplaceDomElement(HTMLElement newElement,
HTMLElement oldElement)
newElement |
- | the new dom element |
oldElement |
- | the old dom element |
Object
public Object resizeNotify(Object component,
Object oldWidth,
Object oldHeight,
Object newWidth,
Object newHeight)
component |
||
oldWidth |
||
oldHeight |
||
newWidth |
||
newHeight |
Object
AdfUIPeer.resizeNotify(Object, Object, Object, Object, Object)
protected Object ResizeNotify(Object oldWidth,
Object oldHeight,
Object newWidth,
Object newHeight)
oldWidth |
||
oldHeight |
||
newWidth |
||
newHeight |
Object
AdfUIPeer.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
|
Object
protected 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
|
Object
public Object setBusy(Object component,
Object isBusy)
component |
||
isBusy |
Object
protected Object SetBusy(Object isBusy)
isBusy |
Object
public 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 |
Object
AdfUIPeer.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 |
Object
public 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
|
Object
isPopupVisible(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 |
Object
protected 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 |
Object
private 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 |
Object
protected static Object TruncateClientIdOnceImpl(Object component,
Object descendantComponent,
Object childClientId,
Object skipArray)
component |
||
descendantComponent |
||
childClientId |
||
skipArray |
Object
protected Object UnbindFromComponent()
Object
public static Object unregisterKeyStroke(AdfUIComponent component,
AdfKeyStroke keystroke)
component |
- | Component the keystroke should be unregistered for |
keystroke |
- | the key combination for the accelerator |
Object
registerKeyStroke(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 11g Release 2 (11.1.2.0.0) E17489-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |