org.skunk.dav.client.gui
Interface View

All Known Implementing Classes:
ExplorerView

public interface View


Method Summary
 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 component 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)
           
 void undockStatus(javax.swing.JComponent statusComponent)
          remove a component from the status bar
 

Method Detail

dock

public void dock(Buffer buffer)
add the buffer to the application container widget

undock

public void undock(Buffer buffer)

getDockedBuffers

public java.util.Iterator getDockedBuffers()
Returns:
list of current docked components

focus

public void focus(Buffer buffer)
ensure that the specified docked component is visible and has focus

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.

isVisible

public boolean isVisible(Buffer buffer)
Returns:
whether the given buffer is visible

getFocussedBuffer

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

getAppContext

public AppContext getAppContext()
Returns:
theAppContext object that holds this View

dispose

public void dispose()
dispose of the View

showStatus

public void showStatus(java.lang.String message)
show a status message

dockStatus

public void dockStatus(javax.swing.JComponent statusComponent)
add a component to the status bar

undockStatus

public void undockStatus(javax.swing.JComponent statusComponent)
remove a component from the status bar

getComponent

public java.awt.Component getComponent()
get the component corresponding to this view