|
||||||||||
| 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.JTree
com.quadrique.jbuildingblocks.gui.Tree
public class Tree
This class is the base class for all the trees.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTree |
|---|
JTree.DropLocation, JTree.DynamicUtilTreeNode |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 | |
|---|---|
Tree()
Constructor |
|
| Method Summary | |
|---|---|
void |
expand(TreePath zTreePath)
Expands the tree at the given tree node (and make sure that an expansion event is sent as well) |
TreePath |
getPathForNode(DefaultMutableTreeNode zNode)
|
MenuPopup |
getPopupMenu()
|
void |
mouseClicked(MouseEvent e)
The mouse listener interface |
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
selectNodeAndNotifyListeners(TreePath zPath)
This method is used to programmaticaly select a node in the tree. |
void |
setPopupMenu(MenuPopup zPopupMenu)
set the popup menu that is used for this tree |
void |
treeCollapsed(TreeExpansionEvent zEvent)
The TreeExpansionListener interface |
void |
treeExpanded(TreeExpansionEvent zEvent)
The TreeExpansionListener interface |
void |
updatePopupMenu(TreePath treePath)
Called once a mouse click is made that triggers a popup on a tree node. |
void |
valueChanged(TreeSelectionEvent event)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tree()
| Method Detail |
|---|
public void setPopupMenu(MenuPopup zPopupMenu)
zPopupMenu - the popup menupublic MenuPopup getPopupMenu()
public void updatePopupMenu(TreePath treePath)
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - the eventpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void selectNodeAndNotifyListeners(TreePath zPath)
zPath - the path to the correspondng nodepublic TreePath getPathForNode(DefaultMutableTreeNode zNode)
zNode - the tree node
public void expand(TreePath zTreePath)
zTreePath - the tree path to expandpublic void treeExpanded(TreeExpansionEvent zEvent)
treeExpanded in interface TreeExpansionListenerzEvent - the eventpublic void treeCollapsed(TreeExpansionEvent zEvent)
treeCollapsed in interface TreeExpansionListenerzEvent - the eventpublic void valueChanged(TreeSelectionEvent event)
valueChanged in interface TreeSelectionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||