public abstract class WAbstractSplitPanel extends FormComponent
form, INTERNAL_STATE_RECORD_PROPERTY
Constructor and Description |
---|
WAbstractSplitPanel() |
Modifier and Type | Method and Description |
---|---|
protected com.vaadin.ui.AbstractSplitPanel.SplitPositionChangeListener |
createSplitPositionListener() |
protected abstract com.vaadin.ui.AbstractSplitPanel |
createWidget()
Called once, to create the actual Vaadin component.
|
ListHolder |
getComponents()
Gets all components from this component group.
|
RecordHolder |
getFirstComponent()
See corresponding lsps api.
|
Decimal |
getMaxSplitPosition()
Currently used only in test.
|
EnumerationImpl |
getMaxSplitPositionUnit()
Currently used only in test.
|
Decimal |
getMinSplitPosition()
Currently used only in test.
|
EnumerationImpl |
getMinSplitPositionUnit()
Currently used only in test.
|
RecordHolder |
getSecondComponent()
See corresponding lsps api.
|
Decimal |
getSplitPosition()
Currently used only in test.
|
EnumerationImpl |
getSplitPositionUnit()
Currently used only in test.
|
com.vaadin.ui.AbstractSplitPanel |
getWidget()
Gets the Vaadin representation of this component.
|
boolean |
isLocked()
See corresponding lsps api.
|
boolean |
isSplitPositionReversed()
See corresponding lsps api.
|
protected void |
onSplitPositionChanged(float splitPosition,
com.vaadin.server.Sizeable.Unit splitPositionUnit,
boolean isReversed) |
protected void |
restoreInternalState(Map<String,Object> state)
Restores the UI state of this component which was previously written
by
FormComponent.writeInternalState(Map) . |
void |
setFirstComponent(RecordHolder child)
See corresponding lsps api.
|
void |
setLocked(boolean locked)
See corresponding lsps api.
|
void |
setMaxSplitPosition(Decimal position,
EnumerationImpl unit)
See corresponding lsps api.
|
void |
setMinSplitPosition(Decimal position,
EnumerationImpl unit)
See corresponding lsps api.
|
void |
setSecondComponent(RecordHolder child)
See corresponding lsps api.
|
void |
setSplitPosition(Decimal position,
EnumerationImpl unit)
See corresponding lsps api.
|
void |
setSplitPosition(Decimal position,
EnumerationImpl unit,
boolean reverse)
See corresponding lsps api.
|
protected void |
writeInternalState(Map<String,Object> state)
Writes the UI state of this component to the provided map.
|
addDataErrorMessage, addStyleName, attach, call, clearDataErrorMessages, createEvent, equals, getCaption, getComponentAlignment, getContextClickHandler, getCustomErrorMessage, getDataErrorMessages, getDescription, getExpandRatio, getHasChildrenAdapter, getHeight, getIcon, getModelingId, getNamespace, getStyleName, getTabIndex, getWidth, hashCode, isEnabled, isReadOnly, isVisible, localize, markAsDirty, preventGC, removeStyleName, restoreState, saveState, setCaption, setComponentAlignment, setContextClickHandler, setContextMenuItems, setCustomErrorMessage, setDescription, setEnabled, setExpandRatio, setHeight, setIcon, setReadOnly, setStyleName, setTabIndex, setVisible, setWidth, toString
protected abstract com.vaadin.ui.AbstractSplitPanel createWidget()
FormComponent
createWidget
in class FormComponent
public com.vaadin.ui.AbstractSplitPanel getWidget()
FormComponent
getWidget
in class FormComponent
public RecordHolder getFirstComponent()
public void setFirstComponent(RecordHolder child)
public RecordHolder getSecondComponent()
public void setSecondComponent(RecordHolder child)
public boolean isLocked()
public void setLocked(boolean locked)
public void setSplitPosition(Decimal position, EnumerationImpl unit)
public void setSplitPosition(Decimal position, EnumerationImpl unit, boolean reverse)
public Decimal getSplitPosition()
public EnumerationImpl getSplitPositionUnit()
public void setMinSplitPosition(Decimal position, EnumerationImpl unit)
public Decimal getMinSplitPosition()
public EnumerationImpl getMinSplitPositionUnit()
public void setMaxSplitPosition(Decimal position, EnumerationImpl unit)
public Decimal getMaxSplitPosition()
public EnumerationImpl getMaxSplitPositionUnit()
public boolean isSplitPositionReversed()
public ListHolder getComponents()
protected com.vaadin.ui.AbstractSplitPanel.SplitPositionChangeListener createSplitPositionListener()
protected void onSplitPositionChanged(float splitPosition, com.vaadin.server.Sizeable.Unit splitPositionUnit, boolean isReversed)
protected void writeInternalState(Map<String,Object> state)
FormComponent
Many UI attributes such as size, caption, etc. are not held in the records but are stored exclusively in the Vaadin components. In the records the getter/setter methods of such attributes directly delegate to the underlying component. For the purposes of the Save Document/Todo use case the state of such attributes has to be preserved.
Subclasses should override this method. The overriding method should call
super.writeInternalState(state)
to store the state form the super
class as well. The attributes should be written to the provided state
parameter. The type of the values written to the state
can only by
Java representation of LSPS types. That is java.util.Date
,
java.lang.String
, Decimal
, RecordHolder
,
ListHolder
, ... The name of the attributes stored in the map
should be unique and should not collide with the names used by any
of the superclass. It is the responsibility of the overridden method to ensure
that.
Subclasses overriding this method should also override
FormComponent.restoreInternalState(Map)
and restore the state written
by this method.
writeInternalState
in class FormComponent
state
- a map to which this method should write the component's UI state.FormComponent.restoreInternalState(Map)
,
FormComponent.saveState()
protected void restoreInternalState(Map<String,Object> state)
FormComponent
FormComponent.writeInternalState(Map)
.
Subclasses should override and call super.restoreInternalState(state);
restoreInternalState
in class FormComponent
state
- a map of attributes and their valuesFormComponent.writeInternalState(Map)
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.