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 HorizontalSplitPanel extends SplitPanel
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.
SplitLayoutPanel
Modifier and Type | Class and Description |
---|---|
static interface |
HorizontalSplitPanel.Resources
Deprecated.
The default resources used by this widget.
|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
eventsToSink
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR
Constructor and Description |
---|
HorizontalSplitPanel()
Deprecated.
|
HorizontalSplitPanel(HorizontalSplitPanel.Resources resources)
Deprecated.
Creates an empty horizontal split panel.
|
HorizontalSplitPanel(HorizontalSplitPanelImages images)
Deprecated.
replaced by
HorizontalSplitPanel(Resources) |
Modifier and Type | Method and Description |
---|---|
void |
add(Widget w)
Deprecated.
Adds a widget to a pane in the HorizontalSplitPanel.
|
Widget |
getEndOfLineWidget()
Deprecated.
Gets the widget in the pane that is at the end of the line direction for
the layout.
|
Widget |
getLeftWidget()
Deprecated.
Gets the widget in the left side of the panel.
|
Widget |
getRightWidget()
Deprecated.
Gets the widget in the right side of the panel.
|
Widget |
getStartOfLineWidget()
Deprecated.
Gets the widget in the pane that is at the start of the line direction for
the layout.
|
protected void |
onEnsureDebugId(java.lang.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 void |
onLoad()
Deprecated.
This method is called immediately after a widget becomes attached to the
browser's document.
|
(package private) void |
onSplitterResize(int x,
int y)
Deprecated.
Called on each mouse drag event as the user is dragging the splitter.
|
(package private) void |
onSplitterResizeStarted(int x,
int y)
Deprecated.
Called when the user starts dragging the splitter.
|
protected void |
onUnload()
Deprecated.
This method is called immediately before a widget will be detached from the
browser's document.
|
void |
setEndOfLineWidget(Widget w)
Deprecated.
Sets the widget in the pane that is at the end of the line direction for
the layout.
|
void |
setLeftWidget(Widget w)
Deprecated.
Sets the widget in the left side of the panel.
|
void |
setRightWidget(Widget w)
Deprecated.
Sets the widget in the right side of the panel.
|
void |
setSplitPosition(java.lang.String pos)
Deprecated.
Moves the position of the splitter.
|
void |
setStartOfLineWidget(Widget w)
Deprecated.
Sets the widget in the pane that is at the start of the line direction for
the layout.
|
addAbsolutePositoning, addClipping, addScrolling, expandToFitParentUsingCssOffsets, expandToFitParentUsingPercentages, getElement, getOffsetHeight, getOffsetWidth, getSplitElement, getWidget, isResizing, iterator, onBrowserEvent, preventBoxStyles, remove, setBottom, setClassname, setHeight, setLeft, setRight, setTop, setWidget, setWidth
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, replaceElement, setLayoutData, setParent, 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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public HorizontalSplitPanel()
@Deprecated public HorizontalSplitPanel(HorizontalSplitPanelImages images)
HorizontalSplitPanel(Resources)
images
- ImageBundle containing an image for the splitter's drag thumbpublic HorizontalSplitPanel(HorizontalSplitPanel.Resources resources)
resources
- ClientBundle containing an image for the splitter's drag
thumbpublic void add(Widget w)
add
in interface HasWidgets
add
in class SplitPanel
w
- the widget to be addedjava.lang.IllegalStateException
HasWidgets.add(Widget)
public Widget getEndOfLineWidget()
null
if there is not one.public Widget getLeftWidget()
null
if there is not one.public Widget getRightWidget()
null
if there is not one.public Widget getStartOfLineWidget()
null
if there is not one.public void setEndOfLineWidget(Widget w)
w
- the widgetpublic void setLeftWidget(Widget w)
w
- the widgetpublic void setRightWidget(Widget w)
w
- the widgetpublic void setSplitPosition(java.lang.String pos)
setSplitPosition
in class SplitPanel
pos
- the new size of the left region in CSS units (e.g. "10px",
"1em")public void setStartOfLineWidget(Widget w)
w
- the widgetprotected void onEnsureDebugId(java.lang.String baseID)
onEnsureDebugId
in class SplitPanel
baseID
- the base ID used by the main elementUIObject.onEnsureDebugId(String)
protected void onLoad()
Widget
protected void onUnload()
Widget
void onSplitterResize(int x, int y)
SplitPanel
onSplitterResize
in class SplitPanel
x
- the x coordinate of the mouse relative to the panel's extenty
- the y coordinate of the mosue relative to the panel's extentvoid onSplitterResizeStarted(int x, int y)
SplitPanel
onSplitterResizeStarted
in class SplitPanel
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