|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--mvp.View
|
+--jdraw.text_ui.TextMenu
Class TextMenu is the pulldown menu for the Text model. The TextMenu widget is a JMenu. Anonymous instances of JMenuItem are defined for each menu item.
| Field Summary | |
protected int |
currentFontGroup
An int object to store the current font Group. |
protected int |
currentFontSize
An int object to store the current font Size. |
protected int |
currentFontStyle
An int object to store the current font Style. |
protected FontDialog |
fontDialog
A FontDialog from which to select the current font. |
protected FontSizeDialog |
fontSizeDialog
A FontSizeDialog from which to select the current font size. |
protected Text |
text
A local reference to the Text model. |
| Fields inherited from class mvp.View |
editable, model, screen, shown, widget, window |
| Constructor Summary | |
TextMenu(mvp.Screen screen,
Text text,
TextUI textUI)
Construct the menu with the given Text model. |
|
| Method Summary | |
java.awt.Component |
compose()
Compose the menu items into the pulldown. |
protected javax.swing.JMenu |
composeFontSize()
Menu Item Two is the Font Size Menu. |
protected javax.swing.JMenu |
composeFontStyle()
Menu Item Three is the Font Style Menu. |
protected javax.swing.JMenuItem |
composeFontType()
Menu Item One is the Font Type 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 |
protected Text text
protected int currentFontGroup
protected int currentFontSize
protected int currentFontStyle
protected FontDialog fontDialog
protected FontSizeDialog fontSizeDialog
| Constructor Detail |
public TextMenu(mvp.Screen screen,
Text text,
TextUI textUI)
screen - - The Screen object to be passed to parent constructor.text - - The Text object to be set as this.text.textUI - - The TextUI view object.| Method Detail |
public java.awt.Component compose()
compose in class mvp.Viewprotected javax.swing.JMenuItem composeFontType()
protected javax.swing.JMenu composeFontSize()
protected javax.swing.JMenu composeFontStyle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||