|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.1.3) E41654-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |
org.ecmascript.object.Object | +--oracle.adf.view.js.base.AdfObject | +--oracle.adfinternal.view.js.laf.dhtml.internalWindow.AdfDhtmlPositionManager
public class AdfDhtmlPositionManager extends AdfObject
Field Summary |
|
---|---|
public static Object |
|
public static Object |
|
private Object |
|
private Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public 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 |
|
---|---|
private Number |
|
public Number |
|
private Number |
|
public Object |
|
public Object |
|
private Object |
|
public Object |
|
public AdfDhtmlPopupWindow |
|
private Object |
|
private Array |
|
private Object |
|
public Object |
|
public Number |
|
private Array |
|
private Object |
|
protected Object |
|
protected static Object |
|
private Number |
|
private Boolean |
|
private Boolean |
|
private static Boolean |
|
private static Object |
|
public Boolean |
|
private Object |
|
private String |
|
private Boolean |
|
private Boolean |
|
private Boolean |
|
private Boolean |
|
private Boolean |
|
private Boolean |
|
private Boolean |
|
private Boolean |
|
private Object |
|
public Object |
|
private Object |
|
private Object |
|
public Boolean |
|
private Object |
|
private Object |
|
public Object |
|
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 BOTTOM
public static Object CENTER
private Object _elements
private Object _isRTL
public static Object LEFT
public static Object MIDDLE
public static Object MIN_WIDTH
public static Object RIGHT
public static Object TOP
Constructor Detail |
---|
public AdfDhtmlPositionManager()
Method Detail |
---|
private Number _addElement(AdfAbstractFloatingElement floatingElement,
Array<Object> verticalBehaviors,
Array<Object> horizontalBehaviors,
Object insideBorder)
floatingElement |
- | popup element |
verticalBehaviors |
- | an array of two map wrapper objects |
horizontalBehaviors |
- | an array of two map wrapper objects |
insideBorder |
Number
- index of the registered elementpublic Number addFloatingElement(AdfAbstractFloatingElement floatingElement,
String alignmentHint)
floatingElement |
- | popup element |
alignmentHint |
- | determines the alignment relative to another element or x,y position |
Number
- index of the registered floatingElementprivate Number _addFloatingElement(AdfAbstractFloatingElement floatingElement,
String alignmentHint)
floatingElement |
- | popup element |
alignmentHint |
- | determines the alignment relative to another element or x,y position |
Number
- index of the registered floatingElementpublic Object addFloatingElementByPosition(AdfAbstractFloatingElement floatingElement,
Object pos)
floatingElement |
- | popup element |
pos |
- | (x,y) alignment coordinates |
Object
public Object calculatePlacementPosition(Number elementHeight,
Number elementWidth,
String alignmentHint,
Object alignElement,
Object alignPosition)
elementHeight |
- | the height of the element |
elementWidth |
- | the width of the element |
alignmentHint |
- | determines the alignment relative to another element or x,y position |
alignElement |
- | the element to align by |
alignPosition |
- | (x,y) an x/y position to align by, can be used instead of alignElement |
Object
- position (x,y) alignment coordinatesprivate Object _convertHorizontal(Object horizontalHint)
horizontalHint |
Object
public Object dispose()
Object
public AdfDhtmlPopupWindow findFloatingElement(Object childDomElement)
childDomElement |
AdfDhtmlPopupWindow
- popup controller or null if not foundprivate Object _getAlignBox(Object alignElement,
Object alignPosition,
Boolean insideBorder)
alignElement |
- | the element to align by |
alignPosition |
||
insideBorder |
- | if true, position is inside any border, not just inside the element |
Object
- position coordinates for the floatingElement (top, bottom, right, left, width, height)private Array _getBehavior(Array preference)
preference |
- | alignment position preferences |
Array
- an array of behaviors grouped in pairs of twoprivate Object _getBox(AdfAbstractFloatingElement floatingElement)
floatingElement |
- | popup element |
Object
- position coordinates of the floatingElement (top, bottom, right, left, width, height)public Object getComputedBehavior(Number index)
index |
- | of the registered element |
Object
- horizontal and vertical validated positionspublic Number getElementCount()
Number
- the total number of floating elements managedprivate Array _getHintBehavior(String alignmentHint)
alignmentHint |
- | determines the alignment relative to another element or x,y position |
Array
- behavior objects that contains [verticalBehavior and horizontalBehavior variablesprivate Object _getNewPosition(Object horizontalBehavior,
Object verticalBehavior,
Object box,
Object alignBox)
horizontalBehavior |
||
verticalBehavior |
||
box |
- | coordinates of the floatingElement (top, bottom, right, left, width, height) |
alignBox |
- | coordinates of the alignment element or align position (top, bottom, right, left, width, height) |
Object
- position that has an [x] and [y] valueprotected Object Init()
Object
AdfObject.Init()
protected static Object InitClass()
Object
private Number _inversePosition(Number position)
position |
- | alignment coordinate |
Number
- opposite positionprivate Boolean _isFloatingElementGreaterThanWindow(AdfDhtmlPopupWindow floatingElement)
floatingElement |
- | managed by position |
Boolean
- true if the floating element is larger than the primary window in width or heightprivate Boolean _isOutsideScrollView(HTMLElement element)
element |
- | alignment element |
Boolean
- returns true if the alignment element is outside the view portprivate static Boolean _isRootNode(HTMLElement element)
element |
- | parent of the aliging element |
Boolean
- returns true if the element is a root node (form, body or zorder container)private static Object _isWithinViewport(Object alignBox,
Object containerBox)
alignBox |
- | the popup is aligned to having properties "top", "bottom", "left" and "right" |
containerBox |
- | parent container the alignBox should be within. The conainerBox properties "top", "bottom", "left" and "right" |
Object
- null true
if the alignBox coordinate is within the containerBoxpublic Boolean managesElement(Object element)
element |
- | floating element |
Boolean
- true if the element is registered with zOrderManager.private Object _positionElement(AdfAbstractFloatingElement floatingElement,
Object computedBehavior,
Boolean alignElementIsManaged,
Object box,
Object alignBox)
floatingElement |
- | popup element |
computedBehavior |
- | horizontal and vertical validated positions |
alignElementIsManaged |
- | true if managed by the page's zOrderManager |
box |
- | coordinates of the floatingElement (top, bottom, right, left, width, height) |
alignBox |
- | coordinates of the alignment element or align position (top, bottom, right, left, width, height) |
Object
private String _positionToString(Number position)
position |
- | alignment coordinate |
String
- token describing the positionprivate Boolean _preferBottomBottomCondition(Object box,
Object alignBox)
_preferTopTopCondition
.box |
- | positions of the floating element |
alignBox |
- | positions of the aligning element |
Boolean
- null true
if rule is valid_preferTopTopCondition(Object, Object, Boolean)
private Boolean _preferBottomTopCondition(Object box,
Object alignBox,
Boolean inverse)
box |
- | positions of the floating element |
alignBox |
- | positions of the aligning element |
inverse |
- | flip-flop the vertical rule |
Boolean
- null true
if rule is validprivate Boolean _preferLeftLeftCondition(Object box,
Object alignBox,
Boolean inverse)
box |
- | positions of the floating element |
alignBox |
- | positions of the aligning element |
inverse |
- | flip-flop the horizontal rule |
Boolean
- null true
if rule is validprivate Boolean _preferLeftRightCondition(Object box,
Object alignBox)
box |
- | positions of the floating element |
alignBox |
Boolean
- null true
if rule is valid_preferRightLeftCondition(Object, Object, Boolean)
private Boolean _preferRightLeftCondition(Object box,
Object alignBox,
Boolean inverse)
box |
- | positions of the floating element |
alignBox |
- | positions of the aligning element |
inverse |
- | flip-flop the horizontal rule |
Boolean
- null true
if rule is validprivate Boolean _preferRightRightCondition(Object box,
Object alignBox)
box |
- | positions of the floating element |
alignBox |
- | positions of the aligning element |
Boolean
- null true
if rule is valid_preferLeftLeftCondition(Object, Object, Boolean)
private Boolean _preferTopBottomCondition(Object box,
Object alignBox)
box |
- | positions of the floating element |
alignBox |
- | positions of the aligning element |
Boolean
- null true
if rule is valid_preferBottomTopCondition(Object, Object, Boolean)
private Boolean _preferTopTopCondition(Object box,
Object alignBox,
Boolean inverse)
box |
- | positions of the floating element |
alignBox |
- | positions of the aligning element |
inverse |
- | flip-flop the vertical rule |
Boolean
- null true
if rule is validprivate Object _registerEventHanders()
Object
public Object removeElement(Number index)
index |
- | of the registered floatElement |
Object
private Object _repostionOnScroll(Object evt)
evt |
- | dom event |
Object
private Object _repostionOnScrollTimeout()
Object
public Boolean resizeFloatingElement(HTMLElement childDomElement)
childDomElement |
- | child dom element, PPR'ed element, used to locate a floating element |
Boolean
- true if the childElement could be used to locate the owning floating element; otherwise, a false return value indicates the childElement could not be found in an open floating element.private Object _selectBehavior(Array behaviors,
Object box,
Object alignBox)
behaviors |
- | floating elements alignment preferences |
box |
- | coordinates of the floatingElement (top, bottom, right, left, width, height) |
alignBox |
- | coordinates of the alignment element or align position (top, bottom, right, left, width, height) |
Object
- behavior that matches the alignment condiationsprivate Object _unregisterEventHanders()
Object
public Object validatePosition(Number index)
index |
- | of a registered floating element |
Object
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.1.3) E41654-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |