public class MapMenuEntryMap extends MapMenuEntry
MapMenuEntry
that represents a map.Constructor and Description |
---|
MapMenuEntryMap(MapFile mapFile,
java.lang.String title)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsChildren()
Returns whether this entry is a directory.
|
MapFile |
getMapFile()
Returns the map file.
|
void |
visit(MapMenuEntryVisitor visitor)
Calls the
visit() function of the MapMenuEntryVisitor for
this instance. |
getTitle, setTitle, toString
public MapMenuEntryMap(@NotNull MapFile mapFile, @NotNull java.lang.String title)
mapFile
- the map filetitle
- the entry's title@NotNull public MapFile getMapFile()
public boolean allowsChildren()
allowsChildren
in class MapMenuEntry
public void visit(@NotNull MapMenuEntryVisitor visitor)
visit()
function of the MapMenuEntryVisitor
for
this instance.visit
in class MapMenuEntry
visitor
- the visitor to call