|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.fx.Resizable
public class Resizable
Applies drag handles to a widget to make it resizable. The drag handles are inserted into the widget and positioned absolute.
Here is the list of valid resize handles:
Value Description ------ ------------------- 'n' north 's' south 'e' east 'w' west 'nw' northwest 'sw' southwest 'se' southeast 'ne' northeast 'all' all
doit field to false to cancel the action.
| Field Summary | |
|---|---|
boolean |
dynamic
True to resize the widget directly instead of using a proxy (defaults to false). |
int |
maxHeight
The maximum height for the widget (defaults 2000). |
int |
maxWidth
The maximum width for the widget (defaults to 2000). |
int |
minHeight
The minimum height for the widget (defaults to 50). |
int |
minWidth
The minumum width for the widget (defaults to 50). |
boolean |
preserveRatio
true to preserve the original ratio between height and width
during resize. |
java.lang.String |
proxyStyle
The style name used for proxy drags (defaults to 'x-resizable-proxy'). |
| Constructor Summary | |
|---|---|
Resizable(BoxComponent resize)
Creates a new resizable instance with 8-way resizing. |
|
Resizable(BoxComponent resize,
java.lang.String handles)
Creates a new resizable instance. |
|
| Method Summary | |
|---|---|
void |
addResizeListener(ResizeListener listener)
Adds a resize listener. |
boolean |
isResizing()
Returns true if if resizing. |
void |
release()
Removes the drag handles. |
void |
removeResizeListener(ResizeListener listener)
Removes a resize listener. |
void |
setEnabled(boolean enable)
Enables or disables the drag handles. |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int minWidth
public int maxWidth
public int minHeight
public int maxHeight
public boolean preserveRatio
true to preserve the original ratio between height and width
during resize. Default value is false.
public java.lang.String proxyStyle
public boolean dynamic
| Constructor Detail |
|---|
public Resizable(BoxComponent resize)
resize - the resize widget
public Resizable(BoxComponent resize,
java.lang.String handles)
resize - the resize widgethandles - the resize handle locations seperated by spaces| Method Detail |
|---|
public void addResizeListener(ResizeListener listener)
listener - the listenerpublic boolean isResizing()
true if if resizing.
public void release()
public void removeResizeListener(ResizeListener listener)
listener - the listenerpublic void setEnabled(boolean enable)
enable - true to enable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||