|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemind.controller.MapModuleManager
public class MapModuleManager
Manages the list of MapModules. As this task is very complex, I exported it from Controller to this class to keep Controller simple. The information exchange between controller and this class is managed by oberser pattern (the controller observes changes to the map modules here). TODO: Use an vector with the map modules ordered by the screen order.
Nested Class Summary | |
---|---|
static interface |
MapModuleManager.MapModuleChangeObserver
|
static class |
MapModuleManager.MapModuleChangeObserverCompound
|
static interface |
MapModuleManager.MapTitleChangeListener
You can register yourself to this listener at the main controller. |
Method Summary | |
---|---|
void |
addListener(MapModuleManager.MapModuleChangeObserver pListener)
|
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)
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()
|
void |
newMapModule(MindMap map,
ModeController modeController)
|
void |
removeListener(MapModuleManager.MapModuleChangeObserver pListener)
|
boolean |
tryToChangeToMapModule(java.lang.String mapModule)
This is the question whether the map is already opened. |
void |
updateMapModuleName()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 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 void changeToMapOfMode(Mode mode)
public boolean close(boolean force)
force
- forces the closing without any save actions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |