|
Gridarta Editor
|
Inheritance diagram for net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| boolean | closeAllMaps () |
| Invoked when the user wants to close all maps. More... | |
| boolean | confirmSaveChanges (@NotNull MapControl< G, A, R > mapControl) |
| Asks the user whether to save changes of a map. More... | |
| void | openFile (boolean mapFile) |
| The user wants to edit a file. More... | |
| void | reportLoadError (@Nullable File file, @NotNull String message) |
| void | reportOutOfMapBoundsDeleted (@NotNull File file, int outOfMapBoundsDeleted, @NotNull StringBuilder outOfMapBoundsObjects) |
| void | reportOutOfMemory (@NotNull File file) |
| void | reportSaveError (@NotNull MapControl< G, A, R > mapControl, @NotNull String message) |
| Reports an error while saving a map file to the user. More... | |
| void | reportSaveError (@NotNull File mapFile, @NotNull String message) |
| Reports an error while saving a map file to the user. More... | |
| void | reportTeleportCharacterError (@NotNull String mapPath, @NotNull String message) |
| Reports an error while teleporting a character to the current map. More... | |
| boolean | save (@NotNull MapControl< G, A, R > mapControl) |
| Save one map. More... | |
| void | saveAllMaps () |
| Saves all maps. More... | |
| boolean | saveAs (@NotNull MapControl< G, A, R > mapControl) |
| Asks the user for a filename, then saves the map. More... | |
Definition at line 30 of file FileControl.java.
| boolean net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.closeAllMaps | ( | ) |
Invoked when the user wants to close all maps.
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
Referenced by net.sf.gridarta.action.ExitAction.canExit().
Here is the caller graph for this function:| boolean net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.confirmSaveChanges | ( | @NotNull MapControl< G, A, R > | mapControl | ) |
Asks the user whether to save changes of a map.
Returns
(and does not ask the user) if the map is unmodified.
| mapControl | the map |
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
Referenced by net.sf.gridarta.gui.map.mapview.MapViewsManager<?, ?, ?>.closeMapView().
Here is the caller graph for this function:| void net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.openFile | ( | boolean | mapFile | ) |
The user wants to edit a file.
| mapFile |
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
| void net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.reportLoadError | ( | @Nullable File | file, |
| @NotNull String | message | ||
| ) |
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
Referenced by net.sf.gridarta.gui.mapmenu.MapMenuAction.actionPerformed(), net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitConnect(), net.sf.gridarta.gui.panel.pickmapchooser.PickmapChooserControl<?, ?, ?>.doOpenPickmapMap(), net.sf.gridarta.gui.map.MapFileActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doReloadMap(), and net.sf.gridarta.gui.map.mapactions.EnterMap< G, A, R >.enterMap().
Here is the caller graph for this function:| void net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.reportOutOfMapBoundsDeleted | ( | @NotNull File | file, |
| int | outOfMapBoundsDeleted, | ||
| @NotNull StringBuilder | outOfMapBoundsObjects | ||
| ) |
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
Referenced by net.sf.gridarta.model.mapmanager.AbstractMapManager< G, A, R >.decodeMapFile().
Here is the caller graph for this function:| void net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.reportOutOfMemory | ( | @NotNull File | file | ) |
| void net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.reportSaveError | ( | @NotNull MapControl< G, A, R > | mapControl, |
| @NotNull String | message | ||
| ) |
Reports an error while saving a map file to the user.
| mapControl | the map control that failed saving |
| message | the error message |
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitConnect().
Here is the caller graph for this function:| void net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.reportSaveError | ( | @NotNull File | mapFile, |
| @NotNull String | message | ||
| ) |
Reports an error while saving a map file to the user.
| mapFile | the map file that failed saving |
| message | the error message |
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
| void net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.reportTeleportCharacterError | ( | @NotNull String | mapPath, |
| @NotNull String | message | ||
| ) |
Reports an error while teleporting a character to the current map.
| mapPath | the map path to teleport to |
| message | the error message |
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
Referenced by net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.doOpenInClient().
Here is the caller graph for this function:| boolean net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.save | ( | @NotNull MapControl< G, A, R > | mapControl | ) |
Save one map.
| mapControl | the map |
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
Referenced by net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.doOpenInClient(), and net.sf.gridarta.gui.map.MapFileActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doSaveMap().
Here is the caller graph for this function:| void net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.saveAllMaps | ( | ) |
| boolean net.sf.gridarta.model.mapmanager.FileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.saveAs | ( | @NotNull MapControl< G, A, R > | mapControl | ) |
Asks the user for a filename, then saves the map.
| mapControl | the map |
Implemented in net.sf.gridarta.gui.misc.DefaultFileControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.
Here is the caller graph for this function: