org.skunk.dav.client.gui
Class ExplorerView

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

public class ExplorerView
extends java.lang.Object
implements View


Constructor Summary
ExplorerView(AppContext appContext)
           
 
Method Summary
 void bufferDirtinessChanged(Buffer buffer)
           
 void dispose()
          dispose of the View
 void dock(Buffer buffer)
          add the buffer to the application container widget
 void dockStatus(javax.swing.JComponent statusComponent)
          add a component to the status bar
 void focus(Buffer buffer)
          ensure that the specified docked buffer is visible and has focus
 AppContext getAppContext()
           
 java.awt.Component getComponent()
          get the component corresponding to this view
 java.util.Iterator getDockedBuffers()
           
 Buffer getFocussedBuffer()
           
 boolean isVisible(Buffer buffer)
           
 void setVisible(Buffer buffer, boolean visible)
          attempt to set for the given buffer the given visibility.
 void showStatus(java.lang.String message)
          show a status message
 void undock(Buffer buffer)
          remove the buffer from the application container widget
 void undockStatus(javax.swing.JComponent statusComponent)
          remove a component from the status bar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplorerView

public ExplorerView(AppContext appContext)
Method Detail

getAppContext

public final AppContext getAppContext()
Specified by:
getAppContext in interface View
Following copied from interface: org.skunk.dav.client.gui.View
Returns:
theAppContext object that holds this View

getComponent

public java.awt.Component getComponent()
Description copied from interface: View
get the component corresponding to this view
Specified by:
getComponent in interface View

dock

public void dock(Buffer buffer)
add the buffer to the application container widget
Specified by:
dock in interface View

undock

public void undock(Buffer buffer)
remove the buffer from the application container widget
Specified by:
undock in interface View

getDockedBuffers

public java.util.Iterator getDockedBuffers()
Specified by:
getDockedBuffers in interface View
Returns:
list of current docked buffers

focus

public void focus(Buffer buffer)
ensure that the specified docked buffer is visible and has focus
Specified by:
focus in interface View

getFocussedBuffer

public Buffer getFocussedBuffer()
Specified by:
getFocussedBuffer in interface View
Returns:
the buffer that has focus, or null if there are no buffers

setVisible

public void setVisible(Buffer buffer,
                       boolean visible)
                throws java.lang.UnsupportedOperationException,
                       java.beans.PropertyVetoException
attempt to set for the given buffer the given visibility. Depending on the dock mode, certain settings of this property may be vetoed (e.g., in EMACS_MODE, at least one buffer must be visible at all times, so setting the only visible buffer invisible would not be permitted.) A change of visibility may entail a change to the focusedBuffer property, but it may not change the visibility of another buffer. (Hence, for single-buffer dock modes (like TABBED_PANE_MODE, if restricted to one frame) the setVisible method should throw an UnsupportedOperationException.) Preconditions: the buffer must be docked and non-null.
Specified by:
setVisible in interface View

isVisible

public boolean isVisible(Buffer buffer)
Specified by:
isVisible in interface View
Returns:
whether the given buffer is visible

dispose

public void dispose()
Description copied from interface: View
dispose of the View
Specified by:
dispose in interface View

showStatus

public void showStatus(java.lang.String message)
Description copied from interface: View
show a status message
Specified by:
showStatus in interface View

dockStatus

public void dockStatus(javax.swing.JComponent statusComponent)
add a component to the status bar
Specified by:
dockStatus in interface View

undockStatus

public void undockStatus(javax.swing.JComponent statusComponent)
remove a component from the status bar
Specified by:
undockStatus in interface View

bufferDirtinessChanged

public void bufferDirtinessChanged(Buffer buffer)