|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.miginfocom.property.PropertyInfo<T>
public class PropertyInfo<T>
Static information about a property.
Sub classes should always be immutable since this class is typically cached.
BeanProperty| Constructor Summary | |
|---|---|
PropertyInfo(Transfer set,
Transfer get,
boolean modifiable,
FirePolicy fire,
java.util.List<? extends Validator<T>> validators,
java.lang.String[] groups,
boolean observable)
Constructor. |
|
| Method Summary | |
|---|---|
FirePolicy |
getFirePolicy()
The policy how to compare old and new values to know when to fire change events. |
Transfer |
getGetPolicy()
The policy for get operations. |
java.util.List<java.lang.String> |
getGroups()
The groups this property belongs to. |
Transfer |
getSetPolicy()
The policy for set operations. |
java.util.List<? extends Validator<T>> |
getValidators()
Returns the validators. |
boolean |
hasValidators()
Returns if there is at least one validator. |
boolean |
isGroup(java.lang.String s)
Returns if this property info describe a property belonging to s is |
boolean |
isModifiable()
If the value's content can be changes. |
boolean |
isObservable()
Returns if this property's value can be observed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyInfo(Transfer set,
Transfer get,
boolean modifiable,
FirePolicy fire,
java.util.List<? extends Validator<T>> validators,
java.lang.String[] groups,
boolean observable)
set - The policy for set operations. Never null.get - The policy for get operations. Never null.modifiable - If the value's content can be changes. For instance the add and remove for a CollectionProperty.fire - The policy how to compare old and new values to know when to fire change events. Never null.validators - Optinal validators. May be null if no vaidators.groups - Optinal goups. May be null if no vaidators.observable - If this property's value can be observed. If true then Property.addPropertyListener(net.java.properties.PropertyListener)
and Property.removePropertyListener(net.java.properties.PropertyListener) must be implmented.| Method Detail |
|---|
public final Transfer getSetPolicy()
null.public final Transfer getGetPolicy()
null.public final boolean isModifiable()
CollectionProperty.
public final boolean hasValidators()
public final java.util.List<? extends Validator<T>> getValidators()
unmodifiable.
null.public final java.util.List<java.lang.String> getGroups()
unmodifiable.
null.public final FirePolicy getFirePolicy()
null.public boolean isObservable()
true then
Property.addPropertyListener(net.java.properties.PropertyListener) and Property.removePropertyListener(net.java.properties.PropertyListener)
must be implmented. If this method return false those methods should return UnsupportedOperationException.
public final boolean isGroup(java.lang.String s)
s is
s - The name of the group to test. Not null.
s is
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||