|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gwtext.client.core.JsObject com.gwtext.client.core.BaseConfig com.gwtext.client.widgets.ResizableConfig
public class ResizableConfig
Configuration class for Resizable
.
Field Summary |
---|
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
ResizableConfig()
|
Method Summary | |
---|---|
void |
setAdjustments(int widthAdjustment,
int heightAdjustment)
The width, height adjustments to be added to the resize operation's new size. |
void |
setAnimate(boolean animate)
True to animate the resize (not compatible with dynamic sizing, defaults to false). |
void |
setAutoAdjustments()
Sets the adjustments to "auto". |
void |
setDisableTrackOver(boolean disableTrackOver)
True to disable mouse tracking. |
void |
setDraggable(boolean draggable)
Convenience to initialize drag drop (defaults to false). |
void |
setDuration(float duration)
Animation duration if animate = true (defaults to .35). |
void |
setDynamic(boolean dynamic)
True to resize the element while dragging instead of using a proxy (defaults to false). |
void |
setEasing(com.gwtext.client.animation.Easing easing)
Animation easieng if animate = true. |
void |
setEnabled(boolean enabled)
False to disable resizing (defaults to true). |
void |
setHandles(Resizable.Handle handles)
The resize handles to display (defaults to none) |
void |
setHeight(int height)
The height of the element in pixels (defaults to null). |
void |
setHeightIncrement(int heightIncrement)
The increment to snap the height resize in pixels (dynamic must be true, defaults to 0). |
void |
setMaxHeight(int maxHeight)
The maximum height for the element (defaults to 10000). |
void |
setMaxWidth(int maxWidth)
The maximum width for the element (defaults to 10000). |
void |
setMinHeight(int minHeight)
The minimum height for the element (defaults to 5). |
void |
setMinWidth(int minWidth)
The minimum width for the element (defaults to 5). |
void |
setMinX(int minX)
The minimum allowed page X for the element (only used for west resizing, defaults to 0). |
void |
setMinY(int minY)
The minimum allowed page Y for the element (only used for north resizing, defaults to 0). |
void |
setPinned(boolean pinned)
True to ensure that the resize handles are always visible, false to display them only when the user mouses over the resizable borders. |
void |
setPreserveRatio(boolean preserveRatio)
True to preserve the original ratio between height and width during resize (defaults to false). |
void |
setResizeChild(boolean resizeChild)
True to resize the first child, or id/element to resize (defaults to false). |
void |
setTransparent(boolean transparent)
True for transparent handles. |
void |
setWidth(int width)
The width of the element in pixels (defaults to null). |
void |
setWidthIncrement(int widthIncrement)
The increment to snap the width resize in pixels (dynamic must be true, defaults to 0). |
void |
setWrap(boolean wrap)
True to wrap an element with a div if needed (required for textareas and images, defaults to false). |
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 |
Constructor Detail |
---|
public ResizableConfig()
Method Detail |
---|
public void setAutoAdjustments()
public void setAdjustments(int widthAdjustment, int heightAdjustment)
widthAdjustment
- the width adjustmentheightAdjustment
- the height adjustentpublic void setAnimate(boolean animate)
animate
- true to anumate resizepublic void setDisableTrackOver(boolean disableTrackOver)
disableTrackOver
- true to disable mouse trackingpublic void setDraggable(boolean draggable)
draggable
- true to initialize drag and droppublic void setDuration(float duration)
duration
- the animation durationpublic void setDynamic(boolean dynamic)
dynamic
- true to resize element and not proxy during draggingpublic void setEasing(com.gwtext.client.animation.Easing easing)
Easing.EASE_OUT_STRONG
easing
- the easing methodpublic void setEnabled(boolean enabled)
enabled
- false to disable resizingpublic void setHandles(Resizable.Handle handles)
handles
- the resize handles to displaypublic void setHeight(int height)
height
- the element heightpublic void setHeightIncrement(int heightIncrement)
heightIncrement
- the height incrementpublic void setMaxHeight(int maxHeight)
maxHeight
- the max height of elementpublic void setMaxWidth(int maxWidth)
maxWidth
- the max widthpublic void setMinHeight(int minHeight)
minHeight
- the min heightpublic void setMinWidth(int minWidth)
minWidth
- the min widthpublic void setMinX(int minX)
minX
- the min x valuepublic void setMinY(int minY)
minY
- the min Y valuepublic void setPinned(boolean pinned)
pinned
- true to ensure that the resize handles are always visiblepublic void setPreserveRatio(boolean preserveRatio)
preserveRatio
- true to preserve ratiopublic void setResizeChild(boolean resizeChild)
resizeChild
- true to resize the first childpublic void setTransparent(boolean transparent)
transparent
- true for transparent handlespublic void setWidth(int width)
width
- the width of elementpublic void setWidthIncrement(int widthIncrement)
widthIncrement
- the width incrementpublic void setWrap(boolean wrap)
wrap
- true to wrap element in a div if needed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |