public abstract class VAbstractSplitPanel
extends com.google.gwt.user.client.ui.ComplexPanel
| Modifier and Type | Class and Description |
|---|---|
static interface |
VAbstractSplitPanel.SplitterMoveHandler
Event handler interface for moving the splitter element.
|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME
Default classname for this widget.
|
ApplicationConnection |
client
For internal use only.
|
List<String> |
componentStyleNames
For internal use only.
|
String |
maximumPosition
For internal use only.
|
String |
minimumPosition
For internal use only.
|
protected int |
origScrollTop
Deprecated.
this value is no longer used or updated by the framework
|
String |
position
The current position of the split handle in either percentages or pixels
|
protected com.google.gwt.dom.client.Element |
scrolledContainer
Deprecated.
this element is no longer used or updated by the framework
|
com.google.gwt.dom.client.Element |
splitter
For internal use only.
|
| Constructor and Description |
|---|
VAbstractSplitPanel()
Constructs a base widget for a SplitPanel component.
|
VAbstractSplitPanel(Orientation orientation)
Constructs a base widget for a SplitPanel component with the given
orientation.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
constructDom()
Constructs the DOM structure for this widget.
|
protected com.google.gwt.dom.client.Element |
getFirstContainer()
Gets the first region's container element.
|
com.google.gwt.user.client.ui.Widget |
getFirstWidget()
Returns the widget in the first region, if any.
|
protected com.google.gwt.dom.client.Element |
getSecondContainer()
Gets the second region's container element.
|
com.google.gwt.user.client.ui.Widget |
getSecondWidget()
Returns the widget in the second region, if any.
|
String |
getSplitterPosition()
For internal use only.
|
boolean |
isEnabled()
Returns whether this split panel is enabled or not.
|
void |
makeScrollable()
Ensures the panels are scrollable e.g.
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
onMouseDown(com.google.gwt.user.client.Event event)
Handle initiating content resize and moving of the split position when
clicking the splitter with a mouse.
|
void |
onMouseMove(com.google.gwt.user.client.Event event)
Handle updating the splitter position when dragging the splitter with a
mouse.
|
void |
onMouseUp(com.google.gwt.user.client.Event event)
Handle concluding the content resize when dragging the splitter with a
mouse.
|
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
setEnabled(boolean enabled)
Sets this split panel enabled.
|
void |
setFirstWidget(com.google.gwt.user.client.ui.Widget w)
For internal use only.
|
void |
setLocked(boolean newValue)
For internal use only.
|
void |
setPositionReversed(boolean reversed)
For internal use only.
|
void |
setSecondWidget(com.google.gwt.user.client.ui.Widget w)
For internal use only.
|
void |
setSplitPosition(String pos)
Sets the position of the splitter element.
|
void |
setStylenames()
For internal use only.
|
protected abstract void |
startResize()
Called when starting splitter drag resize of contents.
|
protected abstract void |
stopResize()
Called when stopping splitter drag resize of contents.
|
void |
updateSizes()
For internal use only.
|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeadd, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String CLASSNAME
public final com.google.gwt.dom.client.Element splitter
public List<String> componentStyleNames
public ApplicationConnection client
public String position
For internal use only. May be removed or replaced in the future.
public String maximumPosition
public String minimumPosition
@Deprecated protected com.google.gwt.dom.client.Element scrolledContainer
@Deprecated protected int origScrollTop
public VAbstractSplitPanel()
public VAbstractSplitPanel(Orientation orientation)
orientation - the orientation to useprotected void constructDom()
public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.ComplexPanelpublic void setLocked(boolean newValue)
newValue - true if split position should be locked, false
otherwisepublic void setPositionReversed(boolean reversed)
reversed - true if split position should be measured from the
second region, false (default) if from the the first
regionpublic void setSplitPosition(String pos)
pos - the required position as either percentage or pixelspublic void updateSizes()
public void setFirstWidget(com.google.gwt.user.client.ui.Widget w)
w - the widget to set to the first region or null to
remove previously set widgetpublic com.google.gwt.user.client.ui.Widget getFirstWidget()
null if not setpublic void setSecondWidget(com.google.gwt.user.client.ui.Widget w)
w - the widget to set to the second region or null to
remove previously set widgetpublic com.google.gwt.user.client.ui.Widget getSecondWidget()
null if not setpublic void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetpublic void onMouseDown(com.google.gwt.user.client.Event event)
event - the browser eventprotected abstract void startResize()
protected abstract void stopResize()
protected com.google.gwt.dom.client.Element getFirstContainer()
protected com.google.gwt.dom.client.Element getSecondContainer()
public void onMouseMove(com.google.gwt.user.client.Event event)
event - the browser eventpublic void onMouseUp(com.google.gwt.user.client.Event event)
event - the browser eventpublic String getSplitterPosition()
public void setStylenames()
public void setEnabled(boolean enabled)
enabled - true if enabled, false if disabledpublic boolean isEnabled()
true if enabled, false if disabledpublic void makeScrollable()
For internal use only. May be removed or replaced in the future.
Copyright © 2023 Vaadin Ltd. All rights reserved.