freemind.modes.browsemode

Class BrowseController

Implemented Interfaces:
ModeController

public class BrowseController
extends ControllerAdapter

Nested Class Summary

Nested classes/interfaces inherited from class freemind.modes.ControllerAdapter

ControllerAdapter.CopyAction, ControllerAdapter.CopySingleAction, ControllerAdapter.CutAction, ControllerAdapter.EditAction, ControllerAdapter.EditCopyAction, ControllerAdapter.EditLongAction, ControllerAdapter.FileOpener, ControllerAdapter.FindAction, ControllerAdapter.FindNextAction, ControllerAdapter.FollowLinkAction, ControllerAdapter.GotoLinkNodeAction, ControllerAdapter.NewChildAction, ControllerAdapter.NewChildWithoutFocusAction, ControllerAdapter.NewMapAction, ControllerAdapter.NewPreviousSiblingAction, ControllerAdapter.NewSiblingAction, ControllerAdapter.NodeDownAction, ControllerAdapter.NodeUpAction, ControllerAdapter.OpenAction, ControllerAdapter.PasteAction, ControllerAdapter.RemoveAction, ControllerAdapter.SaveAction, ControllerAdapter.SaveAsAction, ControllerAdapter.SetImageByFileChooserAction, ControllerAdapter.SetLinkByFileChooserAction, ControllerAdapter.SetLinkByTextFieldAction, ControllerAdapter.ToggleChildrenFoldedAction, ControllerAdapter.ToggleFoldedAction

Field Summary

Fields inherited from class freemind.modes.ControllerAdapter

NEW_CHILD, NEW_CHILD_WITHOUT_FOCUS, NEW_SIBLING_BEFORE, NEW_SIBLING_BEHIND, copy, copySingle, cut, paste, popupListenerSingleton

Constructor Summary

BrowseController(Mode mode)

Method Summary

void
addNew(NodeView target, int newNodeMode, KeyEvent e)
void
doubleClick()
void
edit(KeyEvent e, boolean addNew, boolean editLong)
JPopupMenu
getPopupForModel(java.lang.Object obj)
Link implementation: If this is a link, we want to make a popup with at least removelink available.
JPopupMenu
getPopupMenu()
void
loadURL()
void
loadURL(String relative)
MapAdapter
newModel()
protected MindMapNode
newNode()
protected void
setAllActions(boolean enabled)
Enabled/Disabled all actions that are dependent on whether there is a map open or not.

Methods inherited from class freemind.modes.ControllerAdapter

add, add, addNew, anotherNodeSelected, binOptionIsTrue, close, doubleClick, edit, extendSelection, getController, getFileFilter, getFrame, getLinkByFileChooser, getMap, getMapModule, getMode, getPopupForModel, getResource, getSelecteds, getText, getView, handleLoadingException, isBlocked, load, loadURL, loadURL, mapOpened, mouseWheelMoved, newMap, newMap, newModel, newNode, nodeChanged, open, plainClick, save, save, saveAs, setAllActions, setImageByFileChooser, setLinkByFileChooser, setLinkByTextField, setMode, showPopupMenu, toggleChildrenFolded, toggleFolded, updateMapModuleName

Constructor Details

BrowseController

public BrowseController(Mode mode)

Method Details

addNew

public void addNew(NodeView target,
                   int newNodeMode,
                   KeyEvent e)
Specified by:
addNew in interface ModeController
Overrides:
addNew in interface ControllerAdapter

doubleClick

public void doubleClick()

edit

public void edit(KeyEvent e,
                 boolean addNew,
                 boolean editLong)
Specified by:
edit in interface ModeController
Overrides:
edit in interface ControllerAdapter

getPopupForModel

public JPopupMenu getPopupForModel(java.lang.Object obj)
Link implementation: If this is a link, we want to make a popup with at least removelink available.
Specified by:
getPopupForModel in interface ModeController
Overrides:
getPopupForModel in interface ControllerAdapter

getPopupMenu

public JPopupMenu getPopupMenu()
Specified by:
getPopupMenu in interface ModeController

loadURL

public void loadURL()
Overrides:
loadURL in interface ControllerAdapter

loadURL

public void loadURL(String relative)
Overrides:
loadURL in interface ControllerAdapter

newModel

public MapAdapter newModel()
Overrides:
newModel in interface ControllerAdapter

newNode

protected MindMapNode newNode()
Overrides:
newNode in interface ControllerAdapter

setAllActions

protected void setAllActions(boolean enabled)
Enabled/Disabled all actions that are dependent on whether there is a map open or not.
Overrides:
setAllActions in interface ControllerAdapter