Package net.sf.gridarta.gui.mapmenu
Class ActionFactory
- java.lang.Object
-
- net.sf.gridarta.gui.mapmenu.ActionFactory
-
public class ActionFactory extends java.lang.ObjectA factory for creatingMapMenuActioninstances.
-
-
Constructor Summary
Constructors Constructor Description ActionFactory(@NotNull MapViewsManager<?,?,?> mapViewsManager, @NotNull FileControl<?,?,?> fileControl, @NotNull MapImageCache<?,?,?> mapImageCache)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()Begins a lookup sequence.voidend()Ends a lookup sequence.@NotNull javax.swing.ActiongetAction(@NotNull MapMenuEntryMap mapMenuEntryMap)Returns anActionfor aMapMenuEntryMapinstance.
-
-
-
Constructor Detail
-
ActionFactory
public ActionFactory(@NotNull @NotNull MapViewsManager<?,?,?> mapViewsManager, @NotNull @NotNull FileControl<?,?,?> fileControl, @NotNull @NotNull MapImageCache<?,?,?> mapImageCache)Creates a new instance.- Parameters:
mapViewsManager- the map views manager for opening map filesfileControl- the file control for reporting errorsmapImageCache- the map image cache to query
-
-
Method Detail
-
begin
public void begin()
Begins a lookup sequence.
-
end
public void end()
Ends a lookup sequence. All actions not looked up between the preceding call tobegin()are deleted.
-
getAction
@NotNull public @NotNull javax.swing.Action getAction(@NotNull @NotNull MapMenuEntryMap mapMenuEntryMap)Returns anActionfor aMapMenuEntryMapinstance.- Parameters:
mapMenuEntryMap- the instance- Returns:
- the action
-
-