|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.progeeks.meta.IsolatedMutator
public class IsolatedMutator
A PropertyMutator implementation that wraps a value without requiring a parent MetaObject thereby isolating the value for separate mutation. This is useful for cases where you want to edit a value with no ties to a parent object.
| Field Summary | |
|---|---|
static java.lang.String |
PROP_SELF
|
| Constructor Summary | |
|---|---|
IsolatedMutator(PropertyInfo info,
java.lang.Object value)
|
|
IsolatedMutator(PropertyType type,
java.lang.Object value)
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the specified PropertyChangeListener to this mutator. |
MetaObject |
getParentObject()
Returns the object that contains this property. |
PropertyInfo |
getPropertyInfo()
Returns the info associated with this property. |
java.lang.String |
getPropertyName()
Returns the name of this property. |
java.lang.Object |
getValue()
Returns the value of this property. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the specified PropertyChangeListener from this mutator. |
void |
setValue(java.lang.Object value)
Resets the value of this property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROP_SELF
| Constructor Detail |
|---|
public IsolatedMutator(PropertyType type,
java.lang.Object value)
public IsolatedMutator(PropertyInfo info,
java.lang.Object value)
| Method Detail |
|---|
public java.lang.String getPropertyName()
getPropertyName in interface PropertyMutatorpublic MetaObject getParentObject()
getParentObject in interface PropertyMutatorpublic PropertyInfo getPropertyInfo()
getPropertyInfo in interface PropertyMutatorpublic java.lang.Object getValue()
getValue in interface PropertyMutatorpublic void setValue(java.lang.Object value)
setValue in interface PropertyMutatorpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener in interface PropertyMutatorpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener in interface PropertyMutator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||