|
||||||||||
| 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
org.tentackle.ui.FormTree
public class FormTree
Extended JTree.
Provides action listeners for mouse clicks and enter key.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTree |
|---|
JTree.AccessibleJTree, JTree.DropLocation, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
| 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 | |
|---|---|
static String |
CLICK_ACTION
action code for mouse clicked |
static String |
ENTER_ACTION
action code for enter key pressed |
| 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 | |
|---|---|
FormTree()
Creates a FormTree with a sample model. |
|
FormTree(TreeModel model)
Creates a FormTree which displays the root node
-- the tree is created using the specified data model. |
|
FormTree(TreeNode root)
Creates a FormTree with the specified
TreeNode as its root,
which displays the root node. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
Adds an action listener (usually double click on a selection). |
void |
fireActionPerformed(ActionEvent evt)
Notifies all Listeners that the selection should be performed |
int |
getClickCount()
Gets the number of mouse clicks that led to the selection. |
void |
removeActionListener(ActionListener listener)
Removes an action Listener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CLICK_ACTION
public static final String ENTER_ACTION
| Constructor Detail |
|---|
public FormTree()
FormTree with a sample model.
JTree.JTree()public FormTree(TreeModel model)
FormTree which displays the root node
-- the tree is created using the specified data model.
model - the TreeModel to use as the data modelJTree.JTree(javax.swing.tree.TreeModel)public FormTree(TreeNode root)
FormTree with the specified
TreeNode as its root,
which displays the root node.
By default, the tree defines a leaf node as any node without children.
root - a TreeNode objectJTree.JTree(javax.swing.tree.TreeNode)| Method Detail |
|---|
public int getClickCount()
public void addActionListener(ActionListener listener)
listener - the listener to addpublic void removeActionListener(ActionListener listener)
listener - the listener to removepublic void fireActionPerformed(ActionEvent evt)
evt - the action event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||