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
@Deprecated public final class VerticalSplitPanel extends Panel
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.
SplitLayoutPanel
Modifier and Type | Class and Description |
---|---|
static interface |
VerticalSplitPanel.Resources
Deprecated.
The default resources used by this widget.
|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
VerticalSplitPanel()
Deprecated.
|
VerticalSplitPanel(VerticalSplitPanel.Resources resources)
Deprecated.
|
VerticalSplitPanel(VerticalSplitPanelImages images)
Deprecated.
replaced by
VerticalSplitPanel(Resources) |
Modifier and Type | Method and Description |
---|---|
void |
add(Widget w)
Deprecated.
Adds a child widget.
|
Widget |
getBottomWidget()
Deprecated.
Gets the widget in the bottom of the panel.
|
protected Element |
getElement(int index)
Deprecated.
Gets the content element for the given index.
|
protected Element |
getSplitElement()
Deprecated.
Gets the element that is acting as the splitter.
|
Widget |
getTopWidget()
Deprecated.
Gets the widget in the top of the panel.
|
protected Widget |
getWidget(int index)
Deprecated.
Gets one of the contained widgets.
|
boolean |
isResizing()
Deprecated.
Indicates whether the split panel is being resized.
|
Iterator<Widget> |
iterator()
Deprecated.
Gets an iterator for the contained widgets.
|
void |
onBrowserEvent(Event event)
Deprecated.
Fired whenever a browser event is received.
|
protected void |
onEnsureDebugId(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 void |
onLoad()
Deprecated.
This method is called immediately after a widget becomes attached to the
browser's document.
|
protected void |
onUnload()
Deprecated.
This method is called immediately before a widget will be detached from the
browser's document.
|
boolean |
remove(Widget widget)
Deprecated.
Removes a child widget.
|
void |
setBottomWidget(Widget w)
Deprecated.
Sets the widget in the bottom of the panel.
|
void |
setHeight(String height)
Deprecated.
Sets the object's height.
|
void |
setSplitPosition(String pos)
Deprecated.
Moves the position of the splitter.
|
void |
setTopWidget(Widget w)
Deprecated.
Sets the widget in the top of the panel.
|
protected void |
setWidget(int index,
Widget w)
Deprecated.
Sets one of the contained widgets.
|
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
public VerticalSplitPanel()
@Deprecated public VerticalSplitPanel(VerticalSplitPanelImages images)
VerticalSplitPanel(Resources)
public VerticalSplitPanel(VerticalSplitPanel.Resources resources)
public Widget getBottomWidget()
null
if there is not onepublic Widget getTopWidget()
null
if there is not onepublic void setBottomWidget(Widget w)
w
- the widgetpublic void setHeight(String height)
UIObject
public void setSplitPosition(String pos)
pos
- the new size of the left region in CSS units (e.g. "10px",
"1em")public void setTopWidget(Widget w)
w
- the widgetprotected void onEnsureDebugId(String baseID)
baseID
- the base ID used by the main elementUIObject.onEnsureDebugId(String)
protected void onLoad()
Widget
protected void onUnload()
Widget
public void add(Widget w)
Panel
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.
ComplexPanel.adjustIndex(Widget, int)
.Widget.removeFromParent()
on the
Widget.WidgetCollection
at the appropriate index.Panel.adopt(Widget)
to finalize the add as the
very last step.add
in interface HasWidgets
add
in class Panel
w
- the widget to be addedHasWidgets.add(Widget)
public boolean isResizing()
true
if the user is dragging the splitter,
false
otherwisepublic Iterator<Widget> iterator()
HasWidgets
Iterator.remove()
.public void onBrowserEvent(Event event)
EventListener
onBrowserEvent
in interface EventListener
onBrowserEvent
in class Widget
event
- the event receivedpublic boolean remove(Widget widget)
Panel
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.Panel.orphan(Widget)
first while the child
Widget is still attached.WidgetCollection
.remove
in interface HasWidgets
remove
in class Panel
widget
- the widget to be removedtrue
if the child was presentprotected Element getElement(int index)
index
- the index of the element, only 0 and 1 are valid.protected Element getSplitElement()
protected Widget getWidget(int index)
index
- the index of the widget, only 0 and 1 are valid.protected final void setWidget(int index, Widget w)
index
- the index, only 0 and 1 are validw
- the widgetCopyright © 2018. All rights reserved.