Class MapMenuManager<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>


  • public class MapMenuManager<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    Manages the recent menu entries.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initRecent()
      Initializes the recent state.
      void setMenu​(@Nullable javax.swing.JMenu recentMenu)
      Sets the menu to update.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapMenuManager

        public MapMenuManager​(@NotNull
                              @NotNull MapMenu mapMenu,
                              @NotNull
                              @NotNull MapViewsManager<?,​?,​?> mapViewsManager,
                              @NotNull
                              @NotNull FileControl<?,​?,​?> fileControl,
                              @NotNull
                              @NotNull MapImageCache<?,​?,​?> mapImageCache)
        Creates a new instance.
        Parameters:
        mapMenu - the map menu to use
        mapViewsManager - the map views manager for opening map files
        fileControl - the file control for reporting errors
        mapImageCache - the map image cache to query
    • Method Detail

      • setMenu

        public void setMenu​(@Nullable
                            @Nullable javax.swing.JMenu recentMenu)
        Sets the menu to update.
        Parameters:
        recentMenu - the menu or null
      • initRecent

        public void initRecent()
        Initializes the recent state.