public class MapModuleManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MapModuleManager.MapModuleChangeObserver |
static class |
MapModuleManager.MapModuleChangeObserverCompound |
static interface |
MapModuleManager.MapTitleChangeListener
You can register yourself to this listener at the main controller.
|
static interface |
MapModuleManager.MapTitleContributor
You can register yourself as a contributor to the title at the main
controller.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(MapModuleManager.MapModuleChangeObserver pListener) |
boolean |
changeToMapModule(MapModule mapModuleCandidate) |
boolean |
changeToMapModule(java.lang.String mapModuleDisplayName) |
void |
changeToMapOfMode(Mode mode) |
java.lang.String |
checkIfFileIsAlreadyOpened(java.net.URL urlToCheck)
Checks, whether or not a given url is already opened.
|
boolean |
close(boolean force,
java.lang.StringBuffer pRestorable)
Close the currently active map, return false if closing canceled.
|
java.util.List |
getMapKeys() |
MapModule |
getMapModule() |
java.util.Map |
getMapModules()
Deprecated.
use getMapModuleVector instead (and get the displayname as
MapModule.getDisplayName().
|
java.util.List |
getMapModuleVector() |
MapModule |
getModuleGivenModeController(ModeController pModeController) |
void |
newMapModule(MindMap map,
ModeController modeController) |
void |
removeListener(MapModuleManager.MapModuleChangeObserver pListener) |
void |
swapModules(int src,
int dst) |
boolean |
tryToChangeToMapModule(java.lang.String mapModule)
This is the question whether the map is already opened.
|
void |
updateMapModuleName() |
public void addListener(MapModuleManager.MapModuleChangeObserver pListener)
public void removeListener(MapModuleManager.MapModuleChangeObserver pListener)
public java.util.Map getMapModules()
public java.util.List getMapModuleVector()
public java.util.List getMapKeys()
public MapModule getMapModule()
public void newMapModule(MindMap map, ModeController modeController)
public MapModule getModuleGivenModeController(ModeController pModeController)
public void updateMapModuleName()
public boolean tryToChangeToMapModule(java.lang.String mapModule)
public java.lang.String checkIfFileIsAlreadyOpened(java.net.URL urlToCheck) throws java.net.MalformedURLException
java.net.MalformedURLException
public boolean changeToMapModule(java.lang.String mapModuleDisplayName)
public boolean changeToMapModule(MapModule mapModuleCandidate)
public void changeToMapOfMode(Mode mode)
public boolean close(boolean force, java.lang.StringBuffer pRestorable)
force
- forces the closing without any save actions.pRestorable
- is a buffer, if the name of the restorable is needed after
saving.public void swapModules(int src, int dst)