jdraw.text_ui
Class TextUI

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

public class TextUI
extends mvp.View

Class TextUI is the companion view for the Text model class. TextUI constructs and composes the Text pulldown menu.


Field Summary
protected  TextMenu textMenu
          The companion model
 
Fields inherited from class mvp.View
editable, model, screen, shown, widget, window
 
Constructor Summary
TextUI(mvp.Screen screen, Text text)
          Construct this with the given screen and companion Text model.
 
Method Summary
 java.awt.Component compose()
          Compose this by composing the Text pulldown menu.
 
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

textMenu

protected TextMenu textMenu
The companion model
Constructor Detail

TextUI

public TextUI(mvp.Screen screen,
              Text text)
Construct this with the given screen and companion Text model. Construct the local TextMenu object.
Parameters:
screen - - The Screen object to be passed to parent constructor.
text - - The Text object to be passed to parent constructor and textMenu.
Method Detail

compose

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