public class MapMenuEntryDir extends MapMenuEntry
MapMenuEntry
that represents a directory.Constructor and Description |
---|
MapMenuEntryDir(@NotNull java.lang.String title)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsChildren()
Returns whether this entry is a directory.
|
static boolean |
isValidDirectory(@NotNull java.lang.String title)
Returns whether a title is valid.
|
void |
visit(@NotNull MapMenuEntryVisitor visitor)
Calls the
visit() function of the MapMenuEntryVisitor for
this instance. |
getTitle, setTitle, toString
public MapMenuEntryDir(@NotNull @NotNull java.lang.String title)
title
- the entry's titlepublic 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 callpublic static boolean isValidDirectory(@NotNull @NotNull java.lang.String title)
title
- the title