org.skunk.dav.client.gui
Interface AppContext

All Known Implementing Classes:
ExplorerApp

public interface AppContext

an abstraction layer for application-level objects


Method Summary
 void addView(View view)
          adds a view
 Configurator getConfigurator()
           
 View getCurrentView()
           
 DockMode getDockMode()
           
 View getView(int index)
           
 int getViewCount()
           
 boolean isTrusted()
           
 void removeView(View view)
          removes a view Precondition: appContext contains this view
 java.util.Iterator views()
           
 

Method Detail

addView

public void addView(View view)
adds a view

removeView

public void removeView(View view)
removes a view Precondition: appContext contains this view

views

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

getViewCount

public int getViewCount()
Returns:
the number of current views

getView

public View getView(int index)
Returns:
the view at the given index

getCurrentView

public View getCurrentView()
Returns:
the currently active (focussed) view

getDockMode

public DockMode getDockMode()
Returns:
the dock mode (interface style)

getConfigurator

public Configurator getConfigurator()
Returns:
the configurator object for the application

isTrusted

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