Interface SplitPanel
-
- All Superinterfaces:
com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.ui.ProvidesResize,com.google.gwt.user.client.ui.RequiresResize
public interface SplitPanel extends com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.RequiresResize, com.google.gwt.user.client.ui.ProvidesResizeCommon operations for UberFire's horizontal and vertical splitter panels.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MIN_SIZEThe default minimum size for a fixed-size child.static intDEFAULT_SIZEThe default initial size for a fixed-size child.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()intgetFixedWidgetSize()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.WidgetgetParent()com.google.gwt.user.client.ui.WidgetgetWidget(org.uberfire.workbench.model.CompassPosition position)Returns the widget on the given side of this splitter.voidsetFixedWidgetSize(int newSize)Sets the pixel size of the component that doesn't expand/contract when the whole split pane's container is resized.voidsetup(com.google.gwt.user.client.ui.IsWidget eastOrNorthWidget, com.google.gwt.user.client.ui.IsWidget westOsSouthWidget, org.uberfire.workbench.model.CompassPosition fixedSizeComponent, Integer preferredSize, Integer preferredMinSize)Sets up this split panel's contents and divider location.
-
-
-
Field Detail
-
DEFAULT_SIZE
static final int DEFAULT_SIZE
The default initial size for a fixed-size child.- See Also:
- Constant Field Values
-
DEFAULT_MIN_SIZE
static final int DEFAULT_MIN_SIZE
The default minimum size for a fixed-size child.- See Also:
- Constant Field Values
-
-
Method Detail
-
getParent
com.google.gwt.user.client.ui.Widget getParent()
-
setup
void setup(com.google.gwt.user.client.ui.IsWidget eastOrNorthWidget, com.google.gwt.user.client.ui.IsWidget westOsSouthWidget, org.uberfire.workbench.model.CompassPosition fixedSizeComponent, Integer preferredSize, Integer preferredMinSize)Sets up this split panel's contents and divider location.- Parameters:
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.
-
clear
void clear()
-
getWidget
com.google.gwt.user.client.ui.Widget getWidget(org.uberfire.workbench.model.CompassPosition position)
Returns the widget on the given side of this splitter.- Parameters:
position- which widget to get- Returns:
- the widget on the given side of the splitter; null if that side is empty or the given position is not supported by this panel. (For example, NORTH is not a supported position of HorizontalSplitterPanel).
-
getFixedWidgetSize
int getFixedWidgetSize()
Gets the current pixel size of the component that doesn't expand/contract when the whole split pane's container is resized.
-
setFixedWidgetSize
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.
-
-