|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-03 |
||||||||
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 | +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlPanelAccordionPeer
public class AdfDhtmlPanelAccordionPeer extends AdfRichUIPeer
Field Summary |
|
---|---|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private Object |
|
private Object |
|
private static Object |
|
private static Object |
|
private Object |
|
private static Object |
|
private static Object |
Fields inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer |
addComponentPropertyChanges, addComponentPropertyGetters, BUSY_STYLECLASS, DISABLED_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_TARGET_STYLECLASS, HOVER_TARGET_STYLECLASS, READONLY_STYLECLASS |
Fields inherited from oracle.adf.view.js.base.AdfObject |
constructor, superclass |
Fields inherited from org.ecmascript.object.Object |
prototype |
Constructor Summary |
|
---|---|
public |
Method Summary |
|
---|---|
private Object |
|
private void |
|
private void |
|
private void |
|
private void |
|
private void |
|
private void |
|
private Object |
|
private Object |
|
protected Object |
|
private void |
|
private void |
|
private HTMLElement |
|
protected void |
|
private Boolean |
|
protected HTMLElement |
|
protected static Object |
|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
private String |
|
private Array |
|
private Array |
|
private String |
|
private Array<DOMElement> |
|
private Number |
|
private Object |
|
private String |
|
private Object |
|
private Array<Object> |
|
private Array |
|
private Number |
|
private Boolean |
|
protected Object |
|
protected void |
|
protected void |
|
protected Boolean |
|
protected Boolean |
|
protected Boolean |
|
private Boolean |
|
public static Object |
|
private void |
|
private void |
|
private void |
|
private void |
|
private Boolean |
|
private Object |
|
private Object |
|
private Object |
|
protected Object |
|
protected Object |
|
private void |
|
protected static Object |
|
private Boolean |
|
private void |
|
private void |
|
public Boolean |
|
private void |
|
private Object |
|
private Boolean |
|
private Boolean |
|
protected void |
|
private void |
|
private void |
|
protected Object |
|
protected void |
|
private Object |
|
private Object |
|
private void |
|
private Boolean |
|
private Object |
|
private void |
|
private Object |
|
private Object |
|
private void |
|
private void |
|
private void |
|
Methods inherited from oracle.adf.view.js.base.AdfUIPeer |
getDefaultDragRecognizer, getParentPeer, initiateDrag, isVisible |
Methods inherited from oracle.adf.view.js.base.AdfObject |
adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString |
Field Detail |
---|
private static Object _ATTRIBUTE_DISCLOSED
private static Object _ATTRIBUTE_EVENT_TYPE
private static Object _ATTRIBUTE_ROWKEY
private static Object _ATTRIBUTE_TOOLBAR
private static Object _BOTTOM_OVERFLOW_OFFSET
private static Object _DISABLED_STYLECLASS
private static Object _DISCLOSE_PHASE1_ANIMATION_DURATION_FACTOR
private static Object _DISCLOSE_PHASE2_ANIMATION_DURATION_FACTOR
private static Object _DISCLOSED_STYLECLASS
private static Object _DISCLOSURE_SUB_ID
private static Object _DRAG_GHOST_CLASS
private static Object _DRAG_STYLECLASS
private static Object _DROP_TARGET_SUB_ID
private static Object _EVENT_TYPE_DISCLOSURE
protected Object HandleComponentBlur
protected Object HandleComponentFocus
protected Object HandleComponentMouseUp
private static Object _HEADER_CLASS
private static Object _HEADER_SUBSEQUENT_CLASS
private static Object _HIGHLIGHT_PSEUDO_CLASS
private Object _isScreenReaderMode
private static Object _ITEM_RESIZE_DRAG_SUB_ID
private static Object _LEADING_NON_ITEM_NODE_COUNT
private static Object _MINIMUM_INFLEXIBLE_HEIGHT
private static Object _MOVE_DOWN_SUB_ID
private static Object _MOVE_UP_SUB_ID
private Object _onResizeDrag
private Object _onResizeDrop
private static Object _OVERFLOW_END_POPUP
private static Object _OVERFLOW_START_POPUP
private Object _overflowMenuHolderSubId
private static Object _SELECTED_PSEUDO_CLASS
private static Object _TRAILING_NON_ITEM_NODE_COUNT
Constructor Detail |
---|
public AdfDhtmlPanelAccordionPeer()
Method Detail |
---|
private Object _addVisiblePaneSizingData(Object data,
Object inflexibleHeights,
Object inflexibleTotal,
Object flexValues,
Object flexTotal,
Object headers,
Object headerHeight,
Object firstVisibleHeaderTop,
Object width,
Object availableHeight)
data |
||
inflexibleHeights |
||
inflexibleTotal |
||
flexValues |
||
flexTotal |
||
headers |
||
headerHeight |
||
firstVisibleHeaderTop |
||
width |
||
availableHeight |
Object
private void _afterDiscloseAnimationFinal(Array<DOMElement> needsToBeRemoved,
Array<DOMElement> stretchElements)
needsToBeRemoved |
- | element that still needs to be removed from the DOM tree |
stretchElements |
- | array of elements that need to be re-stretched |
void
- nullprivate void _afterDiscloseAnimationInitial()
void
- nullprivate void _afterReorderDropAnimation()
void
- nullprivate void _animateDiscloseIntoOverflow(DOMElement element,
Object visibleItemData,
Array<Object> animationObjects)
element |
- | the header element to animate |
visibleItemData |
- | record from the {@link #_getItemSizingData) function, with properties top, contentHeight, and contentTop |
animationObjects |
- | array of objects to be passed to the AdfDhtmlElementAnimator.animate(Object, Number, Array function |
void
- nullprivate void _animateDiscloseOutOfOverflow(DOMElement element,
Object visibleItemData,
Array<Object> animationObjects)
element |
- | the header element to animate |
visibleItemData |
- | record from the {@link #_getItemSizingData) function, with properties top, contentHeight, and contentTop |
animationObjects |
- | array of objects to be passed to the AdfDhtmlElementAnimator.animate(Object, Number, Array function |
void
- nullprivate void _animateReorder(Array<Object> animationObjects,
Function callback)
animationObjects |
- | any extra objects to pass to the animator |
callback |
- | function to invoke after the animation is complete. The function will be passed the peer instance |
void
- nullprivate Object _applyReorderChanges(DOMElement headerElem,
Number fromIndex,
Number toIndex)
headerElem |
- | the header element that is being moved |
fromIndex |
- | index the items is moved from |
toIndex |
- | index the items is moved to |
Object
private Object _beginDisclosureAnimation(AdfRichShowDetailItem item,
Object oldDisclosed,
Boolean newDisclosureState)
item |
- | the item being disclosed or undisclosed |
oldDisclosed |
||
newDisclosureState |
Object
protected Object BindToComponent(AdfUIComponent component,
HTMLElement rootElement)
component |
- | the component to bind |
rootElement |
- | the root DOM element of this peer |
Object
AdfRichUIPeer.BindToComponent(Object, Object)
private void _completeDisclosureAnimation(Array<DOMElement> replacedDomElements,
Array<DOMElement> newDomElements)
replacedDomElements |
- | array of the elements that were replaced during the disclosure PPR response |
newDomElements |
- | the new elements that came from the server. This array is the same length as the replacement array. |
void
- nullprivate void _convertTopBottomToHeight(DOMElement domElement)
domElement |
- | the element |
void
- nullprivate HTMLElement _createResizeDivider(HTMLElement dividerNode)
dividerNode |
- | target resize divider node found at the bottom of a detail item |
HTMLElement
- floating drag gripper barprotected void DestroyDragGhost()
void
- nullprivate Boolean _doDisclose(String clientIdToDisclose,
Boolean newDisclosureState,
Boolean disclosed)
clientIdToDisclose |
- | The client ID of the item to change the disclosure state. |
newDisclosureState |
- | true if disclosed, false if undisclosed, null if to toggle |
disclosed |
- | The current disclosure state of the item |
Boolean
- If the disclosure state was changedprotected HTMLElement DomReplaceNotify(HTMLElement domNode)
domNode |
- | the DOM element involved in the replacement |
HTMLElement
- the DOM node which should be the target of a subsequent resize traversalAdfRichUIPeer.domReplaceNotify(AdfUIComponent, Object)
protected static Object DragAbortAnimationComplete(Object callbackParameters)
callbackParameters |
Object
private Object _endOverflowButtonPressed(Object event)
event |
Object
private Object _extractItemSubIdFromElement(DOMElement domElement)
domElement |
- | the element |
Object
- an object with properties <c>subId</c> and <c>clientId</c> or nullprivate Object _extractItemSubIdFromEvent(Event nativeEvent)
nativeEvent |
- | the native event |
Object
- an object with properties <c>subId</c> and <c>clientId</c> or nullprivate Object _forceResize()
Object
private Object _gatherHeightAndFlexData(Array<DOMElement> headerElements,
Array<Boolean> forcedVisible)
headerElements |
- | the header elements |
forcedVisible |
- | an array of numbers or null values. If an index is null, the visibility is taken from the item, if the value is true, the item will be considered visible and if false, the item will be considered hidden. The array should be the same length as the headerElements array. |
Object
- object with properties flexValues, inflexibleHeights, minimumHeights, flexTotal, inflexibleTotal, minimumTotal, selectedPaneIndex and firstDisclosedPaneIndexprivate String _getClientId(DOMElement headerElement)
headerElement |
- | the element to get the client ID for |
String
- the client ID if found, otherwise nullprivate Array _getCurrencyFromDomElement(HTMLElement targetElement,
HTMLElement rootElement)
targetElement |
- | the element to start searching from |
rootElement |
- | the root DOM element of this peer |
Array
- null or an array of click data (rowKey, eventType, disclosed, overflow)private Array _getDisclosedClientIds(HTMLElement rootElement)
rootElement |
- | the root DOM element of this peer |
Array
- the list of disclosed clientIdsprivate String _getDiscloseManyFalseDisclosedClientId()
String
- the client ID of the disclosed pane or null if none were disclosedprivate Array<DOMElement> _getHeaderElements()
Note, headerNode.nextSibling
can be used to retrieve the content node for a header node.
Array<DOMElement>
- list of header elementsprivate Number _getIndexOfChildClientId(String clientId)
clientId |
- | the client ID of the show detail item |
Number
- the index if found, else -1private Object _getItemSizingData(Object accordionHeight,
Object accordionWidth,
Array<Boolean> forcedVisible)
This data is used for both resize as well as the disclosure animation.
accordionHeight |
||
accordionWidth |
||
forcedVisible |
- | an optional array of numbers or null values. If an index is null, the visibility is taken from the item, if the value is true, the item will be considered visible and if false, the item will be considered hidden. The array should be the same length as the * number of header elements.
Default value = null
|
Object
- the data with properties startIndex, endIndex and an array of objects as property visibleItemData. Each item in the visibleItemData property has properties top, contentHeight, and contentTopprivate String _getMostRecentDisclosedPaneClientId()
String
- the most recently disclosed accordion pane or nullprivate Object _getOverflowLinks()
Object
- object with 'top' and 'bottom' propertiesprivate Array<Object> _getReorderItemPlacement()
Array<Object>
- array of objects with the information needed for the reorder dragging codeprivate Array _getRootChildElements()
Array
- an array of element child nodes from the root elementprivate Number _getStyleHeight(DOMElement domElement)
domElement |
- | the element |
Number
- the height in pixelsprivate Boolean _handleComponentBlurAndFocus(AdfUIInputEvent componentEvent)
componentEvent |
- | the blur component event |
Boolean
- nullprotected Object HandleComponentClick(AdfUIInputEvent componentEvent)
componentEvent |
- | the click component event |
Object
protected void HandleComponentKeyDown(AdfUIInputEvent componentEvent)
componentEvent |
- | the key down component event |
void
- nullprotected void HandleComponentKeyUp(AdfUIInputEvent componentEvent)
componentEvent |
- | the key up component event |
void
- nullprotected Boolean HandleComponentMouseDown(AdfUIInputEvent componentEvent)
componentEvent |
- | the mouse down component event |
Boolean
- nullprotected Boolean HandleComponentMouseOut(AdfUIInputEvent componentEvent)
componentEvent |
- | the mouse out component event |
Boolean
- nullprotected Boolean HandleComponentMouseOver(AdfUIInputEvent componentEvent)
componentEvent |
- | the mouse over component event |
Boolean
- nullprivate Boolean _handleDetailDragStart(AdfComponentEvent componentEvent)
componentEvent |
- | the event |
Boolean
- true if handledpublic static Object handleOverflowItemClick(Object detailItemId,
Object accordionId,
Object event)
detailItemId |
||
accordionId |
||
event |
Object
private void _handleRemoveSelection(AdfUIInputEvent componentEvent)
componentEvent |
- | the component event |
void
- nullprivate void _handleReorderAbort(Event evt,
Number deltaX,
Number deltaY)
evt |
- | the event |
deltaX |
- | the change in X coordinates |
deltaY |
- | the change in Y coordinates |
void
- nullprivate void _handleReorderDrag(Event evt,
Number deltaX,
Number deltaY)
evt |
- | the event |
deltaX |
- | change in X |
deltaY |
- | change in Y |
void
- nullprivate void _handleReorderDrop(Event evt,
Number deltaX,
Number deltaY)
evt |
- | the event |
deltaX |
- | change in X |
deltaY |
- | change in Y |
void
- nullprivate Boolean _handleReorderKeyUp(Boolean moveUp,
AdfUIInputEvent componentEvent)
moveUp |
- | true to move up, false for down |
componentEvent |
- | the component event |
Boolean
- true if handledprivate Object _handleResizeDrag(Object evt,
Number deltaX,
Number deltaY)
evt |
||
deltaX |
- | summary of vertical mouse movement since the last event |
deltaY |
- | summary of horizontal mouse movement since the last event |
Object
AdfDhtmlPage.startDrag(Object, Object, Object, Object, Object)
HandleComponentMouseDown(AdfUIInputEvent)
private Object _handleResizeDrop(Object evt,
Number deltaX,
Number deltaY)
evt |
||
deltaX |
- | summary of vertical mouse movement since the drag started |
deltaY |
- | summary of horizontal mouse movement since the drag started |
Object
AdfDhtmlPage.startDrag(Object, Object, Object, Object, Object)
private Object _handleSelection(Object componentEvent)
componentEvent |
Object
protected Object Init(Object component)
component |
Object
AdfObject.Init()
protected Object InitDomElement(AdfUIComponent component,
HTMLElement rootElement)
component |
- | component associated with this peer |
rootElement |
- | the root DOM element of this peer |
Object
AdfRichUIPeer.InitDomElement(AdfUIComponent, Object)
private void _initiateReorderDrag()
void
- nullprotected static Object InitSubclass()
Object
private Boolean _isElementInToolbar(Object elem)
elem |
- | {DOMElement} the element to check |
Boolean
- true if in the toolbarprivate void _markPaneAsNotOverflown(DOMNode node,
Number newTop)
node |
- | the DOM node that is overflown |
newTop |
- | integer representing the pixel value for the node's top style |
void
- nullprivate void _markPaneAsOverflown(DOMNode node)
node |
- | the DOM node that is overflown |
void
- nullpublic Boolean needsResizeNotify(AdfUIComponent component)
component |
- | the component bound to this peer |
Boolean
- true if the peer needs to be notified of resize eventsAdfUIPeer.needsResizeNotify(Object)
private void _positionDragGhost(HTMLElement ghost,
Event domEvent)
ghost |
- | the ghost element to reposition |
domEvent |
- | the drag mousemove DOM event |
void
- nullprivate Object _positionResizeDivider(Object domEvent)
domEvent |
Object
_handleResizeDrag(Object, Number, Number)
private Boolean _queueClientDisclosureChanges(AdfRichShowDetailItem oldDisclosed,
AdfRichShowDetailItem newDisclosed)
oldDisclosed |
- | the panel that was disclosed |
newDisclosed |
- | the panel that the user wants to become disclosed |
Boolean
- true if the event was delivered, false if canceled or the call failedprivate Boolean _queueSingleClientDisclosureChange(AdfRichShowDetailItem showDetailItem,
Boolean newDisclosedState)
showDetailItem |
- | the panel disclosed is being changed for |
newDisclosedState |
- | true for disclosed, false for undisclosed |
Boolean
- true if the event was delivered, false if canceled or the call failedprotected void ReallocateSizesForNewSelection(String detailItemId,
AdfRichPanelAccordion accordionComponent)
detailItemId |
- | the client ID of the pane to protect from overflow |
accordionComponent |
- | the accordion component associated with this peer |
void
- nullprivate void _reorderForDragEvent(Event evt)
evt |
- | The event |
void
- nullprivate void _reorderPanel(Number fromIndex,
Number toIndex)
fromIndex |
- | the index of the item to move |
toIndex |
- | the index to move the item to |
void
- nullprotected Object ReplaceDomElement(HTMLElement newElement,
HTMLElement oldElement)
newElement |
- | the new dom element |
oldElement |
- | the old dom element |
Object
AdfRichUIPeer.replaceDomElement(AdfUIComponent, HTMLElement, HTMLElement)
protected void ResizeNotify(Number oldWidth,
Number oldHeight,
Number newWidth,
Number newHeight)
oldWidth |
- | the last known width |
oldHeight |
- | the last known height |
newWidth |
- | the new width |
newHeight |
- | the new height |
void
- nullAdfUIPeer.resizeNotify(Object, Object, Object, Object, Object)
private Object _restoreFocus()
Object
private Object _restoreResizeDivider(HTMLElement dividerNode,
HTMLElement targetParentNode)
dividerNode |
- | animating the resize drag operation |
targetParentNode |
- | detail item's body being resized |
Object
_handleResizeDrop(Object, Number, Number)
private void _revertReorder(Array<Object> animationObjects)
animationObjects |
- | any extra objects to pass to the animator
Default value = null
|
void
- nullprivate Boolean _setDisclosure(Object nativeEvent,
Boolean newDisclosureState)
nativeEvent |
- | the event object |
newDisclosureState |
- | true if disclosed, false if undisclosed, null if to toggle |
Boolean
- true if the even should be cancelled, false otherwiseprivate Object _setMostRecentDisclosedPaneClientId(String clientId)
clientId |
- | the most recently disclosed accordion pane or null |
Object
private void _showOverflowMenu(DOMElement menuAlignElement,
Number paneCutoffIndex,
Boolean reverseOrder,
String popupId)
menuAlignElement |
- | the DOM element to align the menu to |
paneCutoffIndex |
- | the pane index to include in the menu and above items |
reverseOrder |
- | true if to include the below items instead |
popupId |
- | id to use for the overflow popup |
void
- nullprivate Object _startOverflowButtonPressed(Object event)
event |
Object
private Object _terminateReorderDrag()
Object
private void _updateDomOrderAfterReorder(Number fromIndex,
Number toIndex)
fromIndex |
- | index the items is moved from |
toIndex |
- | index the items is moved to |
void
- nullprivate void _updateMoveLinkEnabledStateAfterReorder(Number fromIndex,
Number toIndex)
fromIndex |
- | index the items is moved from |
toIndex |
- | index the items is moved to |
void
- nullprivate void _updateOverflowMenuOrder(Object fromIndex,
Object toIndex)
fromIndex |
||
toIndex |
void
- null
|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-03 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |