com.extjs.gxt.ui.client.widget
クラス SplitBar

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.BoxComponent
                  extended by com.extjs.gxt.ui.client.widget.SplitBar
すべての実装インターフェース:
Observable, com.google.gwt.user.client.EventListener

public class SplitBar
extends BoxComponent

Creates draggable splitter on the side of a widget.

Events:
Resize : SplitBarEvent(splitBar, size)
Fires after the split bar has been moved.
DragStart : SplitBarEvent(splitBar, dragEvent)
Fires after a drag has started.
DragEnd : SplitBarEvent(splitBar, dragEvent)
Fires after a drag has ended.


入れ子クラス 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承された 入れ子クラス/インターフェース
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたフィールド(Fields)
DEBUG_ID_PREFIX
 
コンストラクタ 概要
SplitBar(Style.LayoutRegion style, BoxComponent resizeWidget)
          Creates a new split bar.
SplitBar(Style.LayoutRegion style, BoxComponent resizeWidget, BoxComponent container)
          Creates a new split bar.
 
メソッド 概要
 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 maxiumum 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.
 void release()
          Removes the split bar from the resize widget.
 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()
           
 
クラス com.extjs.gxt.ui.client.widget.BoxComponent から継承されたメソッド
getBounds, getHeight, getHeight, getPosition, getShadow, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShim, setSize, setSize, setWidth, setWidth
 
クラス com.extjs.gxt.ui.client.widget.Component から継承されたメソッド
addListener, addStyleName, addWidgetListener, disable, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hide, hideToolTip, isEnabled, isRendered, isVisible, onBrowserEvent, onComponentEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setId, setIntStyleAttribute, setItemId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, show, toString
 
クラス com.google.gwt.user.client.ui.Widget から継承されたメソッド
getParent, isAttached
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたメソッド
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタ 詳細

SplitBar

public SplitBar(Style.LayoutRegion style,
                BoxComponent resizeWidget)
Creates a new split bar.

パラメータ:
style - the bar location
resizeWidget - the widget being resized

SplitBar

public SplitBar(Style.LayoutRegion style,
                BoxComponent resizeWidget,
                BoxComponent container)
Creates a new split bar.

パラメータ:
style - the bar location
resizeWidget - the widget being resized
container - the widget the split bar proxy will be sized to
メソッド 詳細

getBarWidth

public int getBarWidth()
Returns the bar width.

戻り値:
the bar width

getDraggable

public Draggable getDraggable()
Returns the split bar's draggable instance.

戻り値:
the draggable instance

getHandleWidth

public int getHandleWidth()
Returns the handle width.

戻り値:
the handle width

getMaxSize

public int getMaxSize()
Returns the maxiumum size.

戻り値:
the max size

getMinSize

public int getMinSize()
戻り値:
the minSize

getResizeWidget

public Component getResizeWidget()
Returns the resize widget.

戻り値:
the resize widget

getXOffset

public int getXOffset()
Returns the x offset.

戻り値:
the xOffset the x offset value

getYOffset

public int getYOffset()
Returns the y offset.

戻り値:
the y offset

isAutoSize

public boolean isAutoSize()
Returns the auto size state.

戻り値:
true if auto size is enabled

release

public void release()
Removes the split bar from the resize widget.


setAutoSize

public void setAutoSize(boolean autoSize)
True to update the size of the the resize widget after a drag operation using a proxy (defaults to true).

パラメータ:
autoSize - the auto size state

setBarWidth

public void setBarWidth(int barWidth)
Sets the width of drag proxy during resizing (defaults to 2).

パラメータ:
barWidth - the bar width

setHandleWidth

public void setHandleWidth(int handleWidth)
Sets the width of the drag handles (defaults to 5).

パラメータ:
handleWidth - the handle width

setMaxSize

public void setMaxSize(int maxSize)
Sets the maximum size of the resize widget (defaults to 2000).

パラメータ:
maxSize - the maximum size

setMinSize

public void setMinSize(int minSize)
Sets he minimum size of the resize widget (defaults to 10).

パラメータ:
minSize - the minimum size

setXOffset

public void setXOffset(int xOffset)
The amount of pixels the bar should be offset to the left (defaults to 0).

パラメータ:
xOffset - the xOffset to set

setYOffset

public void setYOffset(int yOffset)
Sets the amount of pixels the bar should be offset to the top (defaults to 0).

パラメータ:
yOffset - the yOffset to set

sync

public void sync()