|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.SplitBar
public class SplitBar
Creates a draggable splitter on the side of a widget.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
SplitBar(Style.LayoutRegion style,
BoxComponent resizeWidget)
Creates a new split bar. |
|
SplitBar(Style.LayoutRegion style,
BoxComponent resizeWidget,
BoxComponent container)
Creates a new split bar. |
Method Summary | |
---|---|
protected ComponentEvent |
createComponentEvent(com.google.gwt.user.client.Event event)
|
int |
getBarWidth()
Returns the bar width. |
Draggable |
getDraggable()
Returns the split bar's draggable instance. |
int |
getHandleWidth()
Returns the handle width. |
int |
getMaxSize()
Returns the maximum size. |
int |
getMinSize()
|
Component |
getResizeWidget()
Returns the resize widget. |
int |
getXOffset()
Returns the x offset. |
int |
getYOffset()
Returns the y offset. |
boolean |
isAutoSize()
Returns the auto size state. |
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
void |
release()
Removes the split bar from the resize widget. |
protected void |
removeSplitBar()
|
void |
setAutoSize(boolean autoSize)
True to update the size of the the resize widget after a drag operation using a proxy (defaults to true). |
void |
setBarWidth(int barWidth)
Sets the width of drag proxy during resizing (defaults to 2). |
void |
setHandleWidth(int handleWidth)
Sets the width of the drag handles (defaults to 5). |
void |
setMaxSize(int maxSize)
Sets the maximum size of the resize widget (defaults to 2000). |
void |
setMinSize(int minSize)
Sets he minimum size of the resize widget (defaults to 10). |
void |
setXOffset(int xOffset)
The amount of pixels the bar should be offset to the left (defaults to 0). |
void |
setYOffset(int yOffset)
Sets the amount of pixels the bar should be offset to the top (defaults to 0). |
void |
sync()
|
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustPosition, adjustSize, afterRender, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onResize, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SplitBar(Style.LayoutRegion style, BoxComponent resizeWidget)
style
- the bar locationresizeWidget
- the widget being resizedpublic SplitBar(Style.LayoutRegion style, BoxComponent resizeWidget, BoxComponent container)
style
- the bar locationresizeWidget
- the widget being resizedcontainer
- the widget the split bar proxy will be sized toMethod Detail |
---|
public int getBarWidth()
public Draggable getDraggable()
public int getHandleWidth()
public int getMaxSize()
public int getMinSize()
public Component getResizeWidget()
public int getXOffset()
public int getYOffset()
public boolean isAutoSize()
public void release()
public void setAutoSize(boolean autoSize)
autoSize
- the auto size statepublic void setBarWidth(int barWidth)
barWidth
- the bar widthpublic void setHandleWidth(int handleWidth)
handleWidth
- the handle widthpublic void setMaxSize(int maxSize)
maxSize
- the maximum sizepublic void setMinSize(int minSize)
minSize
- the minimum sizepublic void setXOffset(int xOffset)
xOffset
- the xOffset to setpublic void setYOffset(int yOffset)
yOffset
- the yOffset to setpublic void sync()
protected ComponentEvent createComponentEvent(com.google.gwt.user.client.Event event)
createComponentEvent
in class BoxComponent
protected void onRender(com.google.gwt.user.client.Element target, int index)
Component
onRender
in class Component
target
- the target elementindex
- the insert locationprotected void removeSplitBar()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |