|
||||||||||
| 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
Basic data object in PDCC that is represented in the GUI.
| Field Summary | |
protected int[] |
allowedChildTypes
|
protected ObjectContainer |
boundContainer
|
protected java.lang.Object |
boundObject
|
protected javax.swing.tree.DefaultTreeModel |
defaultTreeModel
|
protected int |
insertAt
|
protected java.lang.String |
originalString
|
protected javax.swing.tree.MutableTreeNode |
ourParent
|
protected int |
uniqueId
|
protected boolean |
userGeneratedObject
|
protected java.lang.String |
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 | |
PdccObject(java.lang.Object dataObject)
Create a new PdccObject with attached object bound to it. |
|
| Method Summary | |
boolean |
canHaveChild(int childType)
can this object have a child of the indicated type? |
protected abstract edu.iris.dmc.isis.ObjectController |
constructController()
|
protected abstract edu.iris.dmc.isis.EditPanel |
constructEditPanel()
|
abstract void |
deleteGroupRow(int rowNum,
int startField)
An editing function that allows deletion of an existing row in a repeat group. |
java.lang.Object |
getBoundObject()
get the bound data object |
abstract java.util.Vector |
getChildren()
return a Vector of child objects associated with this object |
javax.swing.tree.MutableTreeNode |
getContainer()
returns a reference to ourselves, since we are a MutableTreeNode inheritor. |
edu.iris.dmc.isis.ObjectController |
getController()
Editable interface implementation |
int |
getDictionaryListCount(int fieldNum,
int fieldIndex)
Return the number of dictionary list entries for this fieldNum and fieldIndex entry. |
abstract PdccObject |
getDictionaryObject(int fieldNum)
return the PdccObject representing the dictionary referenced by this object field and repeat group offset. |
abstract PdccObject |
getDictionaryObject(int fieldNum,
int fieldIndex)
return the PdccObject representing the dictionary referenced by this object field and repeat group field index |
abstract int |
getDictionaryReferenceType(int fieldNum)
return the type number of the referenced dictionary object for the indicated field number. |
abstract java.lang.String |
getDictionaryReferenceVal()
return the dictionary reference index value of this object, provided that it is a dictionary object...return 0 if we are not a dictionary object or we do not have a reference value. |
abstract java.util.Vector |
getDictionaryVector(int fieldNum,
int fieldIndex)
return a vector of PdccObjects representing the dictionary objects referenced by this object's List-type field and repeat group field index |
javax.swing.JPanel |
getDisplayPanel()
Implements Displayable interface. |
edu.iris.dmc.isis.EditPanel |
getEditPanel()
Editable interface implementation |
abstract 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. |
abstract java.lang.String |
getFieldName(int fieldNum)
return the field name string from the indicated field number in the bound data object. |
abstract java.lang.String |
getFieldType(int fieldNum)
return a string representing the data type of the indicated field number of the bound data object. |
abstract java.lang.String |
getFieldValue(int fieldNum)
return a String representation of the value contained in the indicated field number of the bound data object. |
abstract java.lang.String |
getFieldValue(int fieldNum,
int fieldIndex)
in the case of multiple values being present in a given field, return a string representation of the value at the specified index. |
abstract int |
getId()
return a unique ID number for this object, perhaps identical to the unique ID of the bound data object. |
abstract java.lang.String |
getName()
return the name of the type of the bound data object |
abstract int |
getNumFields()
return an integer indicating the number of fields in the bound data object |
abstract int |
getNumFieldValues(int fieldNum)
get the number of values available for this field. |
ObjectContainer |
getObjectContainer()
get the registered object container |
java.lang.String |
getOriginalString()
return the last original field value before the change made by validate() |
javax.swing.tree.MutableTreeNode |
getParentNode()
Get the tree node that is our parent in the JTree. |
abstract java.lang.String |
getRepeatGroupName(int fieldNum)
for the indicated field, which should be a repeating field, return the appropriate label representing the entire repeat group. |
abstract int |
getRepeatGroupSize(int fieldNum)
get the number of fields in this repeat group, starting at the indicated field number...this represents the 'width' size of the group, or number of columns. |
int |
getSortField()
return an integer representing the field number whose value can be used in a sorting routine based on the provided object type number. |
static int |
getSortField(int type)
Static implementation. |
abstract int |
getType()
return an integer representing the 'type' of the bound data object |
java.lang.String |
getValidatedString()
return the last formatted string generated by validate(), or return null |
void |
handleObject(java.lang.Object o)
ObjectController interface implementation. |
abstract void |
insertGroupRow(int rowNum,
int startField)
An editing function that allows insertion of a new row to a repeat group. |
abstract boolean |
isDictionaryField(int fieldNum)
return true if this field references a dictionary object (referencing field) |
abstract boolean |
isDictionaryReference(int fieldNum)
return true if this field is the reference number field of a dictionary blockette (referenced field) |
abstract boolean |
isRepeatingField(int fieldNum)
return true if this field is part of a repeat group ... |
boolean |
isUserGenerated()
ask if this is an object generated by the user through the GUI, and is not source data from a file. |
javax.swing.ImageIcon |
listIcon()
Implements Displayable->Listable. |
java.lang.String |
listString()
Implements Displayable->Listable. |
abstract int |
numberOfChildren()
return the number of child objects associated with this object |
void |
refreshTreeModel()
send a notification to the tree model that the node represented by this object is in need of a refresh on the display |
void |
registerDefaultTreeModel(javax.swing.tree.DefaultTreeModel dtm)
register the tree node data model |
void |
registerObjectContainer(java.lang.Object container)
register an object container with this object for reference lookups NOTE: not to be confused with getContainer, which is a MutableTreeNode implementation. |
void |
releaseDisplayPanel()
may be called to release memory for a display/edit panel created by the call to getDisplayPanel(). |
protected abstract void |
releaseEditPanel()
|
void |
removeBoundObject()
remove references to the bound object both in this instance and the bound object container...used as a precursor to permanently deleting this node from the JTree. |
java.lang.String |
resolveDictionaryLookup(int fieldNum)
Return the string value at the referenced dictionary field. |
java.lang.String |
resolveDictionaryLookup(int fieldNum,
int fieldIndex)
Return the string value at the referenced dictionary field and repeat group offset (fieldIndex). |
java.lang.String |
resolveDictionaryLookup(int fieldNum,
int fieldIndex,
int listIndex)
Return the string value at the referenced dictionary field and repeat group offset (fieldIndex) and list index for List type field. |
abstract void |
restoreOriginal(java.lang.Object restoreObj,
int startField,
int endField)
restore the original values from restoreObj's start to end fields to regress edit changes |
void |
setId(int id)
sets the unique Id value for this object, perhaps specific to the type of data object bound to us. |
void |
setInsertAt(int index)
set the index where we want the tree insertion to occur |
void |
setParentNode(javax.swing.tree.MutableTreeNode parentNode)
Set the parentNode as our parent in the JTree. |
void |
setUserGenerated(boolean flag)
flag true if this is an object generated by the user through the GUI, and is not source data from a file. |
java.lang.String |
toString()
return string representation of this object, perhaps as relates to the bound data object. |
abstract void |
updateDictionaryLookup(int fieldNum,
PdccObject newDictionary)
update this object with a new dictionary reference based on the lookup value at the indicated fieldnum. |
int |
validate(java.lang.String value,
int fieldNum)
validate the string at the indicated field |
abstract 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. |
abstract int |
validate(java.lang.String value,
int fieldNum,
int fieldIndex,
int listIndex)
expanded version of validate that accomodiates list fields, which are sub-groups within a repeat group. |
| 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 |
| Field Detail |
protected int uniqueId
protected java.lang.Object boundObject
protected javax.swing.tree.MutableTreeNode ourParent
protected ObjectContainer boundContainer
protected java.lang.String validatedString
protected java.lang.String originalString
protected int[] allowedChildTypes
protected int insertAt
protected javax.swing.tree.DefaultTreeModel defaultTreeModel
protected boolean userGeneratedObject
| Constructor Detail |
public PdccObject(java.lang.Object dataObject)
dataObject - data object to be bound to us.| Method Detail |
protected abstract edu.iris.dmc.isis.EditPanel constructEditPanel()
protected abstract void releaseEditPanel()
protected abstract edu.iris.dmc.isis.ObjectController constructController()
public abstract int getId()
public abstract int getType()
public abstract java.lang.String getName()
throws java.lang.Exception
java.lang.Exception
public abstract int getNumFields()
throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String getFieldName(int fieldNum)
throws java.lang.Exception
java.lang.Exceptionpublic abstract java.lang.String getFieldValue(int fieldNum)
public abstract java.lang.String getFieldValue(int fieldNum,
int fieldIndex)
public abstract java.lang.String getFieldType(int fieldNum)
throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String getFieldLength(int fieldNum)
throws java.lang.Exception
java.lang.Exceptionpublic abstract boolean isDictionaryField(int fieldNum)
public abstract boolean isDictionaryReference(int fieldNum)
public abstract int getDictionaryReferenceType(int fieldNum)
public abstract PdccObject getDictionaryObject(int fieldNum)
throws java.lang.Exception
java.lang.Exception
public abstract PdccObject getDictionaryObject(int fieldNum,
int fieldIndex)
throws java.lang.Exception
java.lang.Exception
public abstract java.util.Vector getDictionaryVector(int fieldNum,
int fieldIndex)
throws java.lang.Exception
java.lang.Exceptionpublic abstract java.lang.String getDictionaryReferenceVal()
public abstract void updateDictionaryLookup(int fieldNum,
PdccObject newDictionary)
public abstract boolean isRepeatingField(int fieldNum)
throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String getRepeatGroupName(int fieldNum)
throws java.lang.Exception
java.lang.Exception
public abstract int getNumFieldValues(int fieldNum)
throws java.lang.Exception
java.lang.Exception
public abstract int getRepeatGroupSize(int fieldNum)
throws java.lang.Exception
java.lang.Exception
public abstract int validate(java.lang.String value,
int fieldNum,
int fieldIndex)
public abstract int validate(java.lang.String value,
int fieldNum,
int fieldIndex,
int listIndex)
public abstract void restoreOriginal(java.lang.Object restoreObj,
int startField,
int endField)
throws java.lang.Exception
java.lang.Exception
public abstract int numberOfChildren()
throws java.lang.Exception
java.lang.Exception
public abstract java.util.Vector getChildren()
throws java.lang.Exception
java.lang.Exception
public abstract void insertGroupRow(int rowNum,
int startField)
throws java.lang.Exception
java.lang.Exception
public abstract void deleteGroupRow(int rowNum,
int startField)
throws java.lang.Exception
java.lang.Exceptionpublic edu.iris.dmc.isis.EditPanel getEditPanel()
getEditPanel in interface edu.iris.dmc.isis.Editablepublic edu.iris.dmc.isis.ObjectController getController()
getController in interface edu.iris.dmc.isis.Editablepublic void handleObject(java.lang.Object o)
handleObject in interface edu.iris.dmc.isis.ObjectControllerpublic javax.swing.JPanel getDisplayPanel()
getDisplayPanel in interface edu.iris.dmc.isis.Displayablepublic java.lang.String listString()
listString in interface edu.iris.dmc.isis.Listablepublic javax.swing.ImageIcon listIcon()
listIcon in interface edu.iris.dmc.isis.Listablepublic int getSortField()
public static int getSortField(int type)
public void registerDefaultTreeModel(javax.swing.tree.DefaultTreeModel dtm)
public void registerObjectContainer(java.lang.Object container)
public ObjectContainer getObjectContainer()
public java.lang.Object getBoundObject()
public java.lang.String toString()
public void setId(int id)
public javax.swing.tree.MutableTreeNode getContainer()
public javax.swing.tree.MutableTreeNode getParentNode()
public void setParentNode(javax.swing.tree.MutableTreeNode parentNode)
parentNode - our parent TreeNode
public java.lang.String resolveDictionaryLookup(int fieldNum)
throws java.lang.Exception
fieldNum - field number doing the dictionary referencinng
java.lang.Exception
public java.lang.String resolveDictionaryLookup(int fieldNum,
int fieldIndex)
throws java.lang.Exception
fieldNum - field number doing the dictionary referencingfieldIndex - index of the repeating field doing the dictionary referencing
PdccDictionaryException - when a dictionary object cannot be found
java.lang.Exception - in all other cases
public java.lang.String resolveDictionaryLookup(int fieldNum,
int fieldIndex,
int listIndex)
throws java.lang.Exception
fieldNum - field number doing the dictionary referencingfieldIndex - index of the repeating field doing the dictionary referencinglistIndex - index of the list at fieldNum and fieldIndex
java.lang.Exception
public int getDictionaryListCount(int fieldNum,
int fieldIndex)
throws java.lang.Exception
java.lang.Exception
public int validate(java.lang.String value,
int fieldNum)
public java.lang.String getValidatedString()
public java.lang.String getOriginalString()
public boolean canHaveChild(int childType)
public void setInsertAt(int index)
public boolean isUserGenerated()
public void setUserGenerated(boolean flag)
public void removeBoundObject()
throws java.lang.Exception
java.lang.Exceptionpublic void releaseDisplayPanel()
public void refreshTreeModel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||