weka.core
Interface Undoable

All Known Implementing Classes:
ArffPanel, ArffTableModel, ArffTableSorter

public interface Undoable

Interface implemented by classes that support undo.

Version:
$Revision: 1.1.2.1 $
Author:
FracPete (fracpete at waikato dot ac dot nz)

Method Summary
 void addUndoPoint()
          adds an undo point to the undo history
 boolean canUndo()
          returns whether an undo is possible, i.e.
 void clearUndo()
          removes the undo history
 boolean isUndoEnabled()
          returns whether undo support is enabled
 void setUndoEnabled(boolean enabled)
          sets whether undo support is enabled
 void undo()
          undoes the last action
 

Method Detail

isUndoEnabled

public boolean isUndoEnabled()
returns whether undo support is enabled


setUndoEnabled

public void setUndoEnabled(boolean enabled)
sets whether undo support is enabled


clearUndo

public void clearUndo()
removes the undo history


canUndo

public boolean canUndo()
returns whether an undo is possible, i.e. whether there are any undo points saved so far

Returns:
returns TRUE if there is an undo possible

undo

public void undo()
undoes the last action


addUndoPoint

public void addUndoPoint()
adds an undo point to the undo history