|
||||||||||
| 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.PdccBlocketteObject
Blockette variant of PdccObject.
| 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 | |
PdccBlocketteObject(Blockette blk)
Create a new instance of PDCC object, mapped to the indicated blockette instance. |
|
| Method Summary | |
void |
addDictionaryLookup(int fieldNum,
PdccObject newDictionary)
Add a new dictionary reference and associate to the indicated fieldNum. |
protected edu.iris.dmc.isis.ObjectController |
constructController()
|
protected edu.iris.dmc.isis.EditPanel |
constructEditPanel()
|
void |
dbUpdate(int fieldNum,
int fieldIndex)
Update indicated field (and index) value to the db export builder. |
void |
deleteGroupRow(int rowNum,
int fromField)
An editing function that allows deletion of a row in a repeat group. |
PdccObject |
getChild(int index,
int currentNumberOfChildren)
return a PdccObject child of the current object at index makes a new PdccObject at that index if one does not already exist |
java.util.Vector |
getChildren()
return a Vector of child PdccObjects associated with us |
PdccObject |
getDictionaryObject(int fieldNum)
return the PdccObject representing the dictionary referenced by this object's field. |
PdccObject |
getDictionaryObject(int fieldNum,
int fieldIndex)
return a new copy dictionary PdccObject representing the dictionary referenced by this object's field and repeat group field index. |
int |
getDictionaryReferenceType(int fieldNum)
return the type number of the referenced dictionary object for the indicated field number. |
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 |
java.util.Vector |
getDictionaryVector(int fieldNum,
int fieldIndex)
this version returns a Vector of PdccObjects, appropriate for cases where a blockette references a repeat list within a repeat list of dictionary references, such as with Blockette 60. |
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)
in the case of multiple values being present in a given field, return a string representation of the value at the specified index. |
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 *expected* in the bound data object |
int |
getNumFieldValues(int fieldNum)
get the number of values available for this field. |
java.lang.String |
getRepeatGroupName(int fieldNum)
for the indicated field, which should be a repeating field, return the appropriate blockette label representing the entire repeat group. |
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 the field number to sort objects by, specific response based on Blockette type. |
static int |
getSortField(int type)
Return the field number to sort objects by, specific response based on Blockette type. |
int |
getType()
return an integer representing the 'type' of the bound data object |
void |
insertGroupRow(int rowNum,
int fromField)
An editing function that allows insertion of a new row to a repeat group. |
boolean |
isDictionaryField(int fieldNum)
return true if this field references a dictionary object (referencing field) |
boolean |
isDictionaryReference(int fieldNum)
return true if this field is the reference number field of a dictionary blockette (referenced field) |
boolean |
isRepeatingField(int fieldNum)
return true if this field is part of a repeat group ... |
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 An override of the PdccObject implementation |
protected void |
releaseEditPanel()
|
void |
removeBoundObject()
override PdccObject method of the same name...add the facility to mark the associated database record with DELETE. |
void |
restoreOriginal(java.lang.Object restoreObj,
int start,
int end)
restore original values from the start to end fields |
void |
setId(int id)
Overrides PdccObject setId(). |
java.lang.String |
toString()
Overrides PdccObject.toString(); |
void |
updateDictionaryLookup(int fieldNum,
int fieldIndex,
PdccObject newDictionary)
update this object with a new dictionary reference based on the lookup value at the indicated fieldnum. |
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,
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)
expanded version of validate that accomodates 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 |
| Constructor Detail |
public PdccBlocketteObject(Blockette blk)
blk - | Method Detail |
public java.lang.String toString()
toString in class PdccObjectpublic void setId(int id)
setId in class PdccObjectpublic int getId()
getId in class PdccObjectpublic int getType()
getType in class PdccObject
public java.lang.String getName()
throws SeedException
getName in class PdccObjectSeedException
public int getNumFields()
throws SeedException
getNumFields in class PdccObjectSeedException
public java.lang.String getFieldName(int fieldNum)
throws SeedException
getFieldName in class PdccObjectSeedExceptionpublic 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 SeedException
getFieldType in class PdccObjectSeedException
public java.lang.String getFieldLength(int fieldNum)
throws SeedException
getFieldLength in class PdccObjectSeedExceptionpublic 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 void updateDictionaryLookup(int fieldNum,
int fieldIndex,
PdccObject newDictionary)
public void addDictionaryLookup(int fieldNum,
PdccObject newDictionary)
fieldNum - newDictionary -
public boolean isRepeatingField(int fieldNum)
throws SeedException
isRepeatingField in class PdccObjectSeedException
public java.lang.String getRepeatGroupName(int fieldNum)
throws SeedException
getRepeatGroupName in class PdccObjectSeedException
public int getNumFieldValues(int fieldNum)
throws SeedException
getNumFieldValues in class PdccObjectSeedException
public int getRepeatGroupSize(int fieldNum)
throws SeedException
getRepeatGroupSize in class PdccObjectSeedException
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 dbUpdate(int fieldNum,
int fieldIndex)
throws java.lang.Exception
java.lang.Exception
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 PdccObject getChild(int index,
int currentNumberOfChildren)
throws java.lang.Exception
index - index of child to returncurrentNumberOfChildren - the current known number of children attached to this parent
java.lang.Exception
public java.util.Vector getChildren()
throws java.lang.Exception
getChildren in class PdccObjectjava.lang.Exception
public void removeBoundObject()
throws java.lang.Exception
removeBoundObject in class PdccObjectjava.lang.Exception
public void insertGroupRow(int rowNum,
int fromField)
throws java.lang.Exception
insertGroupRow in class PdccObjectjava.lang.Exception
public void deleteGroupRow(int rowNum,
int fromField)
throws java.lang.Exception
deleteGroupRow in class PdccObjectjava.lang.Exceptionpublic void refreshTreeModel()
refreshTreeModel in class PdccObjectpublic int getSortField()
getSortField in class PdccObjectpublic static int getSortField(int type)
protected edu.iris.dmc.isis.EditPanel constructEditPanel()
constructEditPanel in class PdccObjectprotected void releaseEditPanel()
releaseEditPanel in class PdccObjectprotected edu.iris.dmc.isis.ObjectController constructController()
constructController in class PdccObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||