com.sibvisions.rad.ui.web.ext.gxt
Class GVxSplitPanel

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.Container<T>
                      extended by com.extjs.gxt.ui.client.widget.ScrollContainer<Component>
                          extended by com.extjs.gxt.ui.client.widget.LayoutContainer
                              extended by com.sibvisions.rad.ui.web.ext.gxt.GVxSplitPanel
All Implemented Interfaces:
Observable, HasHandlers, EventListener

public class GVxSplitPanel
extends LayoutContainer

The GVxSplitPanel is used to divide two (and only two) Components. The two Components are graphically divided and they can then be interactively resized by the user.


Nested Class Summary
static class GVxSplitPanel.SplitLayoutData
          Contains the layout data for the split layout.
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
static int DIVIDER_BOTTOM_RIGHT
          The Divider is fixed to the bottom border during resize.
static int DIVIDER_RELATIVE
          The Divider is fixed to the right border during resize.
static int DIVIDER_TOP_LEFT
          The Divider is fixed to the top border during resize.
static GVxSplitPanel.SplitLayoutData FIRST_COMPONENT
          First component of split panel.
static GVxSplitPanel.SplitLayoutData SECOND_COMPONENT
          Second component of split panel.
static int SPLIT_LEFT_RIGHT
          Splits the container in top bottom.
static int SPLIT_TOP_BOTTOM
          Splits the container in left right.
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Container
attachChildren, enableLayout, layoutExecuted, layoutNeeded, layoutOnAttach, layoutOnChange
 
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
GVxSplitPanel()
          Creates a new text instance.
 
Method Summary
 int getDividerPosition()
          Gets the position of the divider.
 int getOrientation()
          Returns the orientation.
 boolean insert(Widget pWidget, int pIndex, LayoutData pLayoutData)
          
 void setDividerPosition(int pDividerPosition)
          Sets the position of the divider.
 void setOrientation(int pOrientation)
          Sets the orientation, or how the splitter is divided.
 
Methods inherited from class com.extjs.gxt.ui.client.widget.LayoutContainer
add, add, addText, findComponent, getLayout, getLayoutTarget, getWindowResizeDelay, insert, isLayoutOnChange, isMonitorWindowResize, layout, layout, onBlur, onComponentEvent, onFocus, onRender, remove, removeAll, setLayout, setLayoutData, setLayoutOnChange, setMonitorWindowResize, setWindowResizeDelay
 
Methods inherited from class com.extjs.gxt.ui.client.widget.ScrollContainer
addScrollListener, afterRender, getHScrollPosition, getScrollMode, getVScrollPosition, removeScrollListener, scrollIntoView, setHScrollPosition, setScrollMode, setVScrollPosition
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Container
add, adjustIndex, adopt, createContainerEvent, disable, doAttachChildren, doDetachChildren, doLayout, doLayout, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getWidget, indexOf, insert, isLayoutNeeded, iterator, notifyHide, notifyShow, onAfterLayout, onAttach, onBeforeLayoutExcecuted, onInsert, onLayoutExcecuted, onRemove, orphan, remove, remove, removeAll, scrollIntoView, setLayoutNeeded, wrapWidget
 
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent
adjustPosition, adjustSize, createComponentEvent, 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.extjs.gxt.ui.client.widget.Component
addAttachable, addListener, addPlugin, addStyleName, addStyleOnOver, addWidgetListener, applyState, assertAfterRender, assertPreRender, beforeRender, blur, clearState, createObservable, createStyles, disableContextMenu, disableEvents, disableTextSelection, el, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, frame, getAriaDescribedBy, getAriaLabelledBy, getBaseStyle, getBorders, getContextMenu, getData, getElement, getFocusEl, getHideMode, getId, getItemId, getListeners, getModel, getObservable, getPlugins, getState, getStateId, getTabIndex, getTitle, getToolTip, hasListeners, hasListeners, hide, hideToolTip, initState, isAriaIgnore, isDisabledEvents, isDisableTextSelection, isEnabled, isMasked, isRendered, isStateful, isVisible, isVisible, mask, mask, mask, onBrowserEvent, onDetach, onDetachHelper, onDisable, onEnable, onEnsureDebugId, onHideContextMenu, onLoad, onRightClick, onShowContextMenu, onWindowResize, previewEvent, recalculate, removeAllListeners, removeAttachagle, removeFromParent, removeListener, removeStyleName, removeStyleOnOver, removeSwallow, removeToolTip, removeWidgetListener, render, render, repaint, saveState, setAriaDescribedBy, setAriaIgnore, setAriaLabelledBy, setBorders, setContextMenu, setData, setEl, setElement, setElement, setEnabled, setFiresEvents, setHideMode, setId, setIntStyleAttribute, setItemId, setModel, setParent, setStateful, setStateId, setStyleAttribute, setStyleName, setTabIndex, setTitle, setToolTip, setToolTip, setVisible, setZIndex, show, sinkEvents, swallowEvent, swallowEvent, toString, unframe, unmask
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, 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, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIRST_COMPONENT

public static final GVxSplitPanel.SplitLayoutData FIRST_COMPONENT
First component of split panel.


SECOND_COMPONENT

public static final GVxSplitPanel.SplitLayoutData SECOND_COMPONENT
Second component of split panel.


SPLIT_TOP_BOTTOM

public static final int SPLIT_TOP_BOTTOM
Splits the container in left right.

See Also:
Constant Field Values

SPLIT_LEFT_RIGHT

public static final int SPLIT_LEFT_RIGHT
Splits the container in top bottom.

See Also:
Constant Field Values

DIVIDER_TOP_LEFT

public static final int DIVIDER_TOP_LEFT
The Divider is fixed to the top border during resize.

See Also:
Constant Field Values

DIVIDER_BOTTOM_RIGHT

public static final int DIVIDER_BOTTOM_RIGHT
The Divider is fixed to the bottom border during resize.

See Also:
Constant Field Values

DIVIDER_RELATIVE

public static final int DIVIDER_RELATIVE
The Divider is fixed to the right border during resize.

See Also:
Constant Field Values
Constructor Detail

GVxSplitPanel

public GVxSplitPanel()
Creates a new text instance.

Method Detail

insert

public boolean insert(Widget pWidget,
                      int pIndex,
                      LayoutData pLayoutData)

Overrides:
insert in class LayoutContainer

getOrientation

public int getOrientation()
Returns the orientation.

Returns:
an integer giving the orientation
See Also:
setOrientation(int)

setOrientation

public void setOrientation(int pOrientation)
Sets the orientation, or how the splitter is divided. The options are:

Parameters:
pOrientation - an integer specifying the orientation
Throws:
IllegalArgumentException - if orientation is not one of: SPLIT_LEFT_RIGHT or SPLIT_TOP_BOTTOM.

getDividerPosition

public int getDividerPosition()
Gets the position of the divider.

Returns:
the position of the divider.

setDividerPosition

public void setDividerPosition(int pDividerPosition)
Sets the position of the divider.

Parameters:
pDividerPosition - the position of the divider.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.