|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.widgets.Resizable
public class Resizable
Applies drag handles to an element to make it resizable. The drag handles are inserted into the element and positioned absolute. Some elements, such as a textarea or image, don't support this. To overcome that, you can wrap the textarea in a div and set "resizeChild" to true (or to the id of the element), or set wrap:true in your config and the element will be wrapped for you automatically.
| Nested Class Summary | |
|---|---|
static class |
Resizable.Handle
|
| Field Summary | |
|---|---|
static Resizable.Handle |
ALL
|
static Resizable.Handle |
EAST
|
static Resizable.Handle |
NORTH
|
static Resizable.Handle |
NORTH_EAST
|
static Resizable.Handle |
NORTH_WEST
|
static Resizable.Handle |
SOUTH
|
static Resizable.Handle |
SOUTH_EAST
|
static Resizable.Handle |
SOUTH_WEST
|
static Resizable.Handle |
WEST
|
| Fields inherited from class com.gwtext.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
Resizable(Component component,
ResizableConfig config)
Create a new resizable component. |
|
Resizable(com.google.gwt.user.client.Element elem,
ResizableConfig config)
Create a new resizable component. |
|
Resizable(java.lang.String id,
ResizableConfig config)
Create a new resizable component. |
|
| Method Summary | |
|---|---|
void |
addListener(ResizableListener listener)
Add a Resizable listener. |
void |
destroy()
Destroys this resizable. |
void |
destroy(boolean removeEL)
Destroys this resizable. |
ExtElement |
getEl()
Returns the element this component is bound to. |
void |
resizeTo(int width,
int height)
Perform a manual resize. |
void |
setVisibility(Resizable.Handle handle,
boolean visible)
Sets the visibilty of a given handle. |
| Methods inherited from class com.gwtext.client.core.JsObject |
|---|
getJsObj, getProperties, isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Resizable.Handle NORTH
public static Resizable.Handle SOUTH
public static Resizable.Handle EAST
public static Resizable.Handle WEST
public static Resizable.Handle NORTH_WEST
public static Resizable.Handle SOUTH_WEST
public static Resizable.Handle SOUTH_EAST
public static Resizable.Handle NORTH_EAST
public static Resizable.Handle ALL
| Constructor Detail |
|---|
public Resizable(java.lang.String id,
ResizableConfig config)
id - the element IDconfig - the resizable config
public Resizable(com.google.gwt.user.client.Element elem,
ResizableConfig config)
elem - the elementconfig - the resizable config
public Resizable(Component component,
ResizableConfig config)
component - the componentconfig - the resizable config| Method Detail |
|---|
public void destroy()
public void destroy(boolean removeEL)
removeEL - true to remove the element from the DOMpublic ExtElement getEl()
public void resizeTo(int width,
int height)
width - the widthheight - the height
public void setVisibility(Resizable.Handle handle,
boolean visible)
handle - the handlevisible - visibility of handlepublic void addListener(ResizableListener listener)
listener - the listener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||