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.VerticalSplitPanel |
This class is deprecated.
Use SplitLayoutPanel
instead, but understand that it is
not a drop in replacement for this class. It requires standards
mode, and is most easily used under a RootLayoutPanel
(as
opposed to a RootPanel
A 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 a
VerticalSplitterPanel
will be automatically decorated with
scrollbars when necessary.
This widget will only work in quirks mode. If your application is in
Standards Mode, use SplitLayoutPanel
instead.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VerticalSplitPanel.Resources | The default resources used by this widget. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
replaced by
VerticalSplitPanel(Resources)
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a child widget.
| |||||||||||
Gets the widget in the bottom of the panel.
| |||||||||||
Gets the widget in the top of the panel.
| |||||||||||
Indicates whether the split panel is being resized.
| |||||||||||
Fired whenever a browser event is received.
| |||||||||||
Removes a child widget.
| |||||||||||
Sets the widget in the bottom of the panel.
| |||||||||||
Sets the object's height.
| |||||||||||
Moves the position of the splitter.
| |||||||||||
Sets the widget in the top of the panel.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the content element for the given index.
| |||||||||||
Gets the element that is acting as the splitter.
| |||||||||||
Gets one of the contained widgets.
| |||||||||||
Affected Elements:
| |||||||||||
This method is called immediately after a widget becomes attached to the
browser's document.
| |||||||||||
This method is called immediately before a widget will be detached from the
browser's document.
| |||||||||||
Sets one of the contained widgets.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.Panel
| |||||||||||
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
| |||||||||||
From interface
java.lang.Iterable
|
This constructor is deprecated.
replaced by VerticalSplitPanel(Resources)
Creates an empty vertical split panel.
Adds a child widget.
How to Override this Method
There are several important things that must take place in the correct order to properly add or insert a Widget to a Panel. Not all of these steps will be relevant to every Panel, but all of the steps must be considered.
adjustIndex(Widget, int)
.removeFromParent()
on the
Widget.WidgetCollection
at the appropriate index.adopt(Widget)
to finalize the add as the
very last step.w | the widget to be added |
---|
Gets the widget in the bottom of the panel.
null
if there is not one
Gets the widget in the top of the panel.
null
if there is not one
Indicates whether the split panel is being resized.
true
if the user is dragging the splitter,
false
otherwise
Fired whenever a browser event is received.
event | the event received |
---|
Removes a child widget.
How to Override this Method
There are several important things that must take place in the correct order to properly remove a Widget from a Panel. Not all of these steps will be relevant to every Panel, but all of the steps must be considered.
false
if it is not.orphan(Widget)
first while the child
Widget is still attached.WidgetCollection
.widget | the widget to be removed |
---|
true
if the child was present
Sets the widget in the bottom of the panel.
w | the widget |
---|
Sets the object's height. This height does not include decorations such as border, margin, and padding.
height | the object's new height, in CSS units (e.g. "10px", "1em") |
---|
Moves the position of the splitter.
pos | the new size of the left region in CSS units (e.g. "10px", "1em") |
---|
Sets the widget in the top of the panel.
w | the widget |
---|
Gets the content element for the given index.
index | the index of the element, only 0 and 1 are valid. |
---|
Gets the element that is acting as the splitter.
Gets one of the contained widgets.
index | the index of the widget, only 0 and 1 are valid. |
---|
Affected Elements:
baseID | the base ID used by the main element |
---|
This method is called immediately after a widget becomes attached to the browser's document.
This method is called immediately before a widget will be detached from the browser's document.
Sets one of the contained widgets.
index | the index, only 0 and 1 are valid |
---|---|
w | the widget |