javax.beans.binding
Class Binding.Parameter<T>

java.lang.Object
  extended by javax.beans.binding.Binding.Parameter<T>
Enclosing class:
Binding

public static class Binding.Parameter<T>
extends java.lang.Object

Parameter is used to provide additional information to configure a specific binding. See SwingBindingSupport for examples of this.

See Also:
Binding.setValue(javax.beans.binding.Binding.Parameter, T), Binding.getValue(javax.beans.binding.Binding.Parameter, T)

Constructor Summary
Binding.Parameter(java.lang.Class<T> valueClass, java.lang.String description)
          Creates a Parameter with the specified value Class.
 
Method Summary
 java.lang.String getDescription()
          Returns a description of this parameter.
 java.lang.Class<T> getValueClass()
          Returns the expected type for values associated with this key.
 java.lang.String toString()
          Returns a string representing the state of this Parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Binding.Parameter

public Binding.Parameter(java.lang.Class<T> valueClass,
                         java.lang.String description)
Creates a Parameter with the specified value Class.

Parameters:
valueClass - the expected type for values with this key
description - a description of this Parameter, used only for debugging
Throws:
java.lang.IllegalArgumentException - if valueClass or description null
Method Detail

getValueClass

public final java.lang.Class<T> getValueClass()
Returns the expected type for values associated with this key.

Returns:
the expected type for values associated with this key

getDescription

public final java.lang.String getDescription()
Returns a description of this parameter.

Returns:
the description of this parameter

toString

public java.lang.String toString()
Returns a string representing the state of this Parameter. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this Parameter