| java.lang.Object net.mygwt.ui.client.util.Observable net.mygwt.ui.client.fx.Resizable
Resizable | public class Resizable extends Observable (Code) | | Applies drag handles to a widget to make it resizable.
- Events:
- ResizeStart : (source, widget, event)
Fires after a resize operation has started.
- source : this
- widget : resize widget
- event : the dom event
- ResizeEnd : (source, widget, event)
Fires after a resize.
- source : this
- widget : resize widget
- event : the dom event
|
Field Summary | |
public boolean | dynamic true to resize the element while dragging instead of using a
proxy. | public int | maxHeight The maximum height for the widget. | public int | maxWidth The maximum width for the widget. | public int | minHeight The minimum height for the widget. | public int | minWidth The minumum width for the widget. | public String | proxyStyle proxyStyle is the style name used for proxy drags. |
Method Summary | |
public boolean | isResizing() Returns true if if resizing. | protected void | onAttach() | protected void | onDetach() | public void | release() Removes the drag handles. | public void | setEnabled(boolean enable) Enables or disables the drag handles. |
dynamic | public boolean dynamic(Code) | | true to resize the element while dragging instead of using a
proxy.
|
maxHeight | public int maxHeight(Code) | | The maximum height for the widget. Default value is 2000;
|
maxWidth | public int maxWidth(Code) | | The maximum width for the widget. Default value is 2000;
|
minHeight | public int minHeight(Code) | | The minimum height for the widget. Default value is 50;
|
minWidth | public int minWidth(Code) | | The minumum width for the widget. Default value is 50.
|
proxyStyle | public String proxyStyle(Code) | | proxyStyle is the style name used for proxy drags. Default value is
'my-resize-proxy'.
|
Resizable | public Resizable(Component resize)(Code) | | Creates a new resizable instance.
Parameters: resize - the resize widget |
Resizable | public Resizable(Component resize, ResizeConfig cfg)(Code) | | Creates a new resizable instance.
Parameters: resize - the resize widget Parameters: cfg - the config |
isResizing | public boolean isResizing()(Code) | | Returns true if if resizing.
the resize state |
onAttach | protected void onAttach()(Code) | | |
onDetach | protected void onDetach()(Code) | | |
release | public void release()(Code) | | Removes the drag handles.
|
setEnabled | public void setEnabled(boolean enable)(Code) | | Enables or disables the drag handles.
Parameters: enable - true to enable |
|
|