Class ActionsMenuCreator.StateActionListener

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

    static class ActionsMenuCreator.StateActionListener
    extends java.lang.Object
    implements java.beans.PropertyChangeListener
    Class which listens state action state changes and updates CheckBox component according changes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.swing.AbstractButton component
      Component which should be updated.
      (package private) java.beans.PropertyChangeListener sup
      Support which handles other changes.
    • Constructor Summary

      Constructors 
      Constructor Description
      StateActionListener​(java.beans.PropertyChangeListener sup, javax.swing.AbstractButton component)
      Creates new listener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void propertyChange​(java.beans.PropertyChangeEvent e)
      Handles MDStateAction.STATE property change event.
      • Methods inherited from class java.lang.Object

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

      • sup

        java.beans.PropertyChangeListener sup
        Support which handles other changes.
      • component

        javax.swing.AbstractButton component
        Component which should be updated.
    • Constructor Detail

      • StateActionListener

        StateActionListener​(java.beans.PropertyChangeListener sup,
                            javax.swing.AbstractButton component)
        Creates new listener.
        Parameters:
        sup - support which handles other changes.
        component - Component which should be updated.
    • Method Detail

      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent e)
        Handles MDStateAction.STATE property change event. and updates component.
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
        Parameters:
        e - PropertyChangeEvent event.