org.jhotdraw.app
Class DefaultMenuBuilder
- java.lang.Object
-
- org.jhotdraw.app.DefaultMenuBuilder
-
- All Implemented Interfaces:
- MenuBuilder
public class DefaultMenuBuilder extends java.lang.Object implements MenuBuilder
DefaultMenuBuilder.
-
-
Constructor Summary
Constructors Constructor and Description DefaultMenuBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddAboutItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:AboutActionvoidaddClearFileItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:ClearFileActionvoidaddClipboardItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:CutActionCopyActionPasteActionDuplicateActionDeleteActionvoidaddCloseFileItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:CloseFileActionvoidaddExitItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:ExitActionvoidaddExportFileItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:ExportFileActionvoidaddFindItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:AbstractFindActionvoidaddHelpItems(javax.swing.JMenu m, Application app, View v)Does nothing.voidaddLoadFileItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:LoadFileActionLoadDirectoryActionvoidaddNewFileItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:NewFileActionvoidaddNewWindowItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:NewWindowActionvoidaddOpenFileItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:OpenFileActionOpenDirectoryActionvoidaddOtherEditItems(javax.swing.JMenu m, Application app, View v)Does nothing.voidaddOtherFileItems(javax.swing.JMenu m, Application app, View v)Does nothing.voidaddOtherMenus(java.util.List<javax.swing.JMenu> m, Application app, View v)Does nothing.voidaddOtherViewItems(javax.swing.JMenu m, Application app, View v)Does nothing.voidaddOtherWindowItems(javax.swing.JMenu m, Application app, View v)Does nothing.voidaddPreferencesItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:AbstractPreferencesActionvoidaddPrintFileItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:PrintFileActionvoidaddSaveFileItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:SaveFileActionSaveFileAsActionvoidaddSelectionItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:SelectAllActionClearSelectionActionvoidaddUndoItems(javax.swing.JMenu m, Application app, View v)Adds items for the following actions to the menu:UndoActionRedoAction
-
-
-
Method Detail
-
addPreferencesItems
public void addPreferencesItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addPreferencesItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addExitItems
public void addExitItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addExitItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addClearFileItems
public void addClearFileItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addClearFileItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addNewWindowItems
public void addNewWindowItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addNewWindowItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addNewFileItems
public void addNewFileItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addNewFileItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addLoadFileItems
public void addLoadFileItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addLoadFileItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addOpenFileItems
public void addOpenFileItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addOpenFileItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addCloseFileItems
public void addCloseFileItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addCloseFileItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addSaveFileItems
public void addSaveFileItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addSaveFileItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addExportFileItems
public void addExportFileItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addExportFileItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addPrintFileItems
public void addPrintFileItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addPrintFileItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addOtherFileItems
public void addOtherFileItems(javax.swing.JMenu m, Application app, @Nullable View v)Does nothing.- Specified by:
addOtherFileItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addUndoItems
public void addUndoItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addUndoItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addClipboardItems
public void addClipboardItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addClipboardItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addSelectionItems
public void addSelectionItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addSelectionItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addFindItems
public void addFindItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addFindItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addOtherEditItems
public void addOtherEditItems(javax.swing.JMenu m, Application app, @Nullable View v)Does nothing.- Specified by:
addOtherEditItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addOtherViewItems
public void addOtherViewItems(javax.swing.JMenu m, Application app, @Nullable View v)Does nothing.- Specified by:
addOtherViewItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addOtherMenus
public void addOtherMenus(java.util.List<javax.swing.JMenu> m, Application app, @Nullable View v)Does nothing.- Specified by:
addOtherMenusin interfaceMenuBuilder- Parameters:
m- 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.
-
addOtherWindowItems
public void addOtherWindowItems(javax.swing.JMenu m, Application app, @Nullable View v)Does nothing.- Specified by:
addOtherWindowItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addHelpItems
public void addHelpItems(javax.swing.JMenu m, Application app, @Nullable View v)Does nothing.- Specified by:
addHelpItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
addAboutItems
public void addAboutItems(javax.swing.JMenu m, Application app, @Nullable View v)Adds items for the following actions to the menu:- Specified by:
addAboutItemsin interfaceMenuBuilder- Parameters:
m- 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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG