putClientProperty(Object key, Object value) Add an arbitrary key/value "client property" to this component.
The get/putClientProperty methods provide access to
a small per-instance hashtable.
Returns the value of the property with the specified key. Only
properties added with putClientProperty will return
a non-null value.
the value of this property or null See Also:GenericObjectTreeNode.putClientProperty
Add an arbitrary key/value "client property" to this component.
The get/putClientProperty methods provide access to
a small per-instance hashtable. Callers can use get/putClientProperty
to annotate components that were created by another module, e.g. a
layout manager might store per child constraints this way. For example:
componentA.putClientProperty("to the left of", componentB);
If value is null this method will remove the property.
Changes to client properties are reported with PropertyChange
events. The name of the property (for the sake of PropertyChange
events) is key.toString().
The clientProperty dictionary is not intended to support large
scale extensions to SComponent nor should be it considered an
alternative to subclassing when designing a new component.
See Also:GenericObjectTreeNode.getClientProperty