public class WorkbenchSplitLayoutPanel
extends com.google.gwt.user.client.ui.DockLayoutPanel
This is a fork of the standard SplitLayoutPanel with the following changes:-
This panel is used in the same way as DockLayoutPanel, except that
its children's sizes are always specified in Style.Unit.PX units, and each
pair of child widgets has a splitter between them that the user can drag.
This widget will only work in standards mode, which requires that the HTML page in which it is run have an explicit <!DOCTYPE> declaration.
com.google.gwt.user.client.ui.DockLayoutPanel.Direction, com.google.gwt.user.client.ui.DockLayoutPanel.LayoutDatacom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
WorkbenchSplitLayoutPanel()
Construct a new
SplitLayoutPanel with the default splitter size
of 8px. |
WorkbenchSplitLayoutPanel(int splitterSize)
Construct a new
SplitLayoutPanel with the specified splitter size
in pixels. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget child,
CompassPosition position,
double size)
Adds the given widget as a child of this splitter.
|
void |
add(com.google.gwt.user.client.ui.Widget child,
CompassPosition position,
int size)
Adds the given widget as a child of this splitter.
|
int |
getSplitterSize()
Return the size of the splitter in pixels.
|
void |
insert(com.google.gwt.user.client.ui.Widget child,
com.google.gwt.user.client.ui.DockLayoutPanel.Direction direction,
double size,
com.google.gwt.user.client.ui.Widget before) |
boolean |
remove(com.google.gwt.user.client.ui.Widget child) |
void |
setWidgetMinSize(com.google.gwt.user.client.ui.Widget child,
int minSize)
Sets the minimum allowable size for the given widget.
|
add, addEast, addEast, addLineEnd, addLineStart, addNorth, addNorth, addSouth, addSouth, addWest, addWest, animate, animate, forceLayout, getCenter, getCenterHeight, getCenterWidth, getResolvedDirection, getUnit, getWidgetContainerElement, getWidgetDirection, getWidgetSize, insertEast, insertLineEnd, insertLineStart, insertNorth, insertSouth, insertWest, onAttach, onDetach, onResize, setWidgetHidden, setWidgetSizeadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic WorkbenchSplitLayoutPanel()
SplitLayoutPanel with the default splitter size
of 8px.public WorkbenchSplitLayoutPanel(int splitterSize)
SplitLayoutPanel with the specified splitter size
in pixels.splitterSize - the size of the splitter in pixelspublic int getSplitterSize()
public void insert(com.google.gwt.user.client.ui.Widget child,
com.google.gwt.user.client.ui.DockLayoutPanel.Direction direction,
double size,
com.google.gwt.user.client.ui.Widget before)
insert in class com.google.gwt.user.client.ui.DockLayoutPanelpublic boolean remove(com.google.gwt.user.client.ui.Widget child)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.DockLayoutPanelpublic void setWidgetMinSize(com.google.gwt.user.client.ui.Widget child,
int minSize)
Its associated splitter cannot be dragged to a position that would make
it smaller than this size. This method has no effect for the
DockLayoutPanel.Direction#CENTER widget.
child - the child whose minimum size will be setminSize - the minimum size for this widgetpublic void add(com.google.gwt.user.client.ui.Widget child,
CompassPosition position,
double size)
child - the widget to addposition - the position to dock the widget at (must be an actual compass position NORTH, SOUTH, EAST, or WEST)size - the width or height to give the added child.public void add(com.google.gwt.user.client.ui.Widget child,
CompassPosition position,
int size)
child - the widget to addposition - the position to dock the widget at (must be an actual compass position NORTH, SOUTH, EAST, or WEST)size - the width or height to give the added childCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.