|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
javax.swing.event.ListDataEvent
com.jidesoft.list.UndoableListDataEvent
public class UndoableListDataEvent
A special ListDataEvent that contains the information of UndoableEdit.
| Field Summary |
|---|
| Fields inherited from class javax.swing.event.ListDataEvent |
|---|
CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
UndoableListDataEvent(Object source,
int type,
int index0,
int index1)
The constructor. |
|
| Method Summary | |
|---|---|
void |
addEdit(int rowIndex,
int type,
Object oldContent,
Object newContent)
Adds a new cell edit into the UndoableEdit. |
boolean |
addEdit(UndoableEdit anEdit)
|
boolean |
canRedo()
|
boolean |
canUndo()
|
void |
die()
|
static void |
fireListDataEvent(AbstractListModel listModel,
ListDataEvent e)
Helper method to fire an UndoableListDataEvent. |
com.jidesoft.list.UndoableListDataEvent.ListModelEdit[] |
getEdits()
Gets all the ListModelEdit instance in array. |
int |
getIndex0()
|
int |
getIndex1()
|
String |
getPresentationName()
|
String |
getRedoPresentationName()
|
int |
getType()
|
String |
getUndoPresentationName()
|
boolean |
isSignificant()
|
boolean |
isUndoRedo()
Gets the flag indicating if this event is triggered by an undo/redo activity or not. |
void |
redo()
|
boolean |
replaceEdit(UndoableEdit anEdit)
|
void |
setIndex0(int index0)
Sets the first row of this event. |
void |
setIndex1(int index1)
Sets the last row of this event. |
void |
setType(int type)
Sets the event type of this event. |
void |
setUndoRedo(boolean undoRedo)
Sets the flag indicating if this event is triggered by an undo/redo activity or not. |
void |
undo()
|
| Methods inherited from class javax.swing.event.ListDataEvent |
|---|
toString |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UndoableListDataEvent(Object source,
int type,
int index0,
int index1)
source - the list modeltype - the event typeindex0 - the start indexindex1 - the end index| Method Detail |
|---|
public void addEdit(int rowIndex,
int type,
Object oldContent,
Object newContent)
rowIndex - the row indextype - the edit typeoldContent - the old contentnewContent - the new contentpublic void die()
die in interface UndoableEdit
public void undo()
throws CannotUndoException
undo in interface UndoableEditCannotUndoExceptionpublic boolean canUndo()
canUndo in interface UndoableEdit
public void redo()
throws CannotRedoException
redo in interface UndoableEditCannotRedoExceptionpublic boolean canRedo()
canRedo in interface UndoableEditpublic boolean addEdit(UndoableEdit anEdit)
addEdit in interface UndoableEditpublic boolean replaceEdit(UndoableEdit anEdit)
replaceEdit in interface UndoableEditpublic boolean isSignificant()
isSignificant in interface UndoableEditpublic String getPresentationName()
getPresentationName in interface UndoableEditpublic String getUndoPresentationName()
getUndoPresentationName in interface UndoableEditpublic String getRedoPresentationName()
getRedoPresentationName in interface UndoableEditpublic void setUndoRedo(boolean undoRedo)
undoRedo - the flagpublic boolean isUndoRedo()
public com.jidesoft.list.UndoableListDataEvent.ListModelEdit[] getEdits()
public void setType(int type)
type - tye type.public int getType()
getType in class ListDataEventpublic void setIndex0(int index0)
index0 - the first rowpublic int getIndex0()
getIndex0 in class ListDataEventpublic void setIndex1(int index1)
index1 - the last rowpublic int getIndex1()
getIndex1 in class ListDataEvent
public static void fireListDataEvent(AbstractListModel listModel,
ListDataEvent e)
listModel - the list modele - the event to fire
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||