Class LayoutConstraintsPropertyChangeEvent<T extends Constraints,​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
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      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.
    • 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
      • 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 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, 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:
        java.lang.NullPointerException - if the given component and/or constraints is null.
    • Method Detail

      • 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.