Class BasicBean

java.lang.Object
org.gorpipe.querydialogs.BasicBean
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractListBean

public class BasicBean extends Object implements Serializable
Bean that provides basic support for Java beans. Classes that want to provide bean support can either extend this class or copy the relevant code.
See Also:
  • Constructor Details

    • BasicBean

      public BasicBean()
  • Method Details

    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
      Adds a PropertyChangeListener to the listener list. The listener is registered for all bound properties of this class.

      Note that if this Component is inheriting a bound property, then no event will be fired in response to a change in the inherited property.

      If listener is null, no exception is thrown and no action is performed.

      Parameters:
      listener - the property change listener to be added
      See Also:
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
      Removes a PropertyChangeListener from the listener list. This method should be used to remove PropertyChangeListeners that were registered for all bound properties of this class.

      If listener is null, no exception is thrown and no action is performed.

      Parameters:
      listener - the PropertyChangeListener to be removed
      See Also:
    • getPropertyChangeListeners

      public PropertyChangeListener[] getPropertyChangeListeners()
      Returns an array of all the property change listeners registered on this component.
      Returns:
      all of this component's PropertyChangeListeners or an empty array if no property change listeners are currently registered
      Since:
      1.4
      See Also:
    • addPropertyChangeListener

      public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
      Adds a PropertyChangeListener to the listener list for a specific property.

      Note that if this Component is inheriting a bound property, then no event will be fired in response to a change in the inherited property.

      If propertyName or listener is null, no exception is thrown and no action is taken.

      Parameters:
      propertyName - one of the property names listed above
      listener - the property change listener to be added
      See Also:
    • removePropertyChangeListener

      public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
      Removes a PropertyChangeListener from the listener list for a specific property. This method should be used to remove PropertyChangeListeners that were registered for a specific bound property.

      If propertyName or listener is null, no exception is thrown and no action is taken.

      Parameters:
      propertyName - a valid property name
      listener - the PropertyChangeListener to be removed
      See Also:
    • getPropertyChangeListeners

      public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
      Returns an array of all the listeners which have been associated with the named property.
      Parameters:
      propertyName - a valid property name
      Returns:
      all of the PropertyChangeListeners associated with the named property; if no such listeners have been added or if propertyName is null, an empty array is returned
      See Also:
    • firePropertyChange

      protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
      Support for reporting bound property changes for Object properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.
      Parameters:
      propertyName - the property whose value has changed
      oldValue - the property's previous value
      newValue - the property's new value
    • firePropertyChange

      protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
      Support for reporting bound property changes for boolean properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.
      Parameters:
      propertyName - the property whose value has changed
      oldValue - the property's previous value
      newValue - the property's new value
    • firePropertyChange

      protected void firePropertyChange(String propertyName, int oldValue, int newValue)
      Support for reporting bound property changes for integer properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.
      Parameters:
      propertyName - the property whose value has changed
      oldValue - the property's previous value
      newValue - the property's new value
    • firePropertyChange

      protected void firePropertyChange(String propertyName, byte oldValue, byte newValue)
      Reports a bound property change.
      Parameters:
      propertyName - the programmatic name of the property that was changed
      oldValue - the old value of the property (as a byte)
      newValue - the new value of the property (as a byte)
      See Also:
    • firePropertyChange

      protected void firePropertyChange(String propertyName, char oldValue, char newValue)
      Reports a bound property change.
      Parameters:
      propertyName - the programmatic name of the property that was changed
      oldValue - the old value of the property (as a char)
      newValue - the new value of the property (as a char)
      See Also:
    • firePropertyChange

      protected void firePropertyChange(String propertyName, short oldValue, short newValue)
      Reports a bound property change.
      Parameters:
      propertyName - the programmatic name of the property that was changed
      oldValue - the old value of the property (as a short)
      newValue - the old value of the property (as a short)
      See Also:
    • firePropertyChange

      protected void firePropertyChange(String propertyName, long oldValue, long newValue)
      Reports a bound property change.
      Parameters:
      propertyName - the programmatic name of the property that was changed
      oldValue - the old value of the property (as a long)
      newValue - the new value of the property (as a long)
      Since:
      1.5
      See Also:
    • firePropertyChange

      protected void firePropertyChange(String propertyName, float oldValue, float newValue)
      Reports a bound property change.
      Parameters:
      propertyName - the programmatic name of the property that was changed
      oldValue - the old value of the property (as a float)
      newValue - the new value of the property (as a float)
      Since:
      1.5
      See Also:
    • firePropertyChange

      protected void firePropertyChange(String propertyName, double oldValue, double newValue)
      Reports a bound property change.
      Parameters:
      propertyName - the programmatic name of the property that was changed
      oldValue - the old value of the property (as a double)
      newValue - the new value of the property (as a double)
      See Also:
    • firePropertyChange

      protected void firePropertyChange(PropertyChangeEvent event)
      Reports a bound property change.
      Parameters:
      event - the event reporting the property change.
      See Also: