|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.propertybrowser.nodes.AbstractNode
org.openbp.jaspira.propertybrowser.nodes.ObjectNode
public class ObjectNode
An object descriptor node is either the root node of an property browser tree,
represents an object contained in a collection (see CollectionNode) or the value of a complex type property.
| Field Summary |
|---|
| Fields inherited from class org.openbp.jaspira.propertybrowser.nodes.AbstractNode |
|---|
children, object, parentNode, propertyBrowser |
| Fields inherited from interface org.openbp.common.generic.Copyable |
|---|
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW |
| Constructor Summary | |
|---|---|
ObjectNode(ObjectDescriptor objectDescriptor)
Constructor for regular object nodes. |
|
ObjectNode(PropertyDescriptor propertyDescriptor)
Constructor for object nodes describing a complex property. |
|
| Method Summary | |
|---|---|
protected void |
addProperty(PropertyDescriptor pd)
Adds a property descriptor as a PropertyNode to a specified
GroupNode according to the group name. |
void |
copyFrom(java.lang.Object source,
int copyMode)
Copies the values of the source object to this object. |
java.lang.Object |
getColumnValue(int columnIndex)
Returns the column value for specified column index. |
java.lang.String |
getNodeText()
|
ObjectDescriptor |
getObjectDescriptor()
Returns the objectDescriptor. |
PropertyDescriptor |
getPropertyDescriptor()
Gets the property descritpor in case this object descriptor specifies a complex type property. |
ObjectValidator |
getValidator()
Gets the object validator that is associated with the object descriptor of this node. |
void |
initialize()
Initializes the node. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
void |
reload()
Reloads the content of this node. |
boolean |
representsProperty(java.lang.String propertyName)
Checks if this node represents the given property. |
void |
setObject(java.lang.Object object)
Sets the object containing the values for the porperty. |
void |
setObjectDescriptor(ObjectDescriptor objectDescriptor)
Sets the objectDescriptor. |
void |
setValidator(ObjectValidator validator)
Sets the object validator that is associated with the object descriptor of this node. |
boolean |
shouldExpand()
Checks if the node node should be expanded on initial display. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class org.openbp.jaspira.propertybrowser.nodes.AbstractNode |
|---|
add, add, children, clone, filterPropertyNodes, findNodeForProperty, getAllowsChildren, getAssociatedCollectionNode, getChildAt, getChildCount, getIndex, getLastHeight, getObject, getObjectNode, getParent, getPreferredSize, getPropertyBrowser, getPropertyNodes, reloadProperty, remove, setLastHeight, setParent, setPropertyBrowser |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectNode(ObjectDescriptor objectDescriptor)
objectDescriptor - Object descriptor represented by this nodepublic ObjectNode(PropertyDescriptor propertyDescriptor)
propertyDescriptor - Property descriptor in case this object node specifies a complex type property| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic void reload()
reload in class AbstractNodepublic boolean representsProperty(java.lang.String propertyName)
representsProperty in class AbstractNodepropertyName - Name of the property to checkpublic void initialize()
public PropertyDescriptor getPropertyDescriptor()
public void copyFrom(java.lang.Object source,
int copyMode)
throws java.lang.CloneNotSupportedException
copyFrom in interface CopyablecopyFrom in class AbstractNodesource - 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.
java.lang.CloneNotSupportedException - If the cloning of one of the contained objects failedpublic java.lang.String getNodeText()
public java.lang.Object getColumnValue(int columnIndex)
columnIndex - The of the column object to be returned
public boolean isLeaf()
AbstractNode
isLeaf in interface javax.swing.tree.TreeNodeisLeaf in class AbstractNodepublic boolean shouldExpand()
shouldExpand in class AbstractNodepublic void setObject(java.lang.Object object)
setObject in class AbstractNodeobject - The object to be setpublic ObjectDescriptor getObjectDescriptor()
public void setObjectDescriptor(ObjectDescriptor objectDescriptor)
objectDescriptor - The objectDescriptor to setpublic ObjectValidator getValidator()
public void setValidator(ObjectValidator validator)
protected void addProperty(PropertyDescriptor pd)
PropertyNode to a specified
GroupNode according to the group name. If the GroupNode should not exist,
then a new GroupNode will be created.
pd - to be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||