Package com.google.gwt.user.client.ui
Class SplitPanel
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
- All Implemented Interfaces:
- HasAttachHandlers,- HasHandlers,- EventListener,- HasVisibility,- HasWidgets,- HasWidgets.ForIsWidget,- IsWidget,- Iterable<Widget>
- Direct Known Subclasses:
- HorizontalSplitPanel,- VerticalSplitPanel
Deprecated.
Abstract base class for 
HorizontalSplitPanel and
 VerticalSplitPanel.- 
Nested Class SummaryNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObjectUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgetsHasWidgets.ForIsWidget
- 
Field SummaryFields inherited from class com.google.gwt.user.client.ui.WidgeteventsToSinkFields inherited from class com.google.gwt.user.client.ui.UIObjectDEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR
- 
Constructor SummaryConstructorsConstructorDescriptionSplitPanel(Element mainElem, Element splitElem, Element headElem, Element tailElem) Deprecated.Initializes the split panel.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated.Adds a child widget.(package private) static voidaddAbsolutePositoning(Element elem) Deprecated.Sets an elements positioning to absolute.(package private) static final voidaddClipping(Element elem) Deprecated.Adds clipping to an element.(package private) static final voidaddScrolling(Element elem) Deprecated.Adds as-needed scrolling to an element.(package private) static final voidDeprecated.Sizes and element to consume the full area of its parent using the CSS properties left, right, top, and bottom.(package private) static final voidDeprecated.Sizes an element to consume the full areas of its parent using 100% width and height.protected ElementgetElement(int index) Deprecated.Gets the content element for the given index.(package private) static final intgetOffsetHeight(Element elem) Deprecated.Returns the offsetHeight element property.(package private) static final intgetOffsetWidth(Element elem) Deprecated.Returns the offsetWidth element property.protected ElementDeprecated.Gets the element that is acting as the splitter.protected WidgetgetWidget(int index) Deprecated.Gets one of the contained widgets.booleanDeprecated.Indicates whether the split panel is being resized.iterator()Deprecated.Gets an iterator for the contained widgets.voidonBrowserEvent(Event event) Deprecated.Fired whenever a browser event is received.protected voidonEnsureDebugId(String baseID) Deprecated.Affected Elements: -splitter = the container containing the splitter element.(package private) abstract voidonSplitterResize(int x, int y) Deprecated.Called on each mouse drag event as the user is dragging the splitter.(package private) abstract voidonSplitterResizeStarted(int x, int y) Deprecated.Called when the user starts dragging the splitter.(package private) static final ElementpreventBoxStyles(Element elem) Deprecated.Adds zero or none CSS values for padding, margin and border to prevent stylesheet overrides.booleanDeprecated.Removes a child widget.(package private) static voidDeprecated.Convenience method to set bottom offset of an element.(package private) static final voidsetClassname(Element elem, String className) Deprecated.Sets the elements css class name.(package private) static final voidDeprecated.Convenience method to set the height of an element.(package private) static final voidDeprecated.Convenience method to set the left offset of an element.(package private) static final voidDeprecated.Convenience method to set the right offset of an element.abstract voidsetSplitPosition(String size) Deprecated.Moves the position of the splitter.(package private) static final voidDeprecated.Convenience method to set the top offset of an element.protected final voidDeprecated.Sets one of the contained widgets.(package private) static final voidDeprecated.Convenience method to set the width of an element.Methods inherited from class com.google.gwt.user.client.ui.Paneladd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeMethods inherited from class com.google.gwt.user.client.ui.WidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObjectaddStyleDependentName, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
SplitPanelDeprecated.Initializes the split panel.- Parameters:
- mainElem- the root element for the split panel
- splitElem- the element that acts as the splitter
- headElem- the element to contain the top or left most widget
- tailElem- the element to contain the bottom or right most widget
 
 
- 
- 
Method Details- 
addAbsolutePositoningDeprecated.Sets an elements positioning to absolute.- Parameters:
- elem- the element
 
- 
addClippingDeprecated.Adds clipping to an element.- Parameters:
- elem- the element
 
- 
addScrollingDeprecated.Adds as-needed scrolling to an element.- Parameters:
- elem- the element
 
- 
expandToFitParentUsingCssOffsetsDeprecated.Sizes and element to consume the full area of its parent using the CSS properties left, right, top, and bottom. This method is used for all browsers except IE6/7.- Parameters:
- elem- the element
 
- 
expandToFitParentUsingPercentagesDeprecated.Sizes an element to consume the full areas of its parent using 100% width and height. This method is used on IE6/7 where CSS offsets don't work reliably.- Parameters:
- elem- the element
 
- 
getOffsetHeightDeprecated.Returns the offsetHeight element property.- Parameters:
- elem- the element
- Returns:
- the offsetHeight property
 
- 
getOffsetWidthDeprecated.Returns the offsetWidth element property.- Parameters:
- elem- the element
- Returns:
- the offsetWidth property
 
- 
preventBoxStylesDeprecated.Adds zero or none CSS values for padding, margin and border to prevent stylesheet overrides. Returns the element for convenience to support builder pattern.- Parameters:
- elem- the element
- Returns:
- the element
 
- 
setBottomDeprecated.Convenience method to set bottom offset of an element.- Parameters:
- elem- the element
- size- a CSS length value for bottom
 
- 
setClassnameDeprecated.Sets the elements css class name.- Parameters:
- elem- the element
- className- the class name
 
- 
setHeightDeprecated.Convenience method to set the height of an element.- Parameters:
- elem- the element
- height- a CSS length value for the height
 
- 
setLeftDeprecated.Convenience method to set the left offset of an element.- Parameters:
- elem- the element
- left- a CSS length value for left
 
- 
setRightDeprecated.Convenience method to set the right offset of an element.- Parameters:
- elem- the element
- right- a CSS length value for right
 
- 
setTopDeprecated.Convenience method to set the top offset of an element.- Parameters:
- elem- the element
- top- a CSS length value for top
 
- 
setWidthDeprecated.Convenience method to set the width of an element.- Parameters:
- elem- the element
- width- a CSS length value for the width
 
- 
addDeprecated.Description copied from class:PanelAdds a child widget.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. - Validate: Perform any sanity checks to ensure the Panel can accept a new Widget. Examples: checking for a valid index on insertion; checking that the Panel is not full if there is a max capacity.
- Adjust for Reinsertion: Some Panels need to handle the case
 where the Widget is already a child of this Panel. Example: when performing
 a reinsert, the index might need to be adjusted to account for the Widget's
 removal. See ComplexPanel.adjustIndex(Widget, int).
- Detach Child: Remove the Widget from its existing parent, if
 any. Most Panels will simply call Widget.removeFromParent()on the Widget.
- Logical Attach: Any state variables of the Panel should be
 updated to reflect the addition of the new Widget. Example: the Widget is
 added to the Panel's WidgetCollectionat the appropriate index.
- Physical Attach: The Widget's Element must be physically attached to the Panel's Element, either directly or indirectly.
- Adopt: Call Panel.adopt(Widget)to finalize the add as the very last step.
 - Specified by:
- addin interface- HasWidgets
- Overrides:
- addin class- Panel
- Parameters:
- w- the widget to be added
- See Also:
 
- 
isResizingpublic boolean isResizing()Deprecated.Indicates whether the split panel is being resized.- Returns:
- trueif the user is dragging the splitter,- falseotherwise
 
- 
iteratorDeprecated.Description copied from interface:HasWidgetsGets an iterator for the contained widgets. This iterator is required to implementIterator.remove().
- 
onBrowserEventDeprecated.Description copied from interface:EventListenerFired whenever a browser event is received.- Specified by:
- onBrowserEventin interface- EventListener
- Overrides:
- onBrowserEventin class- Widget
- Parameters:
- event- the event received
 
- 
removeDeprecated.Description copied from class:PanelRemoves a child widget.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. - Validate: Make sure this Panel is actually the parent of the
 child Widget; return falseif it is not.
- Orphan: Call Panel.orphan(Widget)first while the child Widget is still attached.
- Physical Detach: Adjust the DOM to account for the removal of the child Widget. The Widget's Element must be physically removed from the DOM.
- Logical Detach: Update the Panel's state variables to reflect
 the removal of the child Widget. Example: the Widget is removed from the
 Panel's WidgetCollection.
 - Specified by:
- removein interface- HasWidgets
- Specified by:
- removein class- Panel
- Parameters:
- widget- the widget to be removed
- Returns:
- trueif the child was present
 
- Validate: Make sure this Panel is actually the parent of the
 child Widget; return 
- 
setSplitPositionDeprecated.Moves the position of the splitter.- Parameters:
- size- the new size of the left region in CSS units (e.g. "10px", "1em")
 
- 
getElementDeprecated.Gets the content element for the given index.- Parameters:
- index- the index of the element, only 0 and 1 are valid.
- Returns:
- the element
 
- 
getSplitElementDeprecated.Gets the element that is acting as the splitter.- Returns:
- the element
 
- 
getWidgetDeprecated.Gets one of the contained widgets.- Parameters:
- index- the index of the widget, only 0 and 1 are valid.
- Returns:
- the widget
 
- 
onEnsureDebugIdDeprecated.Affected Elements:- -splitter = the container containing the splitter element.
 - Overrides:
- onEnsureDebugIdin class- UIObject
- Parameters:
- baseID- the base ID used by the main element
- See Also:
 
- 
setWidgetDeprecated.Sets one of the contained widgets.- Parameters:
- index- the index, only 0 and 1 are valid
- w- the widget
 
- 
onSplitterResizeabstract void onSplitterResize(int x, int y) Deprecated.Called on each mouse drag event as the user is dragging the splitter.- Parameters:
- x- the x coordinate of the mouse relative to the panel's extent
- y- the y coordinate of the mosue relative to the panel's extent
 
- 
onSplitterResizeStartedabstract void onSplitterResizeStarted(int x, int y) Deprecated.Called when the user starts dragging the splitter.- Parameters:
- x- the x coordinate of the mouse relative to the panel's extent
- y- 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