public interface SplitPanel
extends com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.RequiresResize, com.google.gwt.user.client.ui.ProvidesResize
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MIN_SIZE
The default minimum size for a fixed-size child.
|
static int |
DEFAULT_SIZE
The default initial size for a fixed-size child.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
getFixedWidgetSize()
Gets the current pixel size of the component that doesn't expand/contract when the whole split pane's container
is resized.
|
com.google.gwt.user.client.ui.Widget |
getParent() |
com.google.gwt.user.client.ui.Widget |
getWidget(CompassPosition position)
Returns the widget on the given side of this splitter.
|
void |
setFixedWidgetSize(int newSize)
Sets the pixel size of the component that doesn't expand/contract when the whole split pane's container
is resized.
|
void |
setup(com.google.gwt.user.client.ui.IsWidget eastOrNorthWidget,
com.google.gwt.user.client.ui.IsWidget westOsSouthWidget,
CompassPosition fixedSizeComponent,
Integer preferredSize,
Integer preferredMinSize)
Sets up this split panel's contents and divider location.
|
static final int DEFAULT_SIZE
static final int DEFAULT_MIN_SIZE
com.google.gwt.user.client.ui.Widget getParent()
void setup(com.google.gwt.user.client.ui.IsWidget eastOrNorthWidget, com.google.gwt.user.client.ui.IsWidget westOsSouthWidget, CompassPosition fixedSizeComponent, Integer preferredSize, Integer preferredMinSize)
eastOrNorthWidget
- the widget to place in the east side a horizontal panel or north side of a vertical panel.westOsSouthWidget
- the widget to place in the west side a horizontal panel or south side of a vertical panel.fixedSizeComponent
- the component that should not change size when the whole split panel grows or shrinks (eg. because the
browser window is being resized)preferredSize
- the width or height that the fixed-size component should be given initially. If null, a default of
64 will be used.preferredMinSize
- the minimum width or height of the fixed-size component. If null, a default of
32 will be used.void clear()
com.google.gwt.user.client.ui.Widget getWidget(CompassPosition position)
position
- which widget to getint getFixedWidgetSize()
void setFixedWidgetSize(int newSize)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.