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
,java.io.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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
getComponent()
T
getConstraints()
-
Methods inherited from class com.globalmentor.beans.GenericPropertyChangeEvent
getNewValue, getOldValue, getTarget
-
Methods inherited from class java.beans.PropertyChangeEvent
getPropagationId, getPropertyName, setPropagationId, toString
-
-
-
-
Constructor Detail
-
LayoutConstraintsPropertyChangeEvent
public LayoutConstraintsPropertyChangeEvent(Layout<T> source, Component component, T constraints, java.lang.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:
java.lang.NullPointerException
- if the given component and/or constraints isnull
.
-
-