public abstract class AEntityProperty
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AEntityProperty() |
Modifier and Type | Method and Description |
---|---|
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 |
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 |
abstract void |
store() |
java.lang.String |
toString()
toString does exactly what you'd think it does. |
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
public void addPresentationListener(java.beans.PropertyChangeListener l)
addPresentationListener
add a presentation-listener
for this propertyl
- a PropertyChangeListener
valuepublic void removePresentationListener(java.beans.PropertyChangeListener l)
removePresentationListener
remove a presentation-listener
for this propertyl
- a PropertyChangeListener
valuepublic boolean isEditable()
isEditable
true if this property is editable, else falsepublic 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
garbageb
- 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 propertys
- a String
valuepublic void setValue(java.lang.Object o)
setValue
sets the value of the propertyo
- an Object
containing the valuepublic java.lang.String getName()
getName
returns the name of the propertyString
valuepublic java.lang.Object getValue()
getValue
return the value of the propertyObject
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
valuejava.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.Object
String
valuepublic abstract void store()
public java.lang.String getVersion()