Documentation of 'org.jhotdraw.app.DefaultMenuBuilder' Java class
DefaultMenuBuilder
org.jhotdraw.app

Class DefaultMenuBuilder

  • All Implemented Interfaces:
    MenuBuilder


    public class DefaultMenuBuilder
    extends java.lang.Object
    implements MenuBuilder
    DefaultMenuBuilder.
    • Constructor Detail

      • DefaultMenuBuilder

        public DefaultMenuBuilder()
    • 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:
        addPreferencesItems in interface MenuBuilder
        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:
        addExitItems in interface MenuBuilder
        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:
        addClearFileItems in interface MenuBuilder
        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:
        addNewWindowItems in interface MenuBuilder
        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:
        addNewFileItems in interface MenuBuilder
        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:
        addLoadFileItems in interface MenuBuilder
        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:
        addOpenFileItems in interface MenuBuilder
        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:
        addCloseFileItems in interface MenuBuilder
        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:
        addSaveFileItems in interface MenuBuilder
        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:
        addExportFileItems in interface MenuBuilder
        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:
        addPrintFileItems in interface MenuBuilder
        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:
        addOtherFileItems in interface MenuBuilder
        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:
        addUndoItems in interface MenuBuilder
        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:
        addSelectionItems in interface MenuBuilder
        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:
        addFindItems in interface MenuBuilder
        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:
        addOtherEditItems in interface MenuBuilder
        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:
        addOtherViewItems in interface MenuBuilder
        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:
        addOtherMenus in interface MenuBuilder
        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:
        addOtherWindowItems in interface MenuBuilder
        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:
        addHelpItems in interface MenuBuilder
        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:
        addAboutItems in interface MenuBuilder
        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

You see the box below because you did not login.