edu.virginia.cs.mng.hypercast.demo
Class MNGmftp

java.lang.Object
  |
  +--edu.virginia.cs.mng.hypercast.demo.MNGmftp

public class MNGmftp
extends java.lang.Object

This is the MFTP GUI.It displays the GUI interface to send and receive files.


Inner Class Summary
(package private)  class MNGmftp.IndicatorRenderer
          A renderer that will give an indicator when a cell is being reloaded.
(package private)  class MNGmftp.Reloader
          /** Reloader is the ActionListener used in the Timer.
 
Field Summary
private  BoxPane bp
          the Box Pane.
protected  javax.swing.JFrame frame
          Used to indicate status.
protected  FileSystemModel2 model
          Model for the JTreeTable.
protected  java.lang.String path
          Path created with.
private  javax.swing.JPopupMenu popup
          The popup menu
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.Timer timer
          Timer used to update reload state.
protected  JTreeTable treeTable
          Used to represent the model.
 
Constructor Summary
MNGmftp(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  JTreeTable createTreeTable()
          Creates and returns the instanceof JTreeTable that will be used.
 JTreeTable getTreeTable()
           
static void main(java.lang.String[] args)
           
protected  javax.swing.JFrame makeDirFrame()
           
protected  void reload(java.lang.Object node)
          Invoked to reload the children of a particular node.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

model

protected FileSystemModel2 model
Model for the JTreeTable.

treeTable

protected JTreeTable treeTable
Used to represent the model.

reloadRow

protected int reloadRow
Row the is being reloaded.

reloadPath

protected javax.swing.tree.TreePath reloadPath
TreePath being reloaded.

reloadCounter

protected int reloadCounter
A counter increment as the Timer fies and the same path is being reloaded.

timer

protected javax.swing.Timer timer
Timer used to update reload state.

frame

protected javax.swing.JFrame frame
Used to indicate status.

path

protected java.lang.String path
Path created with.

bp

private BoxPane bp
the Box Pane.

popup

private javax.swing.JPopupMenu popup
The popup menu
Constructor Detail

MNGmftp

public MNGmftp(java.lang.String path)
Method Detail

getTreeTable

public JTreeTable getTreeTable()

createTreeTable

protected JTreeTable createTreeTable()
Creates and returns the instanceof JTreeTable that will be used. This also creates, but does not start, the Timer that is used to update the display as files are loaded.

createModel

protected FileSystemModel2 createModel(java.lang.String path)
Creates the FileSystemModel2 that will be used.

createFrame

protected javax.swing.JFrame createFrame()
Creates the JFrame that will contain everything.

makeDirFrame

protected javax.swing.JFrame makeDirFrame()

createMenuBar

protected javax.swing.JMenuBar createMenuBar()
Creates a menu bar.

reload

protected void reload(java.lang.Object node)
Invoked to reload the children of a particular node. This will also restart the timer.

main

public static void main(java.lang.String[] args)