Package com.vaadin.client.ui
Class VAbstractSplitPanel
- 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.ComplexPanel
-
- com.vaadin.client.ui.VAbstractSplitPanel
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IndexedPanel
,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,Iterable<com.google.gwt.user.client.ui.Widget>
- Direct Known Subclasses:
VSplitPanelHorizontal
,VSplitPanelVertical
public abstract class VAbstractSplitPanel extends com.google.gwt.user.client.ui.ComplexPanel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VAbstractSplitPanel.SplitterMoveHandler
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASSNAME
ApplicationConnection
client
For internal use only.List<String>
componentStyleNames
For internal use only.boolean
immediate
For internal use only.String
maximumPosition
For internal use only.String
minimumPosition
For internal use only.protected int
origScrollTop
String
position
The current position of the split handle in either percentages or pixelsprotected com.google.gwt.dom.client.Element
scrolledContainer
com.google.gwt.dom.client.Element
splitter
For internal use only.
-
Constructor Summary
Constructors Constructor Description VAbstractSplitPanel()
VAbstractSplitPanel(Orientation orientation)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
constructDom()
protected com.google.gwt.dom.client.Element
getFirstContainer()
Gets the first containercom.google.gwt.user.client.ui.Widget
getFirstWidget()
protected com.google.gwt.dom.client.Element
getSecondContainer()
Gets the second containercom.google.gwt.user.client.ui.Widget
getSecondWidget()
String
getSplitterPosition()
For internal use only.boolean
isEnabled()
void
makeScrollable()
Ensures the panels are scrollable eg.void
onBrowserEvent(com.google.gwt.user.client.Event event)
void
onMouseDown(com.google.gwt.user.client.Event event)
void
onMouseMove(com.google.gwt.user.client.Event event)
void
onMouseUp(com.google.gwt.user.client.Event event)
boolean
remove(com.google.gwt.user.client.ui.Widget w)
void
setEnabled(boolean 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)
void
setStylenames()
For internal use only.protected abstract void
startResize()
Called when starting drag resizeprotected abstract void
stopResize()
Called when stopping drag resizevoid
updateSizes()
For internal use only.-
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Field Detail
-
CLASSNAME
public static final String CLASSNAME
- See Also:
- Constant Field Values
-
splitter
public final com.google.gwt.dom.client.Element splitter
For internal use only. May be removed or replaced in the future.
-
componentStyleNames
public List<String> componentStyleNames
For internal use only. May be removed or replaced in the future.
-
client
public ApplicationConnection client
For internal use only. May be removed or replaced in the future.
-
immediate
public boolean immediate
For internal use only. May be removed or replaced in the future.
-
position
public String position
The current position of the split handle in either percentages or pixelsFor internal use only. May be removed or replaced in the future.
-
maximumPosition
public String maximumPosition
For internal use only. May be removed or replaced in the future.
-
minimumPosition
public String minimumPosition
For internal use only. May be removed or replaced in the future.
-
scrolledContainer
protected com.google.gwt.dom.client.Element scrolledContainer
-
origScrollTop
protected int origScrollTop
-
-
Constructor Detail
-
VAbstractSplitPanel
public VAbstractSplitPanel()
-
VAbstractSplitPanel
public VAbstractSplitPanel(Orientation orientation)
-
-
Method Detail
-
constructDom
protected void constructDom()
-
remove
public boolean remove(com.google.gwt.user.client.ui.Widget w)
- Specified by:
remove
in interfacecom.google.gwt.user.client.ui.HasWidgets
- Overrides:
remove
in classcom.google.gwt.user.client.ui.ComplexPanel
-
setLocked
public void setLocked(boolean newValue)
For internal use only. May be removed or replaced in the future.
-
setPositionReversed
public void setPositionReversed(boolean reversed)
For internal use only. May be removed or replaced in the future.
-
setSplitPosition
public void setSplitPosition(String pos)
-
updateSizes
public void updateSizes()
For internal use only. May be removed or replaced in the future.
-
setFirstWidget
public void setFirstWidget(com.google.gwt.user.client.ui.Widget w)
For internal use only. May be removed or replaced in the future.
-
getFirstWidget
public com.google.gwt.user.client.ui.Widget getFirstWidget()
-
setSecondWidget
public void setSecondWidget(com.google.gwt.user.client.ui.Widget w)
For internal use only. May be removed or replaced in the future.
-
getSecondWidget
public com.google.gwt.user.client.ui.Widget getSecondWidget()
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event)
- Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.google.gwt.user.client.ui.Widget
-
onMouseDown
public void onMouseDown(com.google.gwt.user.client.Event event)
-
startResize
protected abstract void startResize()
Called when starting drag resize- Since:
- 7.5.1
-
stopResize
protected abstract void stopResize()
Called when stopping drag resize- Since:
- 7.5.1
-
getFirstContainer
protected com.google.gwt.dom.client.Element getFirstContainer()
Gets the first container- Returns:
- the firstContainer
- Since:
- 7.5.1
-
getSecondContainer
protected com.google.gwt.dom.client.Element getSecondContainer()
Gets the second container- Returns:
- the secondContainer
- Since:
- 7.5.1
-
onMouseMove
public void onMouseMove(com.google.gwt.user.client.Event event)
-
onMouseUp
public void onMouseUp(com.google.gwt.user.client.Event event)
-
getSplitterPosition
public String getSplitterPosition()
For internal use only. May be removed or replaced in the future.
-
setStylenames
public void setStylenames()
For internal use only. May be removed or replaced in the future.
-
setEnabled
public void setEnabled(boolean enabled)
-
isEnabled
public boolean isEnabled()
-
makeScrollable
public void makeScrollable()
Ensures the panels are scrollable eg. after style name changesFor internal use only. May be removed or replaced in the future.
-
-