public abstract class MapMenuEntry
extends java.lang.Object
implements java.io.Serializable
Modifier | Constructor and Description |
---|---|
protected |
MapMenuEntry(@NotNull java.lang.String title)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
allowsChildren()
Returns whether this entry is a directory.
|
@NotNull java.lang.String |
getTitle()
Returns the entry's title.
|
void |
setTitle(@NotNull java.lang.String title)
Sets the entry's title.
|
@NotNull java.lang.String |
toString() |
abstract void |
visit(@NotNull MapMenuEntryVisitor visitor)
Calls the
visit() function of the MapMenuEntryVisitor for
this instance. |
protected MapMenuEntry(@NotNull @NotNull java.lang.String title)
title
- the entry's title@NotNull public @NotNull java.lang.String getTitle()
public void setTitle(@NotNull @NotNull java.lang.String title)
title
- the titlepublic abstract boolean allowsChildren()
public abstract void visit(@NotNull @NotNull MapMenuEntryVisitor visitor)
visit()
function of the MapMenuEntryVisitor
for
this instance.visitor
- the visitor to call@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object