Class LayoutFactory.SelectionPropertyAdaptSupport

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.util.EventListener
    Enclosing class:
    LayoutFactory

    public static class LayoutFactory.SelectionPropertyAdaptSupport
    extends java.lang.Object
    implements java.beans.PropertyChangeListener
    Implementation for a PropertyChangeListener that adpapts a wrapped JComponent to the following properties.

    • background color
    • foreground color (text)
    • font

    Author:
    Achim Westermann
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.ref.WeakReference<javax.swing.AbstractButton> m_delegate
      The model to adapt selection upon.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void propertyChange​(java.beans.PropertyChangeEvent evt)  
      • Methods inherited from class java.lang.Object

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

      • m_delegate

        protected java.lang.ref.WeakReference<javax.swing.AbstractButton> m_delegate
        The model to adapt selection upon.
    • Constructor Detail

      • SelectionPropertyAdaptSupport

        public SelectionPropertyAdaptSupport​(javax.swing.AbstractButton delegate)
        Parameters:
        delegate - The component to adapt the properties on.
    • Method Detail

      • propertyChange

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