Class PropertyListenerDescriptor

  • All Implemented Interfaces:
    Adapter.ValueHolder, InteractionDescriptor, java.beans.PropertyChangeListener, java.util.EventListener

    public class PropertyListenerDescriptor
    extends PropertyInteractionDescriptor
    implements java.beans.PropertyChangeListener, Adapter.ValueHolder
    This subclass of PropertyInteractionDescriptor is simply an PID that is also the listener, and a ValueHolder. This means that this class directly listens to the source, and holds the value when the source value changes.
    • Constructor Detail

      • PropertyListenerDescriptor

        public PropertyListenerDescriptor()
      • PropertyListenerDescriptor

        public PropertyListenerDescriptor​(java.awt.Component source,
                                          PropertyAdapter adapter,
                                          java.lang.String sourceProp,
                                          QualifiedValue initValue)
    • Method Detail

      • getPath

        public java.lang.String getPath()
        Returns the path to the referenced property.
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent evt)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • setValue

        public void setValue​(java.lang.Object object)
        Kept for serialization
      • getInteractionListener

        public InteractionListener getInteractionListener()
        Returns the interaction listener (typically our adapter)
      • setInteractionListener

        public void setInteractionListener​(InteractionListener listener)
        Sets the interaction listener (typically our adapter)