com.sun.java.swing.binding
Class SwingPropertyDelegateProvider

java.lang.Object
  extended by javax.beans.binding.ext.PropertyDelegateProvider
      extended by com.sun.java.swing.binding.SwingPropertyDelegateProvider

public final class SwingPropertyDelegateProvider
extends PropertyDelegateProvider


Field Summary
 
Fields inherited from class javax.beans.binding.ext.PropertyDelegateProvider
PREFERRED_BINDING_PROPERTY
 
Constructor Summary
SwingPropertyDelegateProvider()
           
 
Method Summary
 java.lang.Object createPropertyDelegate(java.lang.Object source, java.lang.String property)
          Returns the property delegate for the specified object.
 java.lang.Class<?> getPropertyDelegateClass(java.lang.Class<?> type)
          Returns the class the property delegate creates for the specified class.
 boolean providesDelegate(java.lang.Class<?> type, java.lang.String property)
          Returns whether this PropertyDelegateProvider provides a delegate for the Class and property pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingPropertyDelegateProvider

public SwingPropertyDelegateProvider()
Method Detail

providesDelegate

public boolean providesDelegate(java.lang.Class<?> type,
                                java.lang.String property)
Description copied from class: PropertyDelegateProvider
Returns whether this PropertyDelegateProvider provides a delegate for the Class and property pair.

Specified by:
providesDelegate in class PropertyDelegateProvider
Parameters:
type - the Class
property - the property

createPropertyDelegate

public java.lang.Object createPropertyDelegate(java.lang.Object source,
                                               java.lang.String property)
Description copied from class: PropertyDelegateProvider
Returns the property delegate for the specified object. PropertyDelegateFactory only invokes this method once for a particular provider and object pair. For example, consider the following:
   PropertyDelegateProvider myProvider = createProvider();
   PropertyDelegateFactory.registerPropertyDelegateProvider(
       Foo.class, "foo", myProvider);
   PropertyDelegateFactory.registerPropertyDelegateProvider(
       Foo.class, "value", myProvider);
 
Then createPropertyDelegate is only invoked once for each unique instance of Foo.

Specified by:
createPropertyDelegate in class PropertyDelegateProvider
Parameters:
source - the source to return the property delegate for
property - the property
Returns:
the property delegate, or null if the pair does not identify a legal property delegate

getPropertyDelegateClass

public java.lang.Class<?> getPropertyDelegateClass(java.lang.Class<?> type)
Description copied from class: PropertyDelegateProvider
Returns the class the property delegate creates for the specified class.

Specified by:
getPropertyDelegateClass in class PropertyDelegateProvider
Parameters:
type - the class to obtain the delegate class for
Returns:
the class of the property delegate