Gridarta Editor
net.sf.gridarta.gui.mapmenu.MapMenuEntry Class Referenceabstract

Abstract base class for recent and bookmark menu entries. More...

+ Inheritance diagram for net.sf.gridarta.gui.mapmenu.MapMenuEntry:
+ Collaboration diagram for net.sf.gridarta.gui.mapmenu.MapMenuEntry:

Public Member Functions

abstract boolean allowsChildren ()
 Returns whether this entry is a directory. More...
 
String getTitle ()
 Returns the entry's title. More...
 
void setTitle (@NotNull final String title)
 Sets the entry's title. More...
 
String toString ()
 
abstract void visit (@NotNull MapMenuEntryVisitor visitor)
 Calls the. More...
 

Protected Member Functions

 MapMenuEntry (@NotNull final String title)
 Creates a new instance. More...
 

Private Attributes

String title
 The title. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

Abstract base class for recent and bookmark menu entries.

Author
Andreas Kirschbaum

Definition at line 29 of file MapMenuEntry.java.

Constructor & Destructor Documentation

◆ MapMenuEntry()

net.sf.gridarta.gui.mapmenu.MapMenuEntry.MapMenuEntry ( @NotNull final String  title)
protected

Creates a new instance.

Parameters
titlethe entry's title

Definition at line 46 of file MapMenuEntry.java.

References net.sf.gridarta.gui.mapmenu.MapMenuEntry.title.

Member Function Documentation

◆ allowsChildren()

abstract boolean net.sf.gridarta.gui.mapmenu.MapMenuEntry.allowsChildren ( )
abstract

Returns whether this entry is a directory.

Returns
whether this entry is a directory

Referenced by net.sf.gridarta.gui.mapmenu.MapMenu.getOrCreateDirectory(), net.sf.gridarta.gui.mapmenu.MapMenuEntry.setTitle(), and net.sf.gridarta.gui.mapmenu.MapMenu.size().

+ Here is the caller graph for this function:

◆ getTitle()

◆ setTitle()

void net.sf.gridarta.gui.mapmenu.MapMenuEntry.setTitle ( @NotNull final String  title)

Sets the entry's title.

Parameters
titlethe title

Definition at line 63 of file MapMenuEntry.java.

References net.sf.gridarta.gui.mapmenu.MapMenuEntry.allowsChildren(), net.sf.gridarta.gui.mapmenu.MapMenuEntry.title, and net.sf.gridarta.gui.mapmenu.MapMenuEntry.visit().

Referenced by net.sf.gridarta.gui.mapmenu.MapMenuPreferencesTest.test3().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toString()

String net.sf.gridarta.gui.mapmenu.MapMenuEntry.toString ( )

Definition at line 82 of file MapMenuEntry.java.

References net.sf.gridarta.gui.mapmenu.MapMenuEntry.title.

Referenced by net.sf.gridarta.gui.mapmenu.MapMenu.getDirectory().

+ Here is the caller graph for this function:

◆ visit()

abstract void net.sf.gridarta.gui.mapmenu.MapMenuEntry.visit ( @NotNull MapMenuEntryVisitor  visitor)
abstract

Member Data Documentation

◆ serialVersionUID

final long net.sf.gridarta.gui.mapmenu.MapMenuEntry.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 34 of file MapMenuEntry.java.

◆ title


The documentation for this class was generated from the following file: