Package net.sf.gridarta.gui.mapmenu
Class MapMenuEntryMap
- java.lang.Object
-
- net.sf.gridarta.gui.mapmenu.MapMenuEntry
-
- net.sf.gridarta.gui.mapmenu.MapMenuEntryMap
-
- All Implemented Interfaces:
java.io.Serializable
public class MapMenuEntryMap extends MapMenuEntry
AMapMenuEntrythat represents a map.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapMenuEntryMap(@NotNull MapFile mapFile, @NotNull java.lang.String title)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsChildren()Returns whether this entry is a directory.@NotNull MapFilegetMapFile()Returns the map file.voidvisit(@NotNull MapMenuEntryVisitor visitor)Calls thevisit()function of theMapMenuEntryVisitorfor this instance.-
Methods inherited from class net.sf.gridarta.gui.mapmenu.MapMenuEntry
getTitle, setTitle, toString
-
-
-
-
Constructor Detail
-
MapMenuEntryMap
public MapMenuEntryMap(@NotNull @NotNull MapFile mapFile, @NotNull @NotNull java.lang.String title)Creates a new instance.- Parameters:
mapFile- the map filetitle- the entry's title
-
-
Method Detail
-
getMapFile
@NotNull public @NotNull MapFile getMapFile()
Returns the map file.- Returns:
- the map file
-
allowsChildren
public boolean allowsChildren()
Description copied from class:MapMenuEntryReturns whether this entry is a directory.- Specified by:
allowsChildrenin classMapMenuEntry- Returns:
- whether this entry is a directory
-
visit
public void visit(@NotNull @NotNull MapMenuEntryVisitor visitor)Description copied from class:MapMenuEntryCalls thevisit()function of theMapMenuEntryVisitorfor this instance.- Specified by:
visitin classMapMenuEntry- Parameters:
visitor- the visitor to call
-
-