freemind.modes
public abstract class ControllerAdapter extends Object implements ModeController
| Field Summary | |
|---|---|
| Action | copy |
| Action | copySingle |
| Action | cut |
| int | NEW_CHILD |
| int | NEW_CHILD_WITHOUT_FOCUS |
| int | NEW_SIBLING_BEFORE |
| int | NEW_SIBLING_BEHIND |
| Action | paste |
| protected ControllerAdapter.ControllerPopupMenuListener | popupListenerSingleton Take care! |
| Constructor Summary | |
|---|---|
| ControllerAdapter() | |
| ControllerAdapter(Mode mode) | |
| Method Summary | |
|---|---|
| protected JMenuItem | add(JMenu menu, Action action, String keystroke) |
| protected void | add(JMenu menu, Action action) |
| void | addNew(NodeView target, int newNodeMode, KeyEvent e) |
| void | anotherNodeSelected(MindMapNode n) |
| protected boolean | binOptionIsTrue(String option) |
| boolean | close()
Return false if user has canceled. |
| void | doubleClick(MouseEvent e) |
| void | edit(KeyEvent e, boolean addNew, boolean editLong) |
| boolean | extendSelection(MouseEvent e) |
| Controller | getController() |
| protected FileFilter | getFileFilter()
You may want to implement this...
|
| FreeMindMain | getFrame() |
| protected String | getLinkByFileChooser(FileFilter fileFilter) |
| MapAdapter | getMap() |
| protected MapModule | getMapModule() |
| protected Mode | getMode() |
| JPopupMenu | getPopupForModel(Object obj) Default implementation: no context menu. |
| URL | getResource(String name) |
| protected LinkedList | getSelecteds() fc, 24.1.2004: having two methods getSelecteds with different return values (linkedlists of models resp. views) is asking for trouble. |
| protected String | getText(String textId)
Get text identification of the map |
| MapView | getView() |
| void | handleLoadingException(Exception ex) |
| boolean | isBlocked() |
| void | load(File file)
You may decide to overload this or take the default
and implement the functionality in your MapModel (implements MindMap) |
| void | loadURL(String relative) |
| void | loadURL() |
| void | mapOpened(boolean open)
Call this method if you have opened a map for this mode with true,
and if you have closed a map of this mode with false. |
| void | mouseWheelMoved(MouseWheelEvent e) |
| void | newMap() |
| protected void | newMap(MindMap map) |
| MapAdapter | newModel()
You _must_ implement this if you use one of the following actions:
OpenAction, NewMapAction. |
| protected abstract MindMapNode | newNode() |
| void | nodeChanged(MindMapNode n) |
| void | open() |
| void | plainClick(MouseEvent e) |
| boolean | save() |
| boolean | save(File file)
Return false is the action was cancelled, e.g. when
it has to lead to saving as. |
| boolean | saveAs()
Save as; return false is the action was cancelled |
| protected void | setAllActions(boolean enabled)
Overwrite this to set all of your actions which are
dependent on whether there is a map or not. |
| protected void | setImageByFileChooser() |
| protected void | setLinkByFileChooser() |
| protected void | setLinkByTextField() |
| protected void | setMode(Mode mode) |
| void | showPopupMenu(MouseEvent e) |
| protected void | toggleChildrenFolded()
If any children are folded, unfold all folded children.
|
| void | toggleFolded() |
| protected void | updateMapModuleName() |
Returns: returns the new JMenuItem.