Gridarta Editor
MapMenuEntry.java
Go to the documentation of this file.
1
/*
2
* Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3
* Copyright (C) 2000-2023 The Gridarta Developers.
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
package
net.sf.gridarta.gui.mapmenu;
21
22
import
java.io.Serializable;
23
import
org.jetbrains.annotations.NotNull;
24
29
public
abstract
class
MapMenuEntry
implements
Serializable {
30
34
private
static
final
long
serialVersionUID
= 1L;
35
39
@NotNull
40
private
String
title
;
41
46
protected
MapMenuEntry
(@NotNull
final
String
title
) {
47
this.title =
title
;
48
}
49
54
@NotNull
55
public
String
getTitle
() {
56
return
title
;
57
}
58
63
public
void
setTitle
(@NotNull
final
String
title
) {
64
this.title =
title
;
65
}
66
71
public
abstract
boolean
allowsChildren
();
72
78
public
abstract
void
visit
(@NotNull
MapMenuEntryVisitor
visitor);
79
80
@NotNull
81
@Override
82
public
String
toString
() {
83
return
title
;
84
}
85
86
}
net.sf.gridarta.gui.mapmenu.MapMenuEntry
Abstract base class for recent and bookmark menu entries.
Definition:
MapMenuEntry.java:29
net.sf.gridarta.gui.mapmenu.MapMenuEntry.toString
String toString()
Definition:
MapMenuEntry.java:82
net.sf.gridarta.gui.mapmenu.MapMenuEntry.MapMenuEntry
MapMenuEntry(@NotNull final String title)
Creates a new instance.
Definition:
MapMenuEntry.java:46
net.sf.gridarta.gui.mapmenu.MapMenuEntry.getTitle
String getTitle()
Returns the entry's title.
Definition:
MapMenuEntry.java:55
net.sf.gridarta.gui.mapmenu.MapMenuEntry.allowsChildren
abstract boolean allowsChildren()
Returns whether this entry is a directory.
net.sf.gridarta.gui.mapmenu.MapMenuEntry.visit
abstract void visit(@NotNull MapMenuEntryVisitor visitor)
Calls the.
net.sf.gridarta.gui.mapmenu.MapMenuEntry.title
String title
The title.
Definition:
MapMenuEntry.java:40
net.sf.gridarta.gui.mapmenu.MapMenuEntryVisitor
Interface for classes operating on MapMenuEntry instances.
Definition:
MapMenuEntryVisitor.java:28
net.sf.gridarta.gui.mapmenu.MapMenuEntry.setTitle
void setTitle(@NotNull final String title)
Sets the entry's title.
Definition:
MapMenuEntry.java:63
net.sf.gridarta.gui.mapmenu.MapMenuEntry.serialVersionUID
static final long serialVersionUID
The serial version UID.
Definition:
MapMenuEntry.java:34
src
gridarta
src
main
java
net
sf
gridarta
gui
mapmenu
MapMenuEntry.java
Generated on Mon Sep 1 2025 00:35:55 for Gridarta Editor by
1.8.17