Package io.jmix.ui.component
Class SplitPanel.SplitPositionChangeEvent
java.lang.Object
java.util.EventObject
io.jmix.ui.component.SplitPanel.SplitPositionChangeEvent
- All Implemented Interfaces:
HasUserOriginated
,Serializable
- Enclosing interface:
- SplitPanel
public static class SplitPanel.SplitPositionChangeEvent
extends EventObject
implements HasUserOriginated
Event that indicates a change in SplitPanel's splitter position.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionSplitPositionChangeEvent
(SplitPanel splitPanel, float previousPosition, float newPosition) SplitPositionChangeEvent
(Object source, float previousPosition, float newPosition, boolean userOriginated) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
boolean
Returns whether this event was triggered by user interaction or programmatically.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
SplitPositionChangeEvent
-
SplitPositionChangeEvent
public SplitPositionChangeEvent(Object source, float previousPosition, float newPosition, boolean userOriginated)
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
getPreviousPosition
public float getPreviousPosition() -
getNewPosition
public float getNewPosition() -
isUserOriginated
public boolean isUserOriginated()Description copied from interface:HasUserOriginated
Returns whether this event was triggered by user interaction or programmatically.- Specified by:
isUserOriginated
in interfaceHasUserOriginated
- Returns:
true
if this event originates by user interaction,false
otherwise.
-