Class TestBean


  • public class TestBean
    extends java.lang.Object
    The test bean has an attribute that fires a bean property event when the attribute value is changed.
    • Constructor Detail

      • TestBean

        public TestBean​(java.lang.String name)
        Create a new test bean.
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name.
        Returns:
        The name.
      • setName

        public void setName​(java.lang.String name)
        Set the name.
        Parameters:
        name - The name.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.
      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener listener)
        Add a PropertyChangeListener to the listener list. The listener is registered for all properties.
        Parameters:
        listener - The PropertyChangeListener to be added.
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener listener)
        Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
        Parameters:
        listener - The PropertyChangeListener to be removed.
      • addPropertyChangeListener

        public void addPropertyChangeListener()
        Spurious method to test reflective access.
      • removePropertyChangeListener

        public void removePropertyChangeListener()
        Spurious method to test reflective access.
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.lang.Object listener)
        Spurious method to test reflective access.
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.lang.Object listener)
        Spurious method to test reflective access.
      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener listener,
                                              java.lang.Object arg2)
        Spurious method to test reflective access.
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener listener,
                                                 java.lang.Object arg2)
        Spurious method to test reflective access.
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.lang.Object arg0,
                                              PropertyChangeListener listener)
        Spurious method to test reflective access.
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.lang.Object arg0,
                                                 PropertyChangeListener listener)
        Spurious method to test reflective access.