public static class AbstractSplitPanel.SplitPositionChangeEvent extends Component.Event implements HasUserOriginated
source
Constructor and Description |
---|
SplitPositionChangeEvent(Component source,
boolean userOriginated,
float oldPosition,
Sizeable.Unit oldUnit,
float position,
Sizeable.Unit unit)
Creates a split position change event.
|
Modifier and Type | Method and Description |
---|---|
float |
getOldSplitPosition()
Returns the position of the split before this change event occurred.
|
Sizeable.Unit |
getOldSplitPositionUnit()
Returns the position unit of the split before this change event
occurred.
|
float |
getSplitPosition()
Returns the new split position that triggered this change event.
|
Sizeable.Unit |
getSplitPositionUnit()
Returns the new split position unit that triggered this change event.
|
boolean |
isUserOriginated()
Returns whether this event was triggered by user interaction, on the
client side, or programmatically, on the server side.
|
getComponent
getConnector
getSource, toString
public SplitPositionChangeEvent(Component source, boolean userOriginated, float oldPosition, Sizeable.Unit oldUnit, float position, Sizeable.Unit unit)
source
- split panel from which the event originatesuserOriginated
- true if the event is directly based on user actionsoldPosition
- old split positionoldUnit
- old unit of split positionposition
- new split positionunit
- new split position unitpublic float getSplitPosition()
public Sizeable.Unit getSplitPositionUnit()
public float getOldSplitPosition()
public Sizeable.Unit getOldSplitPositionUnit()
public boolean isUserOriginated()
isUserOriginated
in interface HasUserOriginated
true
if this event originates from the client,
false
otherwise.Copyright © 2018 Vaadin Ltd. All rights reserved.