Class MapMenuEntry

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    MapMenuEntryDir, MapMenuEntryMap

    public abstract class MapMenuEntry
    extends java.lang.Object
    implements java.io.Serializable
    Abstract base class for recent and bookmark menu entries.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MapMenuEntry​(@NotNull java.lang.String title)
      Creates a new instance.
    • Constructor Detail

      • MapMenuEntry

        protected MapMenuEntry​(@NotNull
                               @NotNull java.lang.String title)
        Creates a new instance.
        Parameters:
        title - the entry's title
    • Method Detail

      • getTitle

        @NotNull
        public @NotNull java.lang.String getTitle()
        Returns the entry's title.
        Returns:
        the title
      • setTitle

        public void setTitle​(@NotNull
                             @NotNull java.lang.String title)
        Sets the entry's title.
        Parameters:
        title - the title
      • allowsChildren

        public abstract boolean allowsChildren()
        Returns whether this entry is a directory.
        Returns:
        whether this entry is a directory
      • visit

        public abstract void visit​(@NotNull
                                   @NotNull MapMenuEntryVisitor visitor)
        Calls the visit() function of the MapMenuEntryVisitor for this instance.
        Parameters:
        visitor - the visitor to call
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object