|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeView
TreeView defines APIs for open a file and display the file structure in tree structure.
TreeView uses folders and leaf nodes to represent groups and data objects in the file. You can expand or collapse folders to navigate data objects in the file.
From the TreeView, you can open data content or metadata of selected object. You can selet object(s) to delete or add new object to the file.
Method Summary | |
---|---|
void |
addObject(HObject newObject,
Group parentGroup)
Adds a new data object to the file. |
void |
closeFile(FileFormat file)
close a file |
javax.swing.tree.TreeNode |
findTreeNode(HObject obj)
Returns the tree node that contains the given data object. |
java.util.List<FileFormat> |
getCurrentFiles()
Returns the list of current open files.. |
HObject |
getCurrentObject()
|
FileFormat |
getSelectedFile()
Gets the selected the file. |
java.util.List<?> |
getSelectedObjects()
Gets a list of selected objects in the tree. |
javax.swing.JTree |
getTree()
Returns the JTree which holds the file structure. |
FileFormat |
openFile(java.lang.String filename,
int accessID)
Opens a file and retrieves the file structure of the file. |
void |
saveFile(FileFormat file)
save a file |
DataView |
showDataContent(HObject dataObject)
Dispaly the content of a data object. |
MetaDataView |
showMetaData(HObject dataObject)
Displays the meta data of a data object. |
Method Detail |
---|
FileFormat openFile(java.lang.String filename, int accessID) throws java.lang.Exception
Subclasses must implement this function to take appropriate steps to open a file.
filename
- the name of the file to open.accessID
- identifier for the file access. Valid value of accessID is:
java.lang.Exception
void closeFile(FileFormat file) throws java.lang.Exception
file
- the file to close
java.lang.Exception
void saveFile(FileFormat file) throws java.lang.Exception
file
- the file to save
java.lang.Exception
FileFormat getSelectedFile()
java.util.List<?> getSelectedObjects()
HObject getCurrentObject()
DataView showDataContent(HObject dataObject) throws java.lang.Exception
dataObject
- the data object
java.lang.Exception
MetaDataView showMetaData(HObject dataObject) throws java.lang.Exception
dataObject
- the data object
java.lang.Exception
void addObject(HObject newObject, Group parentGroup) throws java.lang.Exception
newObject
- the new object to add.parentGroup
- the parent group the object is to add to.
java.lang.Exception
javax.swing.JTree getTree()
java.util.List<FileFormat> getCurrentFiles()
javax.swing.tree.TreeNode findTreeNode(HObject obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |