|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.File
org.gerhardb.jibs.viewer.sortscreen.UndoableMovingFile
Designed to provide undo support for drags from the main picture to the file tree.
| Field Summary |
| Fields inherited from class java.io.File |
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
UndoableMovingFile(DTNPage dtnPage)
|
|
UndoableMovingFile(java.io.File file)
|
|
UndoableMovingFile(java.io.File file,
DirectoryTreeNode fromDirNode)
|
|
UndoableMovingFile(java.lang.String fileName)
|
|
| Method Summary | |
boolean |
addEdit(javax.swing.undo.UndoableEdit anEdit)
|
boolean |
canRedo()
|
boolean |
canUndo()
|
void |
die()
|
boolean |
doIt(DirectoryTreeNode toDirNode,
boolean move,
SortScreen sortScreen,
boolean addToUndoList,
boolean updateRepeat)
Returning true from this will eventually cause the files to be removed from the scrolling list if that's where the drop orginated from. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getPresentationName()
|
java.lang.String |
getRedoPresentationName()
|
java.lang.String |
getUndoPresentationName()
|
boolean |
isSignificant()
|
void |
redo()
|
boolean |
replaceEdit(javax.swing.undo.UndoableEdit anEdit)
|
void |
undo()
|
| Methods inherited from class java.io.File |
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UndoableMovingFile(java.lang.String fileName)
fileName - File to move.public UndoableMovingFile(java.io.File file)
file - File to move.
public UndoableMovingFile(java.io.File file,
DirectoryTreeNode fromDirNode)
file - File to move.fromDirNode - where it came frompublic UndoableMovingFile(DTNPage dtnPage)
| Method Detail |
public void undo()
throws javax.swing.undo.CannotUndoException
undo in interface javax.swing.undo.UndoableEditjavax.swing.undo.CannotUndoException
public void redo()
throws javax.swing.undo.CannotRedoException
redo in interface javax.swing.undo.UndoableEditjavax.swing.undo.CannotRedoExceptionpublic boolean canRedo()
canRedo in interface javax.swing.undo.UndoableEditpublic boolean canUndo()
canUndo in interface javax.swing.undo.UndoableEditpublic void die()
die in interface javax.swing.undo.UndoableEditpublic java.lang.String getPresentationName()
getPresentationName in interface javax.swing.undo.UndoableEditpublic java.lang.String getRedoPresentationName()
getRedoPresentationName in interface javax.swing.undo.UndoableEditpublic java.lang.String getUndoPresentationName()
getUndoPresentationName in interface javax.swing.undo.UndoableEditpublic boolean isSignificant()
isSignificant in interface javax.swing.undo.UndoableEditpublic boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
addEdit in interface javax.swing.undo.UndoableEditpublic boolean replaceEdit(javax.swing.undo.UndoableEdit anEdit)
replaceEdit in interface javax.swing.undo.UndoableEdit
public boolean doIt(DirectoryTreeNode toDirNode,
boolean move,
SortScreen sortScreen,
boolean addToUndoList,
boolean updateRepeat)
throws java.lang.Exception
toDirNode - The node where the file is to be moved to.move - If true, move. If false, copy.sortScreen - Component to display any error message on top of.addToUndoList - add to undo listupdateRepeat - update repeat
java.lang.Exceptionpublic boolean equals(java.lang.Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||