com.rapidminer.gui.actions
Class Actions

java.lang.Object
  extended by com.rapidminer.gui.actions.Actions
All Implemented Interfaces:
ProcessEditor, java.util.EventListener

public class Actions
extends java.lang.Object
implements ProcessEditor

A process editor that enables/disables actions depending on the selection of operators.

Author:
Simon Fischer, Tobias Malbrecht

Field Summary
 javax.swing.Action DELETE_OPERATOR_ACTION
           
 javax.swing.Action INFO_OPERATOR_ACTION
           
 javax.swing.Action MAKE_DIRTY_ACTION
           
 javax.swing.Action NEW_BUILDING_BLOCK_ACTION
           
 javax.swing.Action NEW_OPERATOR_ACTION
           
 javax.swing.Action RENAME_OPERATOR_ACTION
           
 javax.swing.Action SAVE_BUILDING_BLOCK_ACTION
           
 ToggleActivationItem TOGGLE_ACTIVATION_ITEM
           
 ToggleAllBreakpointsItem TOGGLE_ALL_BREAKPOINTS
           
 ToggleBreakpointItem[] TOGGLE_BREAKPOINT
           
 
Constructor Summary
Actions(MainFrame mainFrame)
           
 
Method Summary
 void addToOperatorPopupMenu(javax.swing.JPopupMenu menu, javax.swing.Action renameAction)
          Creates a new popup menu for the selected operator.
 void delete()
          The currently selected operator will be deleted.
 void enableActions()
          Enables and disables all actions according to the current state (process running, operator selected...
 Operator getFirstSelectedOperator()
           
 Process getProcess()
           
 Operator getRootOperator()
           
 Operator getSelectedOperator()
           
 java.util.List<Operator> getSelectedOperators()
           
 void insert(java.util.List<Operator> newOperators)
          The given operators will be inserted at the last position of the currently selected operator chain.
 void processChanged(Process process)
          Notifies the component that the entire process has changed.
 void processUpdated(Process process)
          Notifies the component that process was updated in some way.
 void setSelection(java.util.List<Operator> selection)
          Sets the currently selected operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFO_OPERATOR_ACTION

public final javax.swing.Action INFO_OPERATOR_ACTION

TOGGLE_ACTIVATION_ITEM

public final ToggleActivationItem TOGGLE_ACTIVATION_ITEM

RENAME_OPERATOR_ACTION

public final javax.swing.Action RENAME_OPERATOR_ACTION

NEW_OPERATOR_ACTION

public final javax.swing.Action NEW_OPERATOR_ACTION

NEW_BUILDING_BLOCK_ACTION

public final javax.swing.Action NEW_BUILDING_BLOCK_ACTION

SAVE_BUILDING_BLOCK_ACTION

public final javax.swing.Action SAVE_BUILDING_BLOCK_ACTION

DELETE_OPERATOR_ACTION

public final javax.swing.Action DELETE_OPERATOR_ACTION

TOGGLE_BREAKPOINT

public final ToggleBreakpointItem[] TOGGLE_BREAKPOINT

TOGGLE_ALL_BREAKPOINTS

public final transient ToggleAllBreakpointsItem TOGGLE_ALL_BREAKPOINTS

MAKE_DIRTY_ACTION

public final transient javax.swing.Action MAKE_DIRTY_ACTION
Constructor Detail

Actions

public Actions(MainFrame mainFrame)
Method Detail

addToOperatorPopupMenu

public void addToOperatorPopupMenu(javax.swing.JPopupMenu menu,
                                   javax.swing.Action renameAction)
Creates a new popup menu for the selected operator.


getFirstSelectedOperator

public Operator getFirstSelectedOperator()

getSelectedOperators

public java.util.List<Operator> getSelectedOperators()

enableActions

public void enableActions()
Enables and disables all actions according to the current state (process running, operator selected...


delete

public void delete()
The currently selected operator will be deleted.


insert

public void insert(java.util.List<Operator> newOperators)
The given operators will be inserted at the last position of the currently selected operator chain.


getSelectedOperator

public Operator getSelectedOperator()

getRootOperator

public Operator getRootOperator()

getProcess

public Process getProcess()

processChanged

public void processChanged(Process process)
Description copied from interface: ProcessEditor
Notifies the component that the entire process has changed.

Specified by:
processChanged in interface ProcessEditor

processUpdated

public void processUpdated(Process process)
Description copied from interface: ProcessEditor
Notifies the component that process was updated in some way.

Specified by:
processUpdated in interface ProcessEditor

setSelection

public void setSelection(java.util.List<Operator> selection)
Description copied from interface: ProcessEditor
Sets the currently selected operator.

Specified by:
setSelection in interface ProcessEditor


Copyright © 2001-2009 by Rapid-I