info.bioinfweb.treegraph.gui.actions
Class ActionManagement
java.lang.Object
  
info.webinsel.util.swing.ActionHashMap
      
info.bioinfweb.treegraph.gui.actions.ActionManagement
public class ActionManagement
- extends info.webinsel.util.swing.ActionHashMap
 
This class organizes the action objects of TreeGraph.
- Author:
 
  - Ben Stöver
 
 
 
 
| Methods inherited from class info.webinsel.util.swing.ActionHashMap | 
clear, get, getMap, isEmpty, put, remove, size | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
mainFrame
private MainFrame mainFrame
popupActions
private Vector<Action> popupActions
popupMenu
private JPopupMenu popupMenu
ActionManagement
public ActionManagement(MainFrame mainFrame)
fillMap
protected void fillMap()
- All 
Action objects used in TreeGraph 2 added to the HashMap
 in this mehtod. New actions should be added here as well.
 
 
fillPopupActions
private void fillPopupActions()
 
setActionStatusBySelection
private void setActionStatusBySelection(Document document,
                                        TreeSelection selection,
                                        NodeBranchDataAdapter tableAdapter)
 
editUndoRedoMenus
private void editUndoRedoMenus()
- Sets the contents undo and redo menu or disables them.
- Since:
 
  - 2.0.23
 
 
 
refreshActionStatus
public void refreshActionStatus()
- Enables or disables all action objects by calling their 
 
setEnabled(Document, TreeSelection)-methods. Additionally the
 undo and redo actions are enabled depending on the contents of the undo manager
 and the action that would switch to the current view mode is disabled (which
 illustrated the current view mode to the user).
- Specified by:
 refreshActionStatus in class info.webinsel.util.swing.ActionHashMap
 
- See Also:
 ActionHashMap.refreshActionStatus()
 
 
getPopupMenu
public JPopupMenu getPopupMenu(PaintableElement selected)