com.togethersoft.openapi.util.nullObject
Class NullPropertyChangeSupport

java.lang.Object
  |
  +--java.beans.PropertyChangeSupport
        |
        +--com.togethersoft.openapi.util.nullObject.NullPropertyChangeSupport

public class NullPropertyChangeSupport
extends PropertyChangeSupport
implements NullObject

This class has private constructor and can't to be created by anyone

Author:
TogetherSoft
Since: Together 4.0

Field Summary
 private static PropertyChangeSupportmyInstance
           

Constructor Summary
 private NullPropertyChangeSupport()
           

Method Summary
 static PropertyChangeSupportaddPropertyChangeListener(Object source, PropertyChangeSupport oldSupport, PropertyChangeListener listener)
          Adds a property-change listenrer.
 static PropertyChangeSupportgetInstance()
          Returns an instance of NullPropertyChangeSupport.
 static booleanisNull(PropertyChangeSupport support)
          Tests if support is equal to the result of getInstance.
 static PropertyChangeSupportremovePropertyChangeListener(Object source, PropertyChangeSupport oldSupport, PropertyChangeListener listener)
          Remove listener.

Methods inherited from class java.beans.PropertyChangeSupport
addPropertyChangeListener, removePropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, hasListeners

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

myInstance

private static PropertyChangeSupport myInstance
Constructor Detail

NullPropertyChangeSupport

private NullPropertyChangeSupport()
Method Detail

addPropertyChangeListener

public static PropertyChangeSupport addPropertyChangeListener(Object source, PropertyChangeSupport oldSupport, PropertyChangeListener listener)
Adds a property-change listenrer.

getInstance

public static PropertyChangeSupport getInstance()
Returns an instance of NullPropertyChangeSupport.

isNull

public static boolean isNull(PropertyChangeSupport support)
Tests if support is equal to the result of getInstance.

removePropertyChangeListener

public static PropertyChangeSupport removePropertyChangeListener(Object source, PropertyChangeSupport oldSupport, PropertyChangeListener listener)
Remove listener. There is no way to check whether listener list is empty... Provided only for symmetry reasons

Association Links

to Class java.beans.PropertyChangeSupport