|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.face.AttributeValue
public class AttributeValue
AttributeValues manage the value of a specific Attribute of a Face.
| Constructor Summary | |
|---|---|
AttributeValue(Face face,
Attribute attr)
Creates a new attribute for the specified face with the specified name. |
|
| Method Summary | |
|---|---|
void |
copyTo(AttributeValue target)
Copies this attributes value to the specified attribute. |
protected Face |
getFace()
Gets the face to which this attribute belongs. |
protected java.lang.Object |
getInheritedValue()
Gets the inherited value of the attribute. |
java.lang.Object |
getValue()
Gets the value of this attribute. |
boolean |
isInherited()
Checks if the value is inherited. |
(package private) boolean |
isNullValue()
Checks if this attributes value is null. |
(package private) void |
notifyParentAttributeChanged(Attribute parentAttribute,
java.lang.Object oldValue,
java.lang.Object newValue)
Invoked to notify this attribute that the same attribute on the face's parent has changed. |
void |
setInherited(boolean inherit)
Configures this attribute to inherit when null. |
void |
setValue(java.lang.Object value)
Sets the value of the attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
AttributeValue(Face face,
Attribute attr)
face - the face to which the attribute belongs.attr - the attribute name.| Method Detail |
|---|
public void copyTo(AttributeValue target)
target - the attribute to copy to.public java.lang.Object getValue()
protected java.lang.Object getInheritedValue()
public void setValue(java.lang.Object value)
value - the new value of the attribute.public boolean isInherited()
true if the value will inherit
when null, false otherwise.public void setInherited(boolean inherit)
null.
inherit - true to inherit
when null, false otherwise.protected Face getFace()
void notifyParentAttributeChanged(Attribute parentAttribute,
java.lang.Object oldValue,
java.lang.Object newValue)
parentAttribute - the attribute of the faces parent.oldValue - the old valuenewValue - the new value.boolean isNullValue()
true if the value is null, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||