jdraw.file_ui
Class FileUI

java.lang.Object
  |
  +--mvp.View
        |
        +--jdraw.file_ui.FileUI
All Implemented Interfaces:
java.util.Observer

public class FileUI
extends mvp.View

Class FileUI is the companion view for the File model class. FileUI constructs and composes the File pulldown menu. Standard JFC file and input dialogs used for the File.open and File.saveas commands. Standard JFC error dialogs are used to report any file-related errors. Hence, FileUI does not need to define any additional views other than the pulldown menu.


Field Summary
protected  FileMenu fileMenu
          The companion model
 
Fields inherited from class mvp.View
editable, model, screen, shown, widget, window
 
Constructor Summary
FileUI(mvp.Screen screen, File file)
          Construct this with the given screen and companion File model.
 
Method Summary
 java.awt.Component compose()
          Compose this by composing the File pulldown menu.
 FileMenu getFileMenu()
           
 
Methods inherited from class mvp.View
getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setModel, show, show, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileMenu

protected FileMenu fileMenu
The companion model
Constructor Detail

FileUI

public FileUI(mvp.Screen screen,
              File file)
Construct this with the given screen and companion File model. Construct the local FileMenu object.
Parameters:
screen - - The Screen object on which to put this.
file - - The companion File object.
Method Detail

getFileMenu

public FileMenu getFileMenu()

compose

public java.awt.Component compose()
Compose this by composing the File pulldown menu.
Overrides:
compose in class mvp.View