|
|||||||||
| 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.VerticalSplitPanel
public final class 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 necessary.
| Constructor Summary | |
|---|---|
VerticalSplitPanel()
|
|
VerticalSplitPanel(VerticalSplitPanelImages images)
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. |
protected void |
onLoad()
A Panel's onLoad method will be called after all of its children are attached. |
protected void |
onUnload()
A Panel's onUnload method will be called before its children become detached themselves. |
boolean |
remove(Widget widget)
Removes a child widget. |
void |
setBottomWidget(Widget w)
Sets the widget in the bottom of the panel. |
void |
setHeight(java.lang.String height)
Sets the object's height. |
void |
setSplitPosition(java.lang.String pos)
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, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached, onAttach, onDetach, removeFromParent, setElement |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, 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()
public VerticalSplitPanel(VerticalSplitPanelImages images)
| 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 void setHeight(java.lang.String height)
UIObject
setHeight in class UIObjectheight - the object's new height, in CSS units (e.g. "10px", "1em")public final void setSplitPosition(java.lang.String pos)
pos - the new size of the left region in CSS units (e.g. "10px",
"1em")public final void setTopWidget(Widget w)
w - the widgetprotected void onLoad()
Panel
onLoad in class PanelWidget.onLoad()protected void onUnload()
Panel
onUnload in class PanelWidget.onLoad()public void add(Widget w)
PanelHow 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 HasWidgetsadd in class Panelw - the widget to be addedHasWidgets.add(Widget)public boolean isResizing()
true if the user is dragging the splitter,
false otherwisepublic java.util.Iterator iterator()
HasWidgetsIterator.remove().
public void onBrowserEvent(Event event)
EventListener
onBrowserEvent in interface EventListeneronBrowserEvent in class Widgetevent - the event receivedpublic boolean remove(Widget widget)
PanelHow 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 HasWidgetsremove in class Panelwidget - the widget to be removed
true 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 widget
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||