public class PositionBehavior extends WiQueryAbstractBehavior
Behavior using the position utilities
Missing functionalities:| Constructor and Description |
|---|
PositionBehavior()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
contribute(WiQueryResourceManager wiQueryResourceManager)
Declares resources (JavaScript and CSS files) to import.
|
PositionOptions.Position |
getAt() |
PositionOptions.Collision |
getCollision() |
PositionOptions.Position |
getMy() |
String |
getOf() |
PositionOffset |
getOffset() |
protected Options |
getOptions()
Method retrieving the options of the component
|
boolean |
isBgiframe() |
PositionBehavior |
setAt(PositionOptions.Position at)
Defines which position on the target element to align the positioned
element against: "horizontal vertical" alignment.
|
PositionBehavior |
setBgiframe(boolean bgiframe)
Applies the bgiframe plugin when set to true.
|
PositionBehavior |
setBy(JsScopePositionEvent by)
When specified the actual property setting is delegated to this callback.
|
PositionBehavior |
setCollision(PositionOptions.Collision collision)
When the positioned element overflows the window in some direction, move
it to an alternative position.
|
PositionBehavior |
setMy(PositionOptions.Position my)
Defines which position on the element being positioned to align with the
target element: "horizontal vertical" alignment.
|
PositionBehavior |
setOf(String of)
Element to position against.
|
PositionBehavior |
setOffset(PositionOffset offset)
Add these left-top values to the calculated position, eg.
|
JsStatement |
statement()
Returns the main
JsStatement used to create the plugin. |
bind, getComponentpublic void contribute(WiQueryResourceManager wiQueryResourceManager)
contribute in interface IWiQueryPlugincontribute in class WiQueryAbstractBehaviorwiQueryResourceManager - The WiQueryResourceManager instance managing this
component resources.WiQueryAbstractBehavior.contribute(org.odlabs.wiquery.core.commons.WiQueryResourceManager)protected Options getOptions()
public JsStatement statement()
JsStatement used to create the plugin.statement in interface IWiQueryPluginstatement in class WiQueryAbstractBehaviorJsStatement corresponding to this component.WiQueryAbstractBehavior.statement()public PositionBehavior setAt(PositionOptions.Position at)
at - public PositionOptions.Position getAt()
public PositionBehavior setBgiframe(boolean bgiframe)
bgiframe - public boolean isBgiframe()
public PositionBehavior setCollision(PositionOptions.Collision collision)
collision - public PositionOptions.Collision getCollision()
public PositionBehavior setMy(PositionOptions.Position my)
my - public PositionOptions.Position getMy()
public PositionBehavior setOf(String of)
of - public String getOf()
public PositionBehavior setOffset(PositionOffset offset)
offset - public PositionOffset getOffset()
public PositionBehavior setBy(JsScopePositionEvent by)
by - Copyright © 2009-2012. All Rights Reserved.