org.browsecode.helpers.menus.html
Class HTMLEditingMenus
java.lang.Object
org.browsecode.helpers.menus.html.HTMLEditingMenus
- All Implemented Interfaces:
- HasMenus
public class HTMLEditingMenus
- extends java.lang.Object
- implements HasMenus
Menus for editing HTML.
Creates a "Format" menu with a variety of options, and in the "Edit" menu it puts in Cut/Copy/Paste/Select All.
If you use this, you may also want to use UndoHandler
for automatic undo/redo support.
For sample code, see TextComponentDemo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLEditingMenus
public HTMLEditingMenus()
HTMLEditingMenus
public HTMLEditingMenus(Dialogs dialogs)
getDialogs
public Dialogs getDialogs()
createEditMenu
protected void createEditMenu(Menu menu)
getFont
public static java.awt.Font getFont(java.lang.String family,
int style,
int size)
getFont
public static java.awt.Font getFont(java.lang.String[] family,
int style,
int size,
java.awt.Font defaultFont)
getFont
public static java.awt.Font getFont(java.lang.String family,
java.awt.Font defaultFont)
getFont
public static java.awt.Font getFont(int size,
java.awt.Font defaultFont)
getFont
public static java.awt.Font getFont(java.lang.String[] family,
java.awt.Font defaultFont)
createFormatMenu
protected void createFormatMenu(Menu menu)
addMenusTo
public void addMenusTo(MenuBarHelper menuBarHelper)
- Specified by:
addMenusTo
in interface HasMenus
addActiveListener
public void addActiveListener(HasMenus.ActiveListener listener)
- Specified by:
addActiveListener
in interface HasMenus
quit
public boolean quit()