|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.activemath.author.toc.EditableTOCJTree
public class EditableTOCJTree
A JTree object that contains a tree view of concepts that is read from a mBase server. Any user's sessions may be displayed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
EditableTOCJTree(AMSessionInfo session,
TOC parentTOC)
create a new EditableTOCJTree the new EditableTOCJTree will load the session sessionName of user userName from server serverName Preferred language: not implemented yet... |
|
EditableTOCJTree(String fileName,
TOC parentTOC)
Missing description of constructor for the EditableTOCJTree object |
|
EditableTOCJTree(TOC parentTOC)
creates an empty EditableTOCJtree |
|
| Method Summary | |
|---|---|
DefaultMutableTreeNode |
buildSavedDoc(org.jdom.Element startOmgroup)
recursively builds a tree froma file saved with TOC. |
boolean |
catalogueInsert(String ID,
DefaultMutableTreeNode destinationNode,
boolean isRef)
returns true if insertion succeeds, false if there's trouble |
boolean |
catalogueInsert(String ID,
DefaultMutableTreeNode destinationNode,
boolean isRef,
int index)
|
void |
drawBottomLine(TreePath path)
draw intermediate line above the node |
void |
drawRect(TreePath path)
draw the outline of a node |
void |
drawTopLine(TreePath path)
draw intermediate line above the node |
DefaultMutableTreeNode |
getDeepClone(DefaultMutableTreeNode startNode)
Missing description of the gets the deepClone attribute of the EditableTOCJTree object |
org.jdom.Element |
getDocument(DefaultMutableTreeNode startNode)
returns this tree as a root element, starting document-building at startNode
. |
DefaultMutableTreeNode |
getDraggedNode()
Missing description of the gets the draggedNode attribute of the EditableTOCJTree object |
JTree |
getJTree()
returns this EditableTOCJTree's JTree element |
MBaseRef |
getMBase()
Returns this EditableTOCJTree's registered MBaseRef |
DefaultMutableTreeNode |
getRoot()
returns this EditableTOCJTree's root node |
DefaultMutableTreeNode |
getSelectedNode()
returns the currently selected node, or null if no node is selected. |
void |
insertCatalogueSubTree(DefaultMutableTreeNode newChild,
DefaultMutableTreeNode destinationNode)
|
void |
insertCatalogueSubTree(DefaultMutableTreeNode newChild,
DefaultMutableTreeNode destinationNode,
int index)
inserts a given subtree into this tree, (used for pasting) |
void |
insertCatalogueSubTrees(Vector newChilds,
DefaultMutableTreeNode destinationNode,
int index)
inserts several given subtrees into destinationNode |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
print(DefaultMutableTreeNode aNode)
prints out a string representation of this EditableTOCJtree |
void |
removeNode(DefaultMutableTreeNode removeIt)
deletes a node from the treemodel of this EditableTOCJTree. |
DefaultMutableTreeNode |
returnSecondChild(DefaultMutableTreeNode returnNode)
|
void |
saveToSession()
|
void |
setDraggedNode(DefaultMutableTreeNode dN)
Missing description Sets the draggedNode attribute of the EditableTOCJTree object some kind of drawback from the single selection constraint at the beginning, will not be used |
void |
setRootLabel(String newLabel)
Sets the label i.e. the user object of root to a new String |
void |
treeNodesChanged(TreeModelEvent e)
a method that is part of the TreeModelListener interface called when the user changes the TreeModel. |
void |
treeNodesInserted(TreeModelEvent e)
a method that is part of the TreeModelListener interface called when the user changes the TreeModel. |
void |
treeNodesRemoved(TreeModelEvent e)
a method that is part of the TreeModelListener interface called when the user changes the TreeModel. |
void |
treeStructureChanged(TreeModelEvent e)
a method that is part of the TreeModelListener interface called when the user changes the TreeModel. |
void |
valueChanged(TreeSelectionEvent e)
Missing description of the Method |
void |
writeOmgroupFile(File outFile)
creates an omgroup-style omdoc from this EditableTOCJtree's nodes. |
void |
writeOmgroupFile(String name)
creates an omgroup-style omdoc from this EditableTOCJtree's nodes. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EditableTOCJTree(AMSessionInfo session,
TOC parentTOC)
session - Missing description of ParameterparentTOC - Missing description of Parameter
public EditableTOCJTree(String fileName,
TOC parentTOC)
fileName - Missing description of ParameterparentTOC - Missing description of Parameterpublic EditableTOCJTree(TOC parentTOC)
parentTOC - Missing description of Parameter| Method Detail |
|---|
public void setRootLabel(String newLabel)
newLabel - Missing description The new rootLabel valuepublic void setDraggedNode(DefaultMutableTreeNode dN)
dN - Missing description The new draggedNode valuepublic org.jdom.Element getDocument(DefaultMutableTreeNode startNode)
startNode
.
startNode - Missing description of Parameter
public DefaultMutableTreeNode getDeepClone(DefaultMutableTreeNode startNode)
startNode - Missing description of Parameter
public MBaseRef getMBase()
MBaseRef
public DefaultMutableTreeNode getRoot()
public JTree getJTree()
public DefaultMutableTreeNode getDraggedNode()
public DefaultMutableTreeNode getSelectedNode()
public void valueChanged(TreeSelectionEvent e)
valueChanged in interface TreeSelectionListenere - Missing description of Parameterpublic void treeNodesChanged(TreeModelEvent e)
treeNodesChanged in interface TreeModelListenere - Missing description of Parameterpublic void treeNodesInserted(TreeModelEvent e)
treeNodesInserted in interface TreeModelListenere - Missing description of Parameterpublic void treeNodesRemoved(TreeModelEvent e)
treeNodesRemoved in interface TreeModelListenere - Missing description of Parameterpublic void treeStructureChanged(TreeModelEvent e)
treeStructureChanged in interface TreeModelListenere - Missing description of Parameter
public boolean catalogueInsert(String ID,
DefaultMutableTreeNode destinationNode,
boolean isRef)
ID - Missing description of ParameterdestinationNode - Missing description of ParameterisRef - Missing description of Parameter
public boolean catalogueInsert(String ID,
DefaultMutableTreeNode destinationNode,
boolean isRef,
int index)
public void insertCatalogueSubTree(DefaultMutableTreeNode newChild,
DefaultMutableTreeNode destinationNode,
int index)
newChild - Missing description of ParameterdestinationNode - Missing description of Parameter
public void insertCatalogueSubTrees(Vector newChilds,
DefaultMutableTreeNode destinationNode,
int index)
newChild - Missing description of ParameterdestinationNode - Missing description of Parameter
public void insertCatalogueSubTree(DefaultMutableTreeNode newChild,
DefaultMutableTreeNode destinationNode)
public void removeNode(DefaultMutableTreeNode removeIt)
removeIt - Missing description of Parameterpublic DefaultMutableTreeNode buildSavedDoc(org.jdom.Element startOmgroup)
startOmgroup - an omgroup element from which recursion will be
started. This element will become the root node of the resulting tree.
public void writeOmgroupFile(File outFile)
throws IOException
outFile - Missing description of Parameter
IOException - Missing description of Exception
public void writeOmgroupFile(String name)
throws IOException
name - Missing description of Parameter
IOException - Missing description of Exceptionpublic void saveToSession()
public void print(DefaultMutableTreeNode aNode)
aNode - Missing description of Parameterpublic void drawRect(TreePath path)
public void drawTopLine(TreePath path)
public void drawBottomLine(TreePath path)
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic DefaultMutableTreeNode returnSecondChild(DefaultMutableTreeNode returnNode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||