|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
edu.iris.dmc.pdcc.gui.PdccObject
edu.iris.dmc.pdcc.gui.PdccTreeNodeObject
Generic Tree node complement to the set of PdccObjects. Used for volume and category nodes. The field contents are stored in Vectors.
| Field Summary |
| Fields inherited from class edu.iris.dmc.pdcc.gui.PdccObject |
allowedChildTypes, boundContainer, boundObject, defaultTreeModel, insertAt, originalString, ourParent, uniqueId, userGeneratedObject, validatedString |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Fields inherited from interface edu.iris.dmc.isis.Listable |
DEFAULT_ICON |
| Constructor Summary | |
PdccTreeNodeObject(java.lang.Object dataObject)
Get a new tree node instance. |
|
| Method Summary | |
protected edu.iris.dmc.isis.ObjectController |
constructController()
process the return of an ObjectController appropriate to the type of data object bound to us. |
protected edu.iris.dmc.isis.EditPanel |
constructEditPanel()
process the return of an EditPanel appropriate to the type of the data object bound to us. |
void |
deleteGroupRow(int rowNum,
int startField)
not implemented |
java.util.Vector |
getChildren()
return a Vector of child objects associated with this object |
PdccObject |
getDictionaryObject(int fieldNum)
we never reference dictionary objects, so always return null. |
PdccObject |
getDictionaryObject(int fieldNum,
int fieldIndex)
we never reference dictionary objects, so always return null. |
int |
getDictionaryReferenceType(int fieldNum)
we have no dictionary references, so the return is always 0, which means no dictionary type referenced at this field |
java.lang.String |
getDictionaryReferenceVal()
we are not a dictionary object, so always return 0. |
java.util.Vector |
getDictionaryVector(int fieldNum,
int fieldIndex)
we never reference dictionary objects, so always return null. |
java.lang.String |
getFieldLength(int fieldNum)
return a string representation of the length of the indicated field number, which is either a single integer, or two integers separated by a hyphen, which suggests a min and max length. |
java.lang.String |
getFieldName(int fieldNum)
return the field name string from the indicated field number in the bound data object |
java.lang.String |
getFieldType(int fieldNum)
return a string representing the data type of the indicated field number of the bound data object |
java.lang.String |
getFieldValue(int fieldNum)
return a String representation of the value contained in the indicated field number of the bound data object |
java.lang.String |
getFieldValue(int fieldNum,
int fieldIndex)
Get the value at the indicated field number. |
int |
getId()
return a unique ID number for this object, perhaps identical to the unique ID of the bound data object. |
java.lang.String |
getName()
return the name of the type of the bound data object |
int |
getNumFields()
return an integer indicating the number of fields in the bound data object |
int |
getNumFieldValues(int fieldNum)
We don't have repeating fields, so the number of values is always 1. |
java.lang.String |
getRepeatGroupName(int fieldNum)
we don't have repeating fields, so always return an empty string |
int |
getRepeatGroupSize(int fieldNum)
We don't have repeating fields, so the group size returned is always 1. |
protected java.lang.String |
getSerialFileName()
|
int |
getType()
return an integer representing the 'type' of the bound data object |
void |
insertGroupRow(int rowNum,
int startField)
not implemented |
boolean |
isDictionaryField(int fieldNum)
we have no dictionary fields, so always return false. |
boolean |
isDictionaryReference(int fieldNum)
we have no dictionary references, so always return false. |
boolean |
isDisplayable(int fieldNum)
indicate whether the field should be displayed in the edit window or not |
boolean |
isRepeatingField(int fieldNum)
we don't have repeating fields, so always return false. |
int |
numberOfChildren()
return the number of child objects associated with this object |
protected void |
registerSerialFile(java.lang.String filename)
|
void |
releaseBoundObject()
This is not impelmented. |
protected void |
releaseEditPanel()
implementing abstract method. |
void |
restoreOriginal(java.lang.Object restoreObj,
int start,
int end)
Restore the original values before changes were made. |
java.lang.String |
toString()
Return a string representation (label) of this object. |
void |
updateDictionaryLookup(int fieldNum,
PdccObject newDictionary)
we don't have dictionary lookups, so this is not implemented. |
int |
validate(java.lang.String value,
int fieldNum,
int fieldIndex)
Validate the offered string value against the field specification of the given field number and fieldIndex. |
int |
validate(java.lang.String value,
int fieldNum,
int fieldIndex,
int listIndex)
we never have list fields, so does nothing and always returns a -1 |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PdccTreeNodeObject(java.lang.Object dataObject)
dataObject - a vector of vectors.| Method Detail |
public java.lang.String toString()
toString in class PdccObjectprotected edu.iris.dmc.isis.EditPanel constructEditPanel()
constructEditPanel in class PdccObjectprotected edu.iris.dmc.isis.ObjectController constructController()
constructController in class PdccObjectpublic int getId()
getId in class PdccObjectpublic int getType()
getType in class PdccObject
public java.lang.String getName()
throws java.lang.Exception
getName in class PdccObjectjava.lang.Exception
public int getNumFields()
throws java.lang.Exception
getNumFields in class PdccObjectjava.lang.Exception
public java.lang.String getFieldName(int fieldNum)
throws java.lang.Exception
getFieldName in class PdccObjectjava.lang.Exceptionpublic java.lang.String getFieldValue(int fieldNum)
getFieldValue in class PdccObject
public java.lang.String getFieldValue(int fieldNum,
int fieldIndex)
getFieldValue in class PdccObject
public java.lang.String getFieldType(int fieldNum)
throws java.lang.Exception
getFieldType in class PdccObjectjava.lang.Exception
public java.lang.String getFieldLength(int fieldNum)
throws java.lang.Exception
getFieldLength in class PdccObjectjava.lang.Exceptionpublic boolean isDictionaryField(int fieldNum)
isDictionaryField in class PdccObjectpublic boolean isDictionaryReference(int fieldNum)
isDictionaryReference in class PdccObjectpublic int getDictionaryReferenceType(int fieldNum)
getDictionaryReferenceType in class PdccObjectpublic java.lang.String getDictionaryReferenceVal()
getDictionaryReferenceVal in class PdccObject
public PdccObject getDictionaryObject(int fieldNum)
throws java.lang.Exception
getDictionaryObject in class PdccObjectjava.lang.Exception
public PdccObject getDictionaryObject(int fieldNum,
int fieldIndex)
throws java.lang.Exception
getDictionaryObject in class PdccObjectjava.lang.Exception
public java.util.Vector getDictionaryVector(int fieldNum,
int fieldIndex)
throws java.lang.Exception
getDictionaryVector in class PdccObjectjava.lang.Exception
public void updateDictionaryLookup(int fieldNum,
PdccObject newDictionary)
updateDictionaryLookup in class PdccObject
public boolean isRepeatingField(int fieldNum)
throws java.lang.Exception
isRepeatingField in class PdccObjectjava.lang.Exception
public java.lang.String getRepeatGroupName(int fieldNum)
throws java.lang.Exception
getRepeatGroupName in class PdccObjectjava.lang.Exception
public int getNumFieldValues(int fieldNum)
throws java.lang.Exception
getNumFieldValues in class PdccObjectjava.lang.Exception
public int getRepeatGroupSize(int fieldNum)
throws java.lang.Exception
getRepeatGroupSize in class PdccObjectjava.lang.Exception
public int validate(java.lang.String value,
int fieldNum,
int fieldIndex)
validate in class PdccObject
public int validate(java.lang.String value,
int fieldNum,
int fieldIndex,
int listIndex)
validate in class PdccObject
public void restoreOriginal(java.lang.Object restoreObj,
int start,
int end)
throws java.lang.Exception
restoreOriginal in class PdccObjectjava.lang.Exception
public int numberOfChildren()
throws java.lang.Exception
numberOfChildren in class PdccObjectjava.lang.Exception
public java.util.Vector getChildren()
throws java.lang.Exception
getChildren in class PdccObjectjava.lang.Exceptionpublic boolean isDisplayable(int fieldNum)
public void releaseBoundObject()
public void insertGroupRow(int rowNum,
int startField)
throws java.lang.Exception
insertGroupRow in class PdccObjectjava.lang.Exception
public void deleteGroupRow(int rowNum,
int startField)
throws java.lang.Exception
deleteGroupRow in class PdccObjectjava.lang.Exceptionprotected void releaseEditPanel()
releaseEditPanel in class PdccObjectprotected void registerSerialFile(java.lang.String filename)
protected java.lang.String getSerialFileName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||