org.skunk.dav.client.gui
Class ExplorerApp

java.lang.Object
  |
  +--org.skunk.dav.client.gui.ExplorerApp
All Implemented Interfaces:
AppContext

public class ExplorerApp
extends java.lang.Object
implements AppContext


Field Summary
static java.lang.String CONFIG_DATA
           
static java.lang.String DAV_DIR
           
 
Method Summary
 void addView(View view)
          adds a view
static AppContext getAppContext()
           
 Configurator getConfigurator()
           
 View getCurrentView()
           
 DockMode getDockMode()
           
static Explorer getExplorerForBuffer(Buffer buffer)
          return the explorer in the same view as the given buffer
 View getView(int index)
           
 int getViewCount()
           
static View getViewForBuffer(Buffer buffer)
          convenience method for obtaining the view object that contains a given buffer Note that it would be insane to call this right now were I not planning to allow the creation of multiple views.
 boolean isTrusted()
           
static void main(java.lang.String[] args)
           
 void removeView(View view)
          removes a view Precondition: appContext contains this view
 void setBusy(boolean busy)
           
 java.util.Iterator views()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAV_DIR

public static final java.lang.String DAV_DIR

CONFIG_DATA

public static final java.lang.String CONFIG_DATA
Method Detail

getAppContext

public static AppContext getAppContext()
Returns:
a singleton AppContext application object

getViewForBuffer

public static View getViewForBuffer(Buffer buffer)
convenience method for obtaining the view object that contains a given buffer Note that it would be insane to call this right now were I not planning to allow the creation of multiple views.

getExplorerForBuffer

public static Explorer getExplorerForBuffer(Buffer buffer)
return the explorer in the same view as the given buffer

setBusy

public void setBusy(boolean busy)

addView

public void addView(View view)
adds a view
Specified by:
addView in interface AppContext

removeView

public void removeView(View view)
removes a view Precondition: appContext contains this view
Specified by:
removeView in interface AppContext

views

public java.util.Iterator views()
Specified by:
views in interface AppContext
Returns:
an iterator of all Views in the AppContext

getViewCount

public int getViewCount()
Specified by:
getViewCount in interface AppContext
Returns:
the number of current views

getView

public View getView(int index)
Specified by:
getView in interface AppContext
Returns:
the view at the given index

getCurrentView

public View getCurrentView()
Specified by:
getCurrentView in interface AppContext
Returns:
the currently active (focussed) view

main

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

getDockMode

public DockMode getDockMode()
Specified by:
getDockMode in interface AppContext
Returns:
the dock mode (interface style)

getConfigurator

public Configurator getConfigurator()
Specified by:
getConfigurator in interface AppContext
Returns:
the configurator object for the application

isTrusted

public boolean isTrusted()
Specified by:
isTrusted in interface AppContext
Returns:
whether or not the application is trusted to access the filesystem, open sockets to multiple hosts, etc.