|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jage.property.Property
public abstract class Property
Base, abstract class for all properties.
Constructor Summary | |
---|---|
Property()
Constructor. |
Method Summary | |
---|---|
void |
addMonitor(AbstractPropertyMonitor monitor,
IPropertyMonitorRule rule)
Registers monitor for this property. |
abstract MetaProperty |
getMetaProperty()
Returns metadata for this property. |
protected PropertyValueMonitoringStrategy |
getMonitoringStrategy()
Creates monitoring strategy for this property. |
SimpleProperty |
getSimpleProperty()
Provides simple version of this property that does not have any monitors and additional stuff. |
abstract Object |
getValue()
Returns value of this property. |
protected void |
initializeMonitoringStrategy()
Initializes monitoring strategy for the property. |
void |
notifyMonitors(Object newValue)
Notify monitors about property change. |
void |
notifyMonitors(Object newValue,
boolean forceNotifying)
Notify monitors about property change. |
void |
objectDeleted(AbstractEvent event)
Informs the property that is has been deleted. |
void |
removeMonitor(AbstractPropertyMonitor monitor)
Unregisters monitor from this property. |
abstract void |
setValue(Object value)
Sets value of this property. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Property()
Method Detail |
---|
protected void initializeMonitoringStrategy()
protected PropertyValueMonitoringStrategy getMonitoringStrategy()
public abstract MetaProperty getMetaProperty()
public abstract Object getValue()
public abstract void setValue(Object value) throws InvalidPropertyOperationException
value
- new value.
InvalidPropertyOperationException
- property is read-only.public void addMonitor(AbstractPropertyMonitor monitor, IPropertyMonitorRule rule) throws InvalidPropertyOperationException
monitor
- monitor to register.rule
- monitor rule.
InvalidPropertyOperationException
- property is not monitorable.public void removeMonitor(AbstractPropertyMonitor monitor) throws InvalidPropertyOperationException
monitor
- monitor to unregister.
InvalidPropertyOperationException
- property is not monitorable.public void notifyMonitors(Object newValue)
newValue
- new value of the property.public void notifyMonitors(Object newValue, boolean forceNotifying)
newValue
- new value of the property.foceNotyfying
- if this parameter is true, monitors are notified even if the
new value is the same as the old one.public void objectDeleted(AbstractEvent event)
event
- public SimpleProperty getSimpleProperty()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |