|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.esrf.tangoatk.core.Property
public class Property
Property is a class which responsible for holding
information about a given Property of a given IEntity. Properties have
the following, uh, properties
stored, a presentation
propertychange event is fired, so that the listeners of this property
can update its values.
| Field Summary | |
|---|---|
protected boolean |
editable
|
protected java.lang.String |
name
|
protected java.lang.Object |
oldValue
|
protected IEntity |
parent
|
protected java.beans.PropertyChangeSupport |
propChanges
|
protected boolean |
specified
|
protected java.lang.Object |
value
|
| Constructor Summary | |
|---|---|
Property()
|
|
Property(IEntity parent,
java.lang.String name,
java.lang.Object value,
boolean editable)
Creates a new Property instance. |
|
| Method Summary | |
|---|---|
void |
addPresentationListener(java.beans.PropertyChangeListener l)
addPresentationListener add a presentation-listener
for this property |
int |
getIntValue()
getIntValue returns the value of the property as an
int. |
java.lang.String |
getName()
getName returns the name of the property |
java.lang.String |
getPresentation()
getPresentation returns a nicely formated
String representation of this property. |
java.lang.String |
getStringValue()
getStringValue returns the value of the property as a
string. |
java.lang.Object |
getValue()
getValue return the value of the property |
java.lang.String |
getVersion()
|
boolean |
isEditable()
isEditable true if this property is editable, else false |
boolean |
isSpecified()
isSpecified returns true if this property's value is
specified, false if not. |
void |
refresh()
|
void |
removePresentationListener(java.beans.PropertyChangeListener l)
removePresentationListener remove a presentation-listener
for this property |
void |
setName(java.lang.String s)
setName sets the name of the property |
void |
setSpecified(boolean b)
setSpecified lets you set the specified property of
this property. |
void |
setValue(java.lang.Object o)
setValue sets the value of the property |
void |
setValueFromString(java.lang.String stringValue)
Transforms a String into the right corresponding Object to set the value of the Property |
void |
store()
store asks the IEntity of this
property to store its properies. |
java.lang.String |
toString()
toString does exactly what you'd think it does. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected java.lang.Object value
protected java.lang.Object oldValue
protected boolean editable
protected IEntity parent
protected boolean specified
protected java.beans.PropertyChangeSupport propChanges
| Constructor Detail |
|---|
public Property()
public Property(IEntity parent,
java.lang.String name,
java.lang.Object value,
boolean editable)
Property instance.
parent - the IEntity this property belongs toname - the name of this propertyvalue - the value of this property, specified a an objecteditable - true if this property is editable| Method Detail |
|---|
public void addPresentationListener(java.beans.PropertyChangeListener l)
addPresentationListener add a presentation-listener
for this property
l - a PropertyChangeListener valuepublic void removePresentationListener(java.beans.PropertyChangeListener l)
removePresentationListener remove a presentation-listener
for this property
l - a PropertyChangeListener valuepublic void refresh()
public boolean isEditable()
isEditable true if this property is editable, else false
public void setSpecified(boolean b)
setSpecified lets you set the specified property of
this property. Setting it to true means that the
value of this property is meaningfull, false mean it's
garbage
b - a boolean valuepublic boolean isSpecified()
isSpecified returns true if this property's value is
specified, false if not.
boolean valuepublic void setName(java.lang.String s)
setName sets the name of the property
s - a String valuepublic void setValue(java.lang.Object o)
setValue sets the value of the property
o - an Object containing the valuepublic void setValueFromString(java.lang.String stringValue)
stringValue - The String to transform. This String should look like what
getPresentation() can returnsetValue(Object),
getPresentation()public java.lang.String getName()
getName returns the name of the property
String valuepublic java.lang.Object getValue()
getValue return the value of the property
Object valuepublic java.lang.String getStringValue()
getStringValue returns the value of the property as a
string.
String valuepublic int getIntValue()
getIntValue returns the value of the property as an
int.
int value
java.lang.NumberFormatException - if the value of the property is not an
int.public java.lang.String getPresentation()
getPresentation returns a nicely formated
String representation of this property. To be used by
the widgets that show the value of this property.
String valuepublic java.lang.String toString()
toString does exactly what you'd think it does.
toString in class java.lang.ObjectString valuepublic void store()
store asks the IEntity of this
property to store its properies. This method also results in a
propertyChange event for the presentation property.
public java.lang.String getVersion()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||