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