Package com.google.gwt.user.client.ui
Class VerticalSplitPanel
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SplitPanel
-
- com.google.gwt.user.client.ui.VerticalSplitPanel
-
- All Implemented Interfaces:
HasAttachHandlers,HasHandlers,EventListener,HasVisibility,HasWidgets,HasWidgets.ForIsWidget,IsWidget,java.lang.Iterable<Widget>
@Deprecated public final class VerticalSplitPanel extends SplitPanel
Deprecated.UseSplitLayoutPanelinstead, but understand that it is not a drop in replacement for this class. It requires standards mode, and is most easily used under aRootLayoutPanel(as opposed to aRootPanelA panel that arranges two widgets in a single vertical column and allows the user to interactively change the proportion of the height dedicated to each of the two widgets. Widgets contained within aVerticalSplitterPanelwill be automatically decorated with scrollbars when necessary.This widget will only work in quirks mode. If your application is in Standards Mode, use
SplitLayoutPanelinstead.
CSS Style Rules
- .gwt-VerticalSplitPanel { the panel itself }
- .gwt-VerticalSplitPanel vsplitter { the splitter }
- See Also:
SplitLayoutPanel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVerticalSplitPanel.ResourcesDeprecated.The default resources used by this widget.-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
-
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
-
-
Field Summary
-
Fields inherited from class com.google.gwt.user.client.ui.Widget
eventsToSink
-
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR
-
-
Constructor Summary
Constructors Constructor Description VerticalSplitPanel()Deprecated.VerticalSplitPanel(VerticalSplitPanel.Resources resources)Deprecated.VerticalSplitPanel(VerticalSplitPanelImages images)Deprecated.replaced byVerticalSplitPanel(Resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WidgetgetBottomWidget()Deprecated.Gets the widget in the bottom of the panel.WidgetgetTopWidget()Deprecated.Gets the widget in the top of the panel.protected voidonEnsureDebugId(java.lang.String baseID)Deprecated.Affected Elements: -splitter = the container containing the splitter element. -top = the container above the splitter. -bottom = the container below the splitter.protected voidonLoad()Deprecated.This method is called immediately after a widget becomes attached to the browser's document.(package private) voidonSplitterResize(int x, int y)Deprecated.Called on each mouse drag event as the user is dragging the splitter.(package private) voidonSplitterResizeStarted(int x, int y)Deprecated.Called when the user starts dragging the splitter.protected voidonUnload()Deprecated.This method is called immediately before a widget will be detached from the browser's document.voidsetBottomWidget(Widget w)Deprecated.Sets the widget in the bottom of the panel.voidsetHeight(java.lang.String height)Deprecated.Sets the object's height.voidsetSplitPosition(java.lang.String pos)Deprecated.Moves the position of the splitter.voidsetTopWidget(Widget w)Deprecated.Sets the widget in the top of the panel.-
Methods inherited from class com.google.gwt.user.client.ui.SplitPanel
add, addAbsolutePositoning, addClipping, addScrolling, expandToFitParentUsingCssOffsets, expandToFitParentUsingPercentages, getElement, getOffsetHeight, getOffsetWidth, getSplitElement, getWidget, isResizing, iterator, onBrowserEvent, preventBoxStyles, remove, setBottom, setClassname, setHeight, setLeft, setRight, setTop, setWidget, setWidth
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Constructor Detail
-
VerticalSplitPanel
public VerticalSplitPanel()
Deprecated.
-
VerticalSplitPanel
@Deprecated public VerticalSplitPanel(VerticalSplitPanelImages images)
Deprecated.replaced byVerticalSplitPanel(Resources)Creates an empty vertical split panel.
-
VerticalSplitPanel
public VerticalSplitPanel(VerticalSplitPanel.Resources resources)
Deprecated.
-
-
Method Detail
-
getBottomWidget
public Widget getBottomWidget()
Deprecated.Gets the widget in the bottom of the panel.- Returns:
- the widget,
nullif there is not one
-
getTopWidget
public Widget getTopWidget()
Deprecated.Gets the widget in the top of the panel.- Returns:
- the widget,
nullif there is not one
-
setBottomWidget
public void setBottomWidget(Widget w)
Deprecated.Sets the widget in the bottom of the panel.- Parameters:
w- the widget
-
setHeight
public void setHeight(java.lang.String height)
Deprecated.Description copied from class:UIObjectSets the object's height. This height does not include decorations such as border, margin, and padding.
-
setSplitPosition
public void setSplitPosition(java.lang.String pos)
Deprecated.Description copied from class:SplitPanelMoves the position of the splitter.- Specified by:
setSplitPositionin classSplitPanel- Parameters:
pos- the new size of the left region in CSS units (e.g. "10px", "1em")
-
setTopWidget
public void setTopWidget(Widget w)
Deprecated.Sets the widget in the top of the panel.- Parameters:
w- the widget
-
onEnsureDebugId
protected void onEnsureDebugId(java.lang.String baseID)
Deprecated.Affected Elements:- -splitter = the container containing the splitter element.
- -top = the container above the splitter.
- -bottom = the container below the splitter.
- Overrides:
onEnsureDebugIdin classSplitPanel- Parameters:
baseID- the base ID used by the main element- See Also:
UIObject.onEnsureDebugId(String)
-
onLoad
protected void onLoad()
Deprecated.Description copied from class:WidgetThis method is called immediately after a widget becomes attached to the browser's document.
-
onUnload
protected void onUnload()
Deprecated.Description copied from class:WidgetThis method is called immediately before a widget will be detached from the browser's document.
-
onSplitterResize
void onSplitterResize(int x, int y)Deprecated.Description copied from class:SplitPanelCalled on each mouse drag event as the user is dragging the splitter.- Specified by:
onSplitterResizein classSplitPanel- Parameters:
x- the x coordinate of the mouse relative to the panel's extenty- the y coordinate of the mosue relative to the panel's extent
-
onSplitterResizeStarted
void onSplitterResizeStarted(int x, int y)Deprecated.Description copied from class:SplitPanelCalled when the user starts dragging the splitter.- Specified by:
onSplitterResizeStartedin classSplitPanel- Parameters:
x- the x coordinate of the mouse relative to the panel's extenty- the y coordinate of the mouse relative to the panel's extent
-
-