|
||||||||||
| 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.PropertyNode
public class PropertyNode
A property descriptor node represents a single non-collection property of an object.
| 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 | |
|---|---|
PropertyNode(PropertyDescriptor propertyDescriptor)
Default Contructor |
|
| Method Summary | |
|---|---|
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()
|
java.awt.Dimension |
getPreferredSize()
Gets the preferred height of the node in the tree. |
PropertyDescriptor |
getPropertyDescriptor()
Gets the propertyDescriptor for this node.. |
PropertyEditor |
getPropertyEditor()
Gets the the propertyEditor associated with the property descriptor. |
PropertyValidator |
getValidator()
Gets the the property validator used by this property editor.. |
void |
handleKeyEvent(java.awt.event.KeyEvent e)
Handles a key event that is not consumed by the property editor. |
boolean |
isReadOnly()
Returns true if the propertyEditor is read only. |
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 |
setPropertyDescriptor(PropertyDescriptor propertyDescriptor)
Sets the propertyDescriptor for this node.. |
void |
setPropertyEditor(PropertyEditor propertyEditor)
Sets the the propertyEditor associated with the property descriptor. |
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, getPropertyBrowser, getPropertyNodes, isLeaf, reloadProperty, remove, setLastHeight, setParent, setPropertyBrowser |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openbp.jaspira.propertybrowser.editor.PropertyEditorOwner |
|---|
reloadProperty |
| Constructor Detail |
|---|
public PropertyNode(PropertyDescriptor propertyDescriptor)
propertyDescriptor - Property descriptor represented by this node| 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 PropertyEditor getPropertyEditor()
public void setPropertyEditor(PropertyEditor propertyEditor)
public PropertyDescriptor getPropertyDescriptor()
public void setPropertyDescriptor(PropertyDescriptor propertyDescriptor)
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 PropertyValidator getValidator()
getValidator in interface PropertyEditorOwnerpublic void handleKeyEvent(java.awt.event.KeyEvent e)
handleKeyEvent in interface PropertyEditorOwnere - The key eventpublic java.lang.String getNodeText()
getNodeText in interface TreeTableNodepublic java.awt.Dimension getPreferredSize()
getPreferredSize in interface TreeTableNodegetPreferredSize in class AbstractNodepublic java.lang.Object getColumnValue(int columnIndex)
getColumnValue in interface TreeTableNodecolumnIndex - The of the column object to be returned
public void setObject(java.lang.Object object)
setObject in class AbstractNodeobject - The object to be setpublic boolean isReadOnly()
public boolean shouldExpand()
shouldExpand in class AbstractNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||