Class LayoutConstraintsPropertyChangeEvent<T extends Constraints,V>
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
com.globalmentor.beans.GenericPropertyChangeEvent<V>
io.guise.framework.component.layout.LayoutConstraintsPropertyChangeEvent<T,V>
- Type Parameters:
T
- The type of layout constraints associated with the component.V
- The type of property value.
- All Implemented Interfaces:
com.globalmentor.event.Event
,com.globalmentor.event.TargetedEvent
,Serializable
public class LayoutConstraintsPropertyChangeEvent<T extends Constraints,V>
extends com.globalmentor.beans.GenericPropertyChangeEvent<V>
An event indicating that a property of layout constraints changed. The source is always the layout object. The component and constraints are also provided.
- Author:
- Garret Wilson
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Methods inherited from class com.globalmentor.beans.GenericPropertyChangeEvent
getNewValue, getOldValue, getTarget
Methods inherited from class java.beans.PropertyChangeEvent
getPropagationId, getPropertyName, setPropagationId, toString
Methods inherited from class java.util.EventObject
getSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.globalmentor.event.Event
getSource
-
Constructor Details
-
LayoutConstraintsPropertyChangeEvent
public LayoutConstraintsPropertyChangeEvent(Layout<T> source, Component component, T constraints, String propertyName, V oldValue, V newValue) Source, component, constraint, property name, with old and new value constructor.- Parameters:
source
- The layout that fired the event.component
- The component for which a constraint value changed.constraints
- The constraints for which a value changed.propertyName
- The programmatic name of the property that was changed.oldValue
- The old value of the property, ornull
if no old value is not available.newValue
- The new value of the property, ornull
if the new value is not available.- Throws:
NullPointerException
- if the given component and/or constraints isnull
.
-
-
Method Details
-
getComponent
- Returns:
- The component for which a constraint value changed.
-
getConstraints
- Returns:
- The constraints for which a value changed.
-