|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Property
is a proxy to a piece of information about
a specific object.
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener l)
|
String |
getName()
Obtain the programmatic name of this property. |
Object |
getValue()
Obtain the value of the Property . |
Class |
getValueClass()
Determine the most general Java class of the objects which are values of this Property . |
boolean |
isEnabled()
Determine whether this Property is enabled. |
boolean |
isValueSettable()
Determine whether the value of this Property can
be set. |
boolean |
isValueSettable(Object value)
Check if the given value is an allowable argument to setValue(Object) . |
PropertyEditor |
newEditor()
Obtain a PropertyEditor instance suitable for
editing the value of ths Property object, as in a
"property sheet" view. |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener l)
|
void |
setValue(Object value)
Set the value of the Property . |
Methods inherited from interface org.favabeans.base.Feature |
getTarget |
Method Detail |
public String getName()
public Class getValueClass()
Property
. As a minimum, this
operation should return Object
.public boolean isEnabled()
Property
is enabled. a
"disabled" property is one which should be displayed in UI
elements, but in a state which indicates that it is
non-functional and/or non-applicable (e.g., by "graying out").true
if this Property
is
enabled; false
if it is disabled.public PropertyEditor newEditor()
PropertyEditor
instance suitable for
editing the value of ths Property object, as in a
"property sheet" view.PropertyEditor
.public Object getValue()
Property
.Property
.public boolean isValueSettable()
Property
can
be set. If this method returns false
, calls to
setValue
will return silently with no effect.true
if the value can be set;
false
otherwise.public boolean isValueSettable(Object value)
setValue(Object)
. This should be overridden to provide
end-user feedback regarding the correctness of a property
value, where such information is available to the
implementation.
The default behavior of this method is to return
true
, and throw an exception in setValue(Object)
if necessary.
value
- the candidate property value.false
if the candidate value is known to
be unacceptable; true
otherwise.public void setValue(Object value) throws PropertyValueException
Property
.value
- the desired new value of the Property
.PropertyValueException
- if there was a problem
setting the value, or if the value was not acceptable.public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |