C
- the source component typeV
- the value typepublic static class AbstractField.ComponentValueChangeEvent<C extends Component,V> extends ComponentEvent<C> implements HasValue.ValueChangeEvent<V>
source
Constructor and Description |
---|
ComponentValueChangeEvent(C source,
HasValue<?,V> hasValue,
V oldValue,
boolean fromClient)
Creates a new component value change event.
|
Modifier and Type | Method and Description |
---|---|
HasValue<?,V> |
getHasValue() |
V |
getOldValue()
Returns the value of the source before this value change event
occurred.
|
V |
getValue()
Returns the new value that triggered this value change event.
|
String |
toString() |
getSource, isFromClient, unregisterListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFromClient
public ComponentValueChangeEvent(C source, HasValue<?,V> hasValue, V oldValue, boolean fromClient)
source
- the source componenthasValue
- the HasValue from which the value originatesoldValue
- the old valuefromClient
- whether the value change originated from the clientpublic V getOldValue()
HasValue.ValueChangeEvent
getOldValue
in interface HasValue.ValueChangeEvent<V>
public V getValue()
HasValue.ValueChangeEvent
getValue
in interface HasValue.ValueChangeEvent<V>
public HasValue<?,V> getHasValue()
This is typically the same instance as ComponentEvent.getSource()
, but in
some cases the HasValue
implementation is separated from the
component implementation.
getHasValue
in interface HasValue.ValueChangeEvent<V>
public String toString()
toString
in class EventObject
Copyright © 2025. All rights reserved.