freemind.controller
Class MapModuleManager

java.lang.Object
  extended byfreemind.controller.MapModuleManager

public class MapModuleManager
extends java.lang.Object

Manages the list of MapModules. As this task is very complex, I exported it from Controller to this class to keep Controller simple.


Method Summary
 void changeToMapOfMode(Mode mode)
           
 boolean close(boolean force)
          Close the currently active map, return false if closing cancelled.
 MapModule getMapModule()
           
 void newMapModule(MindMap map)
           
 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

getMapModule

public MapModule getMapModule()

newMapModule

public void newMapModule(MindMap map)

updateMapModuleName

public void updateMapModuleName()

tryToChangeToMapModule

public boolean tryToChangeToMapModule(java.lang.String mapModule)
This is the question whether the map is already opened. If this is the case, the map is automatically opened + returns true. Otherwise does nothing + returns false.


changeToMapOfMode

public void changeToMapOfMode(Mode mode)

close

public boolean close(boolean force)
Close the currently active map, return false if closing cancelled.

Parameters:
force - forces the closing without any save actions.