public class CollapsibleSplitLayoutPanel
extends com.google.gwt.user.client.ui.DockLayoutPanel
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 |
|---|
CollapsibleSplitLayoutPanel()
Construct a new
CollapsibleSplitLayoutPanel with the default splitter size of
8px. |
CollapsibleSplitLayoutPanel(int splitterSize)
Construct a new
CollapsibleSplitLayoutPanel with the specified splitter size
in pixels. |
| Modifier and Type | Method and Description |
|---|---|
void |
addWest(com.google.gwt.user.client.ui.Widget widget,
double size) |
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 |
isCollapsed(com.google.gwt.user.client.ui.Widget widget) |
boolean |
remove(com.google.gwt.user.client.ui.Widget child) |
void |
setWidgetHidden(com.google.gwt.user.client.ui.Widget widget,
boolean hidden) |
void |
setWidgetMinSize(com.google.gwt.user.client.ui.Widget child,
int minSize)
Sets the minimum allowable size for the given widget.
|
void |
setWidgetSnapClosedSize(com.google.gwt.user.client.ui.Widget child,
int snapClosedSize)
Sets a size below which the slider will close completely.
|
void |
setWidgetToggleDisplayAllowed(com.google.gwt.user.client.ui.Widget child,
boolean allowed)
Sets whether or not double-clicking on the splitter should toggle the
display of the widget.
|
boolean |
toggleCollapsedState(com.google.gwt.user.client.ui.Widget widget) |
add, addEast, addEast, addLineEnd, addLineStart, addNorth, addNorth, addSouth, addSouth, addWest, animate, animate, forceLayout, getCenter, getCenterHeight, getCenterWidth, getResolvedDirection, getUnit, getWidgetContainerElement, getWidgetDirection, getWidgetSize, insertEast, insertLineEnd, insertLineStart, insertNorth, insertSouth, insertWest, onAttach, onDetach, onResize, 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, toStringpublic CollapsibleSplitLayoutPanel()
CollapsibleSplitLayoutPanel with the default splitter size of
8px.public CollapsibleSplitLayoutPanel(int splitterSize)
CollapsibleSplitLayoutPanel 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 setWidgetHidden(com.google.gwt.user.client.ui.Widget widget,
boolean hidden)
setWidgetHidden 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 setWidgetSnapClosedSize(com.google.gwt.user.client.ui.Widget child,
int snapClosedSize)
setWidgetMinSize(com.google.gwt.user.client.ui.Widget, int) to provide a speed-bump
effect where the slider will stick to a preferred minimum size before
closing completely.
This method has no effect for the DockLayoutPanel.Direction#CENTER
widget.
child - the child whose slider should snap closedsnapClosedSize - the width below which the widget will close or
-1 to disable.public void setWidgetToggleDisplayAllowed(com.google.gwt.user.client.ui.Widget child,
boolean allowed)
child - the child whose display toggling will be allowed or not.allowed - whether or not display toggling is allowed for this widgetpublic boolean toggleCollapsedState(com.google.gwt.user.client.ui.Widget widget)
public boolean isCollapsed(com.google.gwt.user.client.ui.Widget widget)
public void addWest(com.google.gwt.user.client.ui.Widget widget,
double size)
addWest in class com.google.gwt.user.client.ui.DockLayoutPanelCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.