|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--allensoft.gui.treetable.TreeTableExample2
Assembles the UI. The UI consists of a JTreeTable and a status label. As nodes are loaded by the FileSystemModel2, in a background thread, the status label updates as well as the renderer to draw the node that is being loaded differently.
Field Summary | |
protected javax.swing.JFrame |
frame
Frame containing everything. |
protected FileSystemModel2 |
model
Model for the JTreeTable. |
protected java.lang.String |
path
Path created with. |
protected int |
reloadCounter
A counter increment as the Timer fies and the same path is being reloaded. |
protected javax.swing.tree.TreePath |
reloadPath
TreePath being reloaded. |
protected int |
reloadRow
Row the is being reloaded. |
protected javax.swing.JLabel |
statusLabel
Used to indicate status. |
protected javax.swing.Timer |
timer
Timer used to update reload state. |
protected JTreeTable |
treeTable
Used to represent the model. |
protected static int |
ttCount
Number of instances of TreeTableExample2. |
Constructor Summary | |
TreeTableExample2(java.lang.String path)
|
Method Summary | |
protected javax.swing.JFrame |
createFrame()
Creates the JFrame that will contain everything. |
protected javax.swing.JMenuBar |
createMenuBar()
Creates a menu bar. |
protected FileSystemModel2 |
createModel(java.lang.String path)
Creates the FileSystemModel2 that will be used. |
protected javax.swing.JLabel |
createStatusLabel()
Creates and return a JLabel that is used to indicate the status of loading. |
protected JTreeTable |
createTreeTable()
Creates and returns the instanceof JTreeTable that will be used. |
static void |
main(java.lang.String[] args)
|
protected void |
reload(java.lang.Object node)
Invoked to reload the children of a particular node. |
protected void |
updateStatusLabel()
Updates the status label based on reloadRow. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static int ttCount
protected FileSystemModel2 model
protected JTreeTable treeTable
protected int reloadRow
protected javax.swing.tree.TreePath reloadPath
protected int reloadCounter
protected javax.swing.Timer timer
protected javax.swing.JLabel statusLabel
protected javax.swing.JFrame frame
protected java.lang.String path
Constructor Detail |
public TreeTableExample2(java.lang.String path)
Method Detail |
protected javax.swing.JLabel createStatusLabel()
protected JTreeTable createTreeTable()
protected FileSystemModel2 createModel(java.lang.String path)
protected javax.swing.JFrame createFrame()
protected javax.swing.JMenuBar createMenuBar()
protected void reload(java.lang.Object node)
protected void updateStatusLabel()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |