| net.mygwt.ui.client.widget.Component net.mygwt.ui.client.widget.SplitBar
SplitBar | public class SplitBar extends Component (Code) | | Creates draggable splitter bar on the side of a widget.
- Styles:
- NORTH, WEST, SOUTH, EAST
- Events:
- Resize : (widget, item, size)
Fires after the split bar has been moved.
- widget : this
- item : the widget being resized
- size : the new size
- DragStart : (widget,event)
Fires after a drag has started.
- widget : this
- event : the dom event
- DragEnd : (widget,event)
Fires after a drag has ended.
- widget : this
- event : the dom event
|
Field Summary | |
public static boolean | useFramePanel Specifies if a frame panel should be displayed while dragging split bars.
Frame panel uses a hidden iframe to allow the split bar to travel over
embedded objects such as applets and flash. |
Method Summary | |
public boolean | getAutoSize() Returns true if auto size is enabled. | public int | getBarWidth() Returns the bar's width. | public Draggable | getDraggable() Returns the split bar's draggable instance. | public int | getMaxSize() Returns the max size. | public int | getMinSize() Returns the minimum size. | public Widget | getResizeWidget() Returns the resize widget. | public int | getStyle() Returns the split bar's style information. | public int | getXOffset() Returns the x offset. | public int | getYOffset() Returns the y offset. | public void | release() Removes the split bar from the resize widget. | public void | setAutoSize(boolean autoSize) Specifies if the size of the the resize widget should be updated
automatically after a drag operation using a proxy. | public void | setBarWidth(int barWidth) Sets width of bar in pixels. | public void | setMaxSize(int maxSize) Sets the maximum size of the resize widget. | public void | setMinSize(int minSize) Sets the minimum size of the resize widget. | public void | setXOffset(int xOffset) Specifies the amount of pixels the bar should be offset to the left. | public void | setYOffset(int yOffset) Sets the amount of pixels the bar should be offset to the top. | public void | updateHandle() | static void | updateHandles() |
useFramePanel | public static boolean useFramePanel(Code) | | Specifies if a frame panel should be displayed while dragging split bars.
Frame panel uses a hidden iframe to allow the split bar to travel over
embedded objects such as applets and flash. There is a slight performance
hit when enabled. Default value is false .
|
SplitBar | public SplitBar(int style, Component resizeWidget)(Code) | | Creates a new split bar.
Parameters: style - the bar location Parameters: resizeWidget - the widget being resized |
SplitBar | public SplitBar(int style, Component resizeWidget, Component container)(Code) | | Creates a new split bar.
Parameters: style - the bar location Parameters: resizeWidget - the widget being resized Parameters: container - the widget the split bar proxy will be sized to |
getAutoSize | public boolean getAutoSize()(Code) | | Returns true if auto size is enabled.
the auto size state |
getBarWidth | public int getBarWidth()(Code) | | Returns the bar's width.
the bar width |
getDraggable | public Draggable getDraggable()(Code) | | Returns the split bar's draggable instance.
the draggable instance |
getMaxSize | public int getMaxSize()(Code) | | Returns the max size.
the max size |
getMinSize | public int getMinSize()(Code) | | Returns the minimum size.
the minium size |
getResizeWidget | public Widget getResizeWidget()(Code) | | Returns the resize widget.
the resize widget |
getStyle | public int getStyle()(Code) | | Returns the split bar's style information.
the style information |
getXOffset | public int getXOffset()(Code) | | Returns the x offset.
the x offset |
getYOffset | public int getYOffset()(Code) | | Returns the y offset.
the y offset |
release | public void release()(Code) | | Removes the split bar from the resize widget.
|
setAutoSize | public void setAutoSize(boolean autoSize)(Code) | | Specifies if the size of the the resize widget should be updated
automatically after a drag operation using a proxy. Default value is
true .
Parameters: autoSize - true to enable auto sizing |
setBarWidth | public void setBarWidth(int barWidth)(Code) | | Sets width of bar in pixels. Default value is 4.
Parameters: barWidth - the bar width |
setMaxSize | public void setMaxSize(int maxSize)(Code) | | Sets the maximum size of the resize widget. Default value is 2000.
Parameters: maxSize - the max size |
setMinSize | public void setMinSize(int minSize)(Code) | | Sets the minimum size of the resize widget. Default value is 10.
Parameters: minSize - the minimum size |
setXOffset | public void setXOffset(int xOffset)(Code) | | Specifies the amount of pixels the bar should be offset to the left.
Default value is 0.
Parameters: xOffset - the x offset |
setYOffset | public void setYOffset(int yOffset)(Code) | | Sets the amount of pixels the bar should be offset to the top. Default
value is 0.
Parameters: yOffset - the y offset |
updateHandle | public void updateHandle()(Code) | | |
updateHandles | static void updateHandles()(Code) | | |
Methods inherited from net.mygwt.ui.client.widget.Component | public void addListener(int eventType, Listener listener)(Code)(Java Doc) public void addStyleName(String style)(Code)(Java Doc) public void addWidgetListener(WidgetListener listener)(Code)(Java Doc) protected void afterRender()(Code)(Java Doc) protected Component blur()(Code)(Java Doc) public void disable()(Code)(Java Doc) protected void disableContextMenu(boolean disable)(Code)(Java Doc) public void disableTextSelection(boolean disable)(Code)(Java Doc) public void dispose()(Code)(Java Doc) public void enable()(Code)(Java Doc) public void enableEvents(boolean enable)(Code)(Java Doc) public boolean fireEvent(int type)(Code)(Java Doc) public boolean fireEvent(int type, BaseEvent be)(Code)(Java Doc) public boolean fireEvent(int eventType, Widget widget, Widget item)(Code)(Java Doc) public boolean fireEvent(int eventType, Widget widget, Widget item, int index)(Code)(Java Doc) public Component focus()(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public Rectangle getBounds(boolean content)(Code)(Java Doc) protected Menu getContextMenu()(Code)(Java Doc) public Object getData()(Code)(Java Doc) public Object getData(String key)(Code)(Java Doc) public String getDisabledStyle()(Code)(Java Doc) public Element getElement()(Code)(Java Doc) protected Element getFocusElement()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public int getHeight(boolean content)(Code)(Java Doc) public String getId()(Code)(Java Doc) public int getStyle()(Code)(Java Doc) public ToolTip getToolTip()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int getWidth(boolean content)(Code)(Java Doc) public void hide()(Code)(Java Doc) public boolean isDisposed()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isRendered()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected void onAttach()(Code)(Java Doc) public void onBaseEvent(BaseEvent be)(Code)(Java Doc) public void onBrowserEvent(Event event)(Code)(Java Doc) protected void onDestroy()(Code)(Java Doc) protected void onDetach()(Code)(Java Doc) protected void onDisable()(Code)(Java Doc) protected void onEnable()(Code)(Java Doc) protected void onHide()(Code)(Java Doc) protected void onHideContextMenu()(Code)(Java Doc) protected void onLoad()(Code)(Java Doc) protected void onRender()(Code)(Java Doc) protected void onResize(int width, int height)(Code)(Java Doc) protected void onRightClick(BaseEvent be)(Code)(Java Doc) protected void onShow()(Code)(Java Doc) protected void onShowContextMenu(int x, int y)(Code)(Java Doc) public void recalculate()(Code)(Java Doc) public void removeAllListeners()(Code)(Java Doc) public void removeFromParent()(Code)(Java Doc) public void removeListener(int eventType, Listener listener)(Code)(Java Doc) public void removeStyleName(String style)(Code)(Java Doc) public void removeWidgetListener(WidgetListener listener)(Code)(Java Doc) protected void render()(Code)(Java Doc) public void setBorders(boolean show)(Code)(Java Doc) public void setBounds(int x, int y, int width, int height)(Code)(Java Doc) public void setBounds(Rectangle rect)(Code)(Java Doc) protected void setContextMenu(Menu menu)(Code)(Java Doc) public void setData(Object data)(Code)(Java Doc) public void setData(String key, Object data)(Code)(Java Doc) public void setDisabledStyle(String style)(Code)(Java Doc) public void setElement(Element elem)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setHeight(int height)(Code)(Java Doc) public void setHeight(String height)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public void setIntStyleAttribute(String attr, int value)(Code)(Java Doc) public void setPagePosition(int x, int y)(Code)(Java Doc) public void setPixelSize(int width, int height)(Code)(Java Doc) public void setSize(int width, int height)(Code)(Java Doc) public void setSize(String width, String height)(Code)(Java Doc) public void setStyleAttribute(String attr, String value)(Code)(Java Doc) public void setStyleName(String style)(Code)(Java Doc) public void setTitle(String title)(Code)(Java Doc) public void setToolTip(String text)(Code)(Java Doc) public void setToolTip(String title, String text)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public void setWidth(int width)(Code)(Java Doc) public void setWidth(String width)(Code)(Java Doc) public void show()(Code)(Java Doc) public void unhook(int type, EventListener listener)(Code)(Java Doc)
|
|
|