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:
  • 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, or null if no old value is not available.
      newValue - The new value of the property, or null if the new value is not available.
      Throws:
      NullPointerException - if the given component and/or constraints is null.
  • Method Details

    • getComponent

      public Component getComponent()
      Returns:
      The component for which a constraint value changed.
    • getConstraints

      public T getConstraints()
      Returns:
      The constraints for which a value changed.