Package com.google.gwt.user.client.ui
Class HorizontalSplitPanel
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.HorizontalSplitPanel
- All Implemented Interfaces:
HasAttachHandlers,HasHandlers,EventListener,HasVisibility,HasWidgets,HasWidgets.ForIsWidget,IsWidget,Iterable<Widget>
Deprecated.
A panel that arranges two widgets in a single horizontal row and allows the
user to interactively change the proportion of the width dedicated to each of
the two widgets. Widgets contained within a
HorizontalSplitPanel
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.
CSS Style Rules
- .gwt-HorizontalSplitPanel { the panel itself }
- .gwt-HorizontalSplitPanel hsplitter { the splitter }
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.The default resources used by this widget.Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledNested 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
eventsToSinkFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated.Creates an empty horizontal split panel.Deprecated.replaced byHorizontalSplitPanel(Resources) -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds a widget to a pane in the HorizontalSplitPanel.Deprecated.Gets the widget in the pane that is at the end of the line direction for the layout.Deprecated.Gets the widget in the left side of the panel.Deprecated.Gets the widget in the right side of the panel.Deprecated.Gets the widget in the pane that is at the start of the line direction for the layout.protected voidonEnsureDebugId(String baseID) Deprecated.Affected Elements: -splitter = the container containing the splitter element. -right = the container on the right side of the splitter. -left = the container on the left side of 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.voidDeprecated.Sets the widget in the pane that is at the end of the line direction for the layout.voidDeprecated.Sets the widget in the left side of the panel.voidDeprecated.Sets the widget in the right side of the panel.voidsetSplitPosition(String pos) Deprecated.Moves the position of the splitter.voidDeprecated.Sets the widget in the pane that is at the start of the line direction for the layout.Methods inherited from class com.google.gwt.user.client.ui.SplitPanel
addAbsolutePositoning, addClipping, addScrolling, expandToFitParentUsingCssOffsets, expandToFitParentUsingPercentages, getElement, getOffsetHeight, getOffsetWidth, getSplitElement, getWidget, isResizing, iterator, onBrowserEvent, preventBoxStyles, remove, setBottom, setClassname, setHeight, setLeft, setRight, setTop, setWidget, setWidthMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeMethods 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, unsinkEventsMethods 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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
HorizontalSplitPanel
public HorizontalSplitPanel()Deprecated. -
HorizontalSplitPanel
Deprecated.replaced byHorizontalSplitPanel(Resources)Creates an empty horizontal split panel.- Parameters:
images- ImageBundle containing an image for the splitter's drag thumb
-
HorizontalSplitPanel
Deprecated.Creates an empty horizontal split panel.- Parameters:
resources- ClientBundle containing an image for the splitter's drag thumb
-
-
Method Details
-
add
Deprecated.Adds a widget to a pane in the HorizontalSplitPanel. The method will first attempt to add the widget to the left pane. If a widget is already in that position, it will attempt to add the widget to the right pane. If a widget is already in that position, an exception will be thrown, as a HorizontalSplitPanel can contain at most two widgets. Note that this method is bidi-sensitive. In an RTL environment, this method will first attempt to add the widget to the right pane, and if a widget is already in that position, it will attempt to add the widget to the left pane.- Specified by:
addin interfaceHasWidgets- Overrides:
addin classSplitPanel- Parameters:
w- the widget to be added- Throws:
IllegalStateException- See Also:
-
getEndOfLineWidget
Deprecated.Gets the widget in the pane that is at the end of the line direction for the layout. That is, in an RTL layout, gets the widget in the left pane, and in an LTR layout, gets the widget in the right pane.- Returns:
- the widget,
nullif there is not one.
-
getLeftWidget
Deprecated.Gets the widget in the left side of the panel.- Returns:
- the widget,
nullif there is not one.
-
getRightWidget
Deprecated.Gets the widget in the right side of the panel.- Returns:
- the widget,
nullif there is not one.
-
getStartOfLineWidget
Deprecated.Gets the widget in the pane that is at the start of the line direction for the layout. That is, in an RTL environment, gets the widget in the right pane, and in an LTR environment, gets the widget in the left pane.- Returns:
- the widget,
nullif there is not one.
-
setEndOfLineWidget
Deprecated.Sets the widget in the pane that is at the end of the line direction for the layout. That is, in an RTL layout, sets the widget in the left pane, and in and RTL layout, sets the widget in the right pane.- Parameters:
w- the widget
-
setLeftWidget
Deprecated.Sets the widget in the left side of the panel.- Parameters:
w- the widget
-
setRightWidget
Deprecated.Sets the widget in the right side of the panel.- Parameters:
w- the widget
-
setSplitPosition
Deprecated.Moves the position of the splitter. This method is not bidi-sensitive. The size specified is always the size of the left region, regardless of directionality.- Specified by:
setSplitPositionin classSplitPanel- Parameters:
pos- the new size of the left region in CSS units (e.g. "10px", "1em")
-
setStartOfLineWidget
Deprecated.Sets the widget in the pane that is at the start of the line direction for the layout. That is, in an RTL layout, sets the widget in the right pane, and in and RTL layout, sets the widget in the left pane.- Parameters:
w- the widget
-
onEnsureDebugId
Deprecated.Affected Elements:- -splitter = the container containing the splitter element.
- -right = the container on the right side of the splitter.
- -left = the container on the left side of the splitter.
- Overrides:
onEnsureDebugIdin classSplitPanel- Parameters:
baseID- the base ID used by the main element- See Also:
-
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
-
SplitLayoutPanelinstead, 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 aRootPanel