org.browsecode.helpers.menus.html
Class HTMLEditingMenus

java.lang.Object
  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.browsecode.helpers.menus.HasMenus
HasMenus.ActiveListener
 
Constructor Summary
HTMLEditingMenus()
           
HTMLEditingMenus(Dialogs dialogs)
           
 
Method Summary
 void addActiveListener(HasMenus.ActiveListener listener)
           
 void addMenusTo(MenuBarHelper menuBarHelper)
           
protected  void createEditMenu(Menu menu)
           
protected  void createFormatMenu(Menu menu)
           
 Dialogs getDialogs()
           
static java.awt.Font getFont(int size, java.awt.Font defaultFont)
           
static java.awt.Font getFont(java.lang.String[] family, java.awt.Font defaultFont)
           
static java.awt.Font getFont(java.lang.String[] family, int style, int size, java.awt.Font defaultFont)
           
static java.awt.Font getFont(java.lang.String family, java.awt.Font defaultFont)
           
static java.awt.Font getFont(java.lang.String family, int style, int size)
           
 boolean quit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLEditingMenus

public HTMLEditingMenus()

HTMLEditingMenus

public HTMLEditingMenus(Dialogs dialogs)
Method Detail

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()