org.openbp.common.generic.description
Class DisplayTreeObjectImpl
java.lang.Object
org.openbp.common.generic.description.DescriptionObjectImpl
org.openbp.common.generic.description.DisplayObjectImpl
org.openbp.common.generic.description.DisplayTreeObjectImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, Copyable, DescriptionObject, Displayable, DisplayObject, DisplayTreeObject, Validatable
public class DisplayTreeObjectImpl
- extends DisplayObjectImpl
- implements DisplayTreeObject
An object that has a name, a display name and a description and a leaf node flag for
display in tree-like structures.
- Author:
- Heiko Erhardt
- See Also:
- Serialized Form
|
Method Summary |
void |
copyFrom(java.lang.Object source,
int copyMode)
Copies the values of the source object to this object. |
boolean |
isLeaf()
Gets the flag if the object is a leaf node. |
void |
setLeaf(boolean leaf)
Sets the flag if the object is a leaf node. |
| Methods inherited from class org.openbp.common.generic.description.DescriptionObjectImpl |
clone, compareTo, getDescription, getDescriptionEscape, getDescriptionText, getName, setDescription, setDescriptionEscape, setName, toString, validate |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
DisplayTreeObjectImpl
public DisplayTreeObjectImpl()
copyFrom
public void copyFrom(java.lang.Object source,
int copyMode)
throws java.lang.CloneNotSupportedException
- Copies the values of the source object to this object.
- Specified by:
copyFrom in interface Copyable- Overrides:
copyFrom in class DisplayObjectImpl
- Parameters:
source - The source object. Must be of the same type as this object.copyMode - Determines if a deep copy, a first level copy or a shallow copy is to be
performed. See the constants of the org.openbp.common.generic.description.Copyable class.
- Throws:
java.lang.CloneNotSupportedException - If the cloning of one of the contained objects failed
isLeaf
public boolean isLeaf()
- Gets the flag if the object is a leaf node.
- Specified by:
isLeaf in interface DisplayTreeObject
setLeaf
public void setLeaf(boolean leaf)
- Sets the flag if the object is a leaf node.
- Specified by:
setLeaf in interface DisplayTreeObject
Copyright © 2011. All Rights Reserved.