JIDE 3.5.15

com.jidesoft.list
Class UndoableListInstaller

java.lang.Object
  extended by com.jidesoft.list.UndoableListInstaller
All Implemented Interfaces:
PropertyChangeListener, EventListener, ListDataListener

public class UndoableListInstaller
extends Object
implements ListDataListener, PropertyChangeListener

The installer to make a JList have undoable feature.

Since:
3.3.5

Constructor Summary
UndoableListInstaller(JList list)
          The constructor.
 
Method Summary
 void addUndo(UndoableEdit edit)
          Adds an undoable edit to JideTable for further undo/redo.
 void addUndoableEditListener(UndoableEditListener listener)
          Adds the undoable edit listener.
 void contentsChanged(ListDataEvent e)
           
protected  ListTransferHandler createDefaultTransferHandler()
          Creates the default transfer handler.
 UndoManager getUndoManager()
          Gets the undo manager.
 void intervalAdded(ListDataEvent e)
           
 void intervalRemoved(ListDataEvent e)
           
 void propertyChange(PropertyChangeEvent evt)
           
 void removeUndoableEditListener(UndoableEditListener listener)
          Removes the undoable edit listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoableListInstaller

public UndoableListInstaller(JList list)
The constructor.

Parameters:
list - the list to install undoable feature
Method Detail

createDefaultTransferHandler

protected ListTransferHandler createDefaultTransferHandler()
Creates the default transfer handler.

By default, it creates a BasicListUI.ListTransferHandler.

Returns:
the default transfer handler.

intervalAdded

public void intervalAdded(ListDataEvent e)
Specified by:
intervalAdded in interface ListDataListener

intervalRemoved

public void intervalRemoved(ListDataEvent e)
Specified by:
intervalRemoved in interface ListDataListener

contentsChanged

public void contentsChanged(ListDataEvent e)
Specified by:
contentsChanged in interface ListDataListener

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

addUndo

public void addUndo(UndoableEdit edit)
Adds an undoable edit to JideTable for further undo/redo.

Parameters:
edit - the UndoableEdit

getUndoManager

public UndoManager getUndoManager()
Gets the undo manager.

Returns:
the undo manager

addUndoableEditListener

public void addUndoableEditListener(UndoableEditListener listener)
Adds the undoable edit listener.

Parameters:
listener - the listener

removeUndoableEditListener

public void removeUndoableEditListener(UndoableEditListener listener)
Removes the undoable edit listener.

Parameters:
listener - the listener

JIDE 3.5.15