|
JHotDraw 7rev733 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.app.DefaultMenuBuilder
public class DefaultMenuBuilder
DefaultMenuBuilder.
| Field Summary | |
|---|---|
boolean |
suppressIcons
Whether icons in menu items shall be removed. |
| Constructor Summary | |
|---|---|
DefaultMenuBuilder()
|
|
| Method Summary | |
|---|---|
protected javax.swing.JMenuItem |
add(javax.swing.JMenu m,
javax.swing.Action a)
Adds an action to a menu. |
void |
addAboutItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: AboutAction
|
void |
addClearFileItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: ClearFileAction
|
void |
addClipboardItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: CutAction
CopyAction
PasteAction
DuplicateAction
DeleteAction
|
void |
addCloseFileItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: CloseFileAction
|
void |
addExitItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: ExitAction
|
void |
addExportFileItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: ExportFileAction
|
void |
addFindItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: AbstractFindAction
|
void |
addHelpItems(javax.swing.JMenu m,
Application app,
View v)
Does nothing. |
void |
addLoadFileItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: LoadFileAction
LoadDirectoryAction
|
void |
addNewFileItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: NewFileAction
|
void |
addNewWindowItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: NewWindowAction
|
void |
addOpenFileItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: OpenFileAction
OpenDirectoryAction
|
void |
addOtherEditItems(javax.swing.JMenu m,
Application app,
View v)
Does nothing. |
void |
addOtherFileItems(javax.swing.JMenu m,
Application app,
View v)
Does nothing. |
void |
addOtherMenus(java.util.List<javax.swing.JMenu> m,
Application app,
View v)
Does nothing. |
void |
addOtherViewItems(javax.swing.JMenu m,
Application app,
View v)
Does nothing. |
void |
addOtherWindowItems(javax.swing.JMenu m,
Application app,
View v)
Does nothing. |
void |
addPreferencesItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: AbstractPreferencesAction
|
void |
addPrintFileItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: PrintFileAction
|
void |
addSaveFileItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: SaveFileAction
SaveFileAsAction
|
void |
addSelectionItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: SelectAllAction
ClearSelectionAction
|
void |
addUndoItems(javax.swing.JMenu m,
Application app,
View v)
Adds items for the following actions to the menu: UndoAction
RedoAction
|
boolean |
isSuppressIcons()
|
void |
setSuppressIcons(boolean suppressIcons)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean suppressIcons
| Constructor Detail |
|---|
public DefaultMenuBuilder()
| Method Detail |
|---|
public void addPreferencesItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addPreferencesItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addExitItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addExitItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addClearFileItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addClearFileItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addNewWindowItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addNewWindowItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addNewFileItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addNewFileItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addLoadFileItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addLoadFileItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addOpenFileItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addOpenFileItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addCloseFileItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addCloseFileItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addSaveFileItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addSaveFileItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addExportFileItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addExportFileItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addPrintFileItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addPrintFileItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addOtherFileItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addOtherFileItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addUndoItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addUndoItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addClipboardItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addClipboardItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addSelectionItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addSelectionItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addFindItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addFindItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addOtherEditItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addOtherEditItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addOtherViewItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addOtherViewItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addOtherMenus(java.util.List<javax.swing.JMenu> m,
Application app,
@Nullable
View v)
addOtherMenus in interface MenuBuilderm - A (potentially non-empty) list of menus.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addOtherWindowItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addOtherWindowItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addHelpItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addHelpItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.
public void addAboutItems(javax.swing.JMenu m,
Application app,
@Nullable
View v)
addAboutItems in interface MenuBuilderm - A (potentially non-empty) menu.app - The Application for which the menu is built.v - A view the menu is used exclusively for a specific view, null
if the menu is shared by all views.public boolean isSuppressIcons()
public void setSuppressIcons(boolean suppressIcons)
protected javax.swing.JMenuItem add(javax.swing.JMenu m,
javax.swing.Action a)
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||