caltool.file_ui
Class FileUI
java.lang.Object
mvp.View
caltool.file_ui.FileUI
- All Implemented Interfaces:
- java.io.Serializable, 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, File.saveAs, and
File.print 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.
- See Also:
- Serialized Form
Fields inherited from class mvp.View |
closeAdapter, 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. |
Methods inherited from class mvp.View |
getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setExitOnClose, setModel, show, show, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileMenu
protected FileMenu fileMenu
- The companion model
FileUI
public FileUI(mvp.Screen screen,
File file)
- Construct this with the given screen and companion File model.
compose
public java.awt.Component compose()
- Compose this by composing the File pulldown menu.
- Overrides:
compose
in class mvp.View