arcade.mod.view
Interface IViewer

All Known Implementing Classes:
View

public interface IViewer

The front end GUI of the mod environment. This acts as the view in the model-view-presenter paradigm. This interface provides the presenter with methods for requesting information and updating the view. Generally views should not handle user events or program logic not directly related the interface, but should instead inform the presenter so the presenter may take the proper action.


Method Summary
 void changeCategories(java.util.Collection<java.lang.String> categories)
           
 void changeFrames(java.util.Collection<AbstractListFrame> frames)
          Removes all ListFrames currently in the center panel and replaces them with new ones which are automatically displayed.
 java.lang.String getCurrentCategory()
          Allows the presenter to determine which category of resources the viewer currently has selected
 void initialize()
          Initialize the viewer after construction.
 java.io.File openFileSelect()
          Allows the presenter a graphical means of selecting a file to open.
 java.io.File saveFileSelect()
          Allows the presenter a graphical means of selecting a file to close.
 

Method Detail

initialize

void initialize()
Initialize the viewer after construction. This is necessary because the viewer may be required to select a file in order to create the model, but it also may need data from the model to initialize properly. This method allows partial initialization on construction and full initialization after the model is created.


openFileSelect

java.io.File openFileSelect()
Allows the presenter a graphical means of selecting a file to open.

Returns:
File to open

saveFileSelect

java.io.File saveFileSelect()
Allows the presenter a graphical means of selecting a file to close.

Returns:
File to save to

getCurrentCategory

java.lang.String getCurrentCategory()
Allows the presenter to determine which category of resources the viewer currently has selected

Returns:
category of resources selected in viewer

changeCategories

void changeCategories(java.util.Collection<java.lang.String> categories)

changeFrames

void changeFrames(java.util.Collection<AbstractListFrame> frames)
Removes all ListFrames currently in the center panel and replaces them with new ones which are automatically displayed.

Parameters:
frames - ListFrames to populate the center panel with