edu.washington.cs.pl_if.gui
Class GuiMain

java.lang.Object
  extended by edu.washington.cs.pl_if.gui.GuiMain
All Implemented Interfaces:
Runnable

public class GuiMain
extends Object
implements Runnable


Field Summary
protected  org.eclipse.swt.widgets.Display display
           
static long GUI_MAX_SLEEP_TIME
           
 Vector<RequiresUpdates> guiUpdateElements
           
static String[] HOST_FILE_FILTER
           
static long OVERVIEW_UPDATE_LIMIT
           
static boolean running
           
protected  org.eclipse.swt.widgets.Shell shell
           
protected  org.eclipse.swt.custom.CTabFolder tabFolder
           
 
Constructor Summary
protected GuiMain()
           
 
Method Summary
 void addCommandTab(int commandId)
           
 void addShowTab(int hostIndex)
           
protected  void createContents()
          Create contents of the window
protected  void createMenuBar()
           
 void downloadDir(String remotePath, String localPath, String filter, String namingType)
           
static GuiMain getInstance()
           
static GuiMain getInstance(Credentials cred, InetAddress server)
           
 boolean isDisposed()
           
 boolean isShowDisconnected()
           
 void kill()
           
 void lostConnection()
           
static void main(String[] args)
           
 void open()
          Open the window
 void quit()
           
 void refresh()
           
 void run()
           
 void setShowDisconnected(boolean showDisconnected)
           
 void updateConsoleTabs()
           
 void wakeUpDisplay()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GUI_MAX_SLEEP_TIME

public static final long GUI_MAX_SLEEP_TIME
See Also:
Constant Field Values

HOST_FILE_FILTER

public static final String[] HOST_FILE_FILTER

OVERVIEW_UPDATE_LIMIT

public static final long OVERVIEW_UPDATE_LIMIT
See Also:
Constant Field Values

guiUpdateElements

public Vector<RequiresUpdates> guiUpdateElements

running

public static volatile boolean running

display

protected org.eclipse.swt.widgets.Display display

shell

protected org.eclipse.swt.widgets.Shell shell

tabFolder

protected org.eclipse.swt.custom.CTabFolder tabFolder
Constructor Detail

GuiMain

protected GuiMain()
Method Detail

getInstance

public static GuiMain getInstance()

getInstance

public static GuiMain getInstance(Credentials cred,
                                  InetAddress server)

main

public static void main(String[] args)

addCommandTab

public void addCommandTab(int commandId)

addShowTab

public void addShowTab(int hostIndex)

downloadDir

public void downloadDir(String remotePath,
                        String localPath,
                        String filter,
                        String namingType)

isDisposed

public boolean isDisposed()

isShowDisconnected

public boolean isShowDisconnected()

kill

public void kill()

lostConnection

public void lostConnection()

open

public final void open()
Open the window


quit

public void quit()

refresh

public void refresh()

run

public void run()
Specified by:
run in interface Runnable

setShowDisconnected

public void setShowDisconnected(boolean showDisconnected)

updateConsoleTabs

public void updateConsoleTabs()

wakeUpDisplay

public void wakeUpDisplay()

createContents

protected void createContents()
Create contents of the window


createMenuBar

protected void createMenuBar()