|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.odlabs.wiquery.core.behavior.WiQueryAbstractBehavior
org.odlabs.wiquery.ui.resizable.ResizableBehavior
public class ResizableBehavior
$Id$
Sets the attached component resizable.
Field Summary | |
---|---|
static String |
UI_HELPER
Properties on the ui parameter (use it into callback functions) : a jQuery object containing the helper element |
static String |
UI_ORIGIGNALPOSITION
Properties on the ui parameter (use it into callback functions) : {top, left} before resizing started |
static String |
UI_ORIGINALSIZE
Properties on the ui parameter (use it into callback functions) : {width, height} before resizing started |
static String |
UI_POSITION
Properties on the ui parameter (use it into callback functions) : {top, left} current position |
static String |
UI_SIZE
Properties on the ui parameter (use it into callback functions) : {width, height} current size |
Constructor Summary | |
---|---|
ResizableBehavior()
|
Method Summary | |
---|---|
JsStatement |
destroy()
Method to destroy This will return the element back to its pre-init state. |
void |
destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to destroy within the ajax request |
void |
detach(org.apache.wicket.Component component)
|
JsStatement |
disable()
Method to disable |
void |
disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to disable within the ajax request |
JsStatement |
enable()
Method to enable |
void |
enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to enable within the ajax request |
String |
getAlsoResize()
Deprecated. will be changed in 1.2 to return a ResizableAlsoResize |
ResizableAlsoResize |
getAlsoResizeComplex()
|
ResizableAnimeDuration |
getAnimateDuration()
|
String |
getAnimateEasing()
|
ResizableAspectRatio |
getAspectRatio()
|
String |
getCancel()
|
ResizableContainment |
getContainment()
|
int |
getDelay()
|
int |
getDistance()
|
ICollectionItemOptions |
getGrid()
|
ResizableHandles |
getHandles()
|
String |
getHelper()
|
int |
getMaxHeight()
Returns the component's max height. |
int |
getMaxWidth()
Returns the component's max width. |
int |
getMinHeight()
Returns the component's min height. |
int |
getMinWidth()
Returns the component's max width. |
protected Options |
getOptions()
Method retrieving the options of the component |
boolean |
isAnimate()
|
boolean |
isAutoHide()
|
boolean |
isDisabled()
|
boolean |
isGhost()
|
void |
onBind()
Called when the component was bound to it's host component. |
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.html.IHeaderResponse response)
|
ResizableBehavior |
setAlsoResize(ResizableAlsoResize alsoResize)
Resize these elements synchronous when resizing. |
ResizableBehavior |
setAlsoResize(String cssSelector)
Deprecated. will be removed in 1.2 |
ResizableBehavior |
setAnimate(boolean animate)
Animates to the final size after resizing. |
ResizableBehavior |
setAnimateDuration(ResizableAnimeDuration animeDuration)
Sets the duration time for animating, in milliseconds. |
ResizableBehavior |
setAnimateEasing(String easing)
Sets the easing effect for animating. |
ResizableBehavior |
setAspectRatio(ResizableAspectRatio aspectRatio)
If set to true, resizing is constrained by the original aspect ratio. |
ResizableBehavior |
setAutoHide(boolean autoHide)
If set to true, automatically hides the handles except when the mouse hovers over the element. |
ResizableBehavior |
setCancel(String cancel)
Prevents resizing if you start on elements matching the selector. |
ResizableBehavior |
setContainment(ResizableContainment containment)
Sets the constrains resizing to within the bounds of the specified element. |
ResizableBehavior |
setDelay(int delay)
Sets the tolerance, in milliseconds, for when resizing should start. |
ResizableBehavior |
setDisabled(boolean disabled)
Disables (true) or enables (false) the resizable. |
ResizableBehavior |
setDistance(int distance)
Sets the tolerance, in pixels, for when resizing should start. |
ResizableBehavior |
setGhost(boolean ghost)
Set to true, a semi-transparent helper element is shown for resizing. |
ResizableBehavior |
setGrid(int x,
int y)
Snaps the resizing element to a grid, every x and y pixels. |
ResizableBehavior |
setHandles(ResizableHandles handles)
If specified as a string, should be a comma-split list of any of the following: 'n, e, s, w, ne, se, sw, nw, all'. |
ResizableBehavior |
setHelper(String helper)
Sets the css class that will be added to a proxy element to outline the resize during the drag of the resize handle. |
ResizableBehavior |
setMaxHeight(int maxHeight)
Sets the component's max height. |
ResizableBehavior |
setMaxWidth(int maxWidth)
Sets the window's max width. |
ResizableBehavior |
setMinHeight(int minHeight)
Sets the component's min height. |
ResizableBehavior |
setMinWidth(int minWidth)
Sets the component's min width. |
ResizableBehavior |
setResizeEvent(JsScopeUiEvent resize)
Set's the callback when the event is triggered during the resize, on the drag of the resize handler. |
ResizableBehavior |
setStartEvent(JsScopeUiEvent start)
Set's the callback when the event is triggered at the start of a resize operation. |
ResizableBehavior |
setStopEvent(JsScopeUiEvent stop)
Set's the callback when the event is triggered at the end of a resize operation. |
JsStatement |
statement()
Returns the main JsStatement used to create the plugin. |
JsStatement |
widget()
Method to returns the .ui-resizable element |
void |
widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to returns the .ui-resizable element within the ajax request |
Methods inherited from class org.odlabs.wiquery.core.behavior.WiQueryAbstractBehavior |
---|
bind, getComponent |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String UI_HELPER
public static final String UI_ORIGIGNALPOSITION
public static final String UI_ORIGINALSIZE
public static final String UI_POSITION
public static final String UI_SIZE
Constructor Detail |
---|
public ResizableBehavior()
Method Detail |
---|
public void onBind()
WiQueryAbstractBehavior
onBind
in class WiQueryAbstractBehavior
public void detach(org.apache.wicket.Component component)
detach
in class org.apache.wicket.behavior.Behavior
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.html.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class org.apache.wicket.behavior.Behavior
public JsStatement statement()
IWiQueryPlugin
JsStatement
used to create the plugin.
statement
in interface IWiQueryPlugin
statement
in class WiQueryAbstractBehavior
JsStatement
corresponding to this component.protected Options getOptions()
@Deprecated public ResizableBehavior setAlsoResize(String cssSelector)
cssSelector
-
@Deprecated public String getAlsoResize()
ResizableAlsoResize
public ResizableBehavior setAlsoResize(ResizableAlsoResize alsoResize)
alsoResize
-
public ResizableAlsoResize getAlsoResizeComplex()
public ResizableBehavior setAnimate(boolean animate)
animate
-
public boolean isAnimate()
public ResizableBehavior setAnimateDuration(ResizableAnimeDuration animeDuration)
public ResizableAnimeDuration getAnimateDuration()
public ResizableBehavior setAnimateEasing(String easing)
easing
-
public String getAnimateEasing()
public ResizableBehavior setAspectRatio(ResizableAspectRatio aspectRatio)
aspectRatio
-
public ResizableAspectRatio getAspectRatio()
public ResizableBehavior setAutoHide(boolean autoHide)
autoHide
-
public boolean isAutoHide()
public ResizableBehavior setCancel(String cancel)
cancel
-
public String getCancel()
public ResizableBehavior setContainment(ResizableContainment containment)
containment
-
public ResizableContainment getContainment()
public ResizableBehavior setDelay(int delay)
delay
-
public int getDelay()
public ResizableBehavior setDistance(int distance)
distance
-
public int getDistance()
public ResizableBehavior setDisabled(boolean disabled)
disabled
-
public boolean isDisabled()
public ResizableBehavior setGhost(boolean ghost)
ghost
-
public boolean isGhost()
public ResizableBehavior setGrid(int x, int y)
x
- y
-
public ICollectionItemOptions getGrid()
public ResizableBehavior setHandles(ResizableHandles handles)
handles
-
public ResizableHandles getHandles()
public ResizableBehavior setHelper(String helper)
helper
-
public String getHelper()
public ResizableBehavior setMaxHeight(int maxHeight)
public int getMaxHeight()
public ResizableBehavior setMaxWidth(int maxWidth)
public int getMaxWidth()
public ResizableBehavior setMinHeight(int minHeight)
public int getMinHeight()
public ResizableBehavior setMinWidth(int minWidth)
public int getMinWidth()
public ResizableBehavior setResizeEvent(JsScopeUiEvent resize)
resize
-
public ResizableBehavior setStartEvent(JsScopeUiEvent start)
start
-
public ResizableBehavior setStopEvent(JsScopeUiEvent stop)
stop
-
public JsStatement destroy()
public void destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement disable()
public void disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement enable()
public void enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement widget()
public void widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |