Class PropChangeHolder<T>


  • public class PropChangeHolder<T>
    extends java.lang.Object
    Little helper class that holds an old value of something for property-change listener purposes. Typically this is something calculated - i.e. the old value isn't obvious
    • Constructor Summary

      Constructors 
      Constructor Description
      PropChangeHolder​(java.awt.Component component, java.lang.String propertyName)  
      PropChangeHolder​(java.awt.Component component, java.lang.String propertyName, T originalValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getValue()  
      void valueChanged​(T newValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropChangeHolder

        public PropChangeHolder​(java.awt.Component component,
                                java.lang.String propertyName)
      • PropChangeHolder

        public PropChangeHolder​(java.awt.Component component,
                                java.lang.String propertyName,
                                T originalValue)
    • Method Detail

      • valueChanged

        public void valueChanged​(T newValue)
      • getValue

        public T getValue()