|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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
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 neccessary.
Constructor Summary | |
VerticalSplitPanel()
Creates an empty vertical split panel. |
Method Summary | |
void |
add(Widget w)
Adds a child widget. |
Widget |
getBottomWidget()
Gets the widget in the bottom of the panel. |
protected Element |
getElement(int index)
Gets the content element for the given index. |
protected Element |
getSplitElement()
Gets the element that is acting as the splitter. |
Widget |
getTopWidget()
Gets the widget in the top of the panel. |
protected Widget |
getWidget(int index)
Gets one of the contained widgets. |
boolean |
isResizing()
Indicates whether the split panel is being resized. |
java.util.Iterator |
iterator()
Gets an iterator for the contained widgets. |
void |
onBrowserEvent(Event event)
Fired whenever a browser event is received. |
boolean |
remove(Widget widget)
Removes a child widget. |
void |
setBottomWidget(Widget w)
Sets the widget in the bottom of the panel. |
void |
setSplitPosition(java.lang.String size)
Moves the position of the splitter. |
void |
setTopWidget(Widget w)
Sets the widget in the top of the panel. |
protected void |
setWidget(int index,
Widget w)
Sets one of the contained widgets. |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
adopt, clear, disown, onAttach, onDetach |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onLoad, onUnload, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getTitle, isVisible, isVisible, removeStyleName, resetStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VerticalSplitPanel()
Method Detail |
public final Widget getBottomWidget()
null
if there is not onepublic final Widget getTopWidget()
null
if there is not onepublic final void setBottomWidget(Widget w)
w
- the widgetpublic final void setSplitPosition(java.lang.String size)
com.google.gwt.user.client.ui.SplitPanel
size
- the new size of the left region in CSS units (e.g. "10px",
"1em")public final void setTopWidget(Widget w)
w
- the widgetpublic void add(Widget w)
HasWidgets
add
in interface HasWidgets
add
in class Panel
public boolean isResizing()
true
if the user is dragging the splitter,
false
otherwisepublic java.util.Iterator iterator()
HasWidgets
Iterator.remove()
.
public void onBrowserEvent(Event event)
EventListener
onBrowserEvent
in interface EventListener
onBrowserEvent
in class Widget
public boolean remove(Widget widget)
HasWidgets
widget
- the widget to be removed
true
if the widget 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 widget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |