org.gerhardb.jibs.viewer
Class UndoableMovingFiles
java.lang.Object
org.gerhardb.jibs.viewer.UndoableMovingFiles
- All Implemented Interfaces:
- javax.swing.undo.UndoableEdit
public class UndoableMovingFiles
- extends java.lang.Object
- implements javax.swing.undo.UndoableEdit
Designed to provide undo support for drags from the main picture
to the file tree.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UndoableMovingFiles
public UndoableMovingFiles(DirectoryTreeNode toDirNode,
IFrame frame,
boolean updateRepeatButton)
throws java.lang.Exception
- Throws:
java.lang.Exception
UndoableMovingFiles
public UndoableMovingFiles(java.io.File toFile,
IFrame frame)
throws java.lang.Exception
- Throws:
java.lang.Exception
getFailedFilesShowingMessage
public java.io.File[] getFailedFilesShowingMessage(SortScreen ss)
setMoveNotCopy
public void setMoveNotCopy(boolean move)
- Set to false if you want to do a copy.
- Parameters:
move - Default is true.
add
public void add(java.lang.Object[] filesPicked,
javax.swing.BoundedRangeModel range)
throws java.lang.Exception
- Throws:
java.lang.Exception
add
public void add(java.io.File file)
throws java.lang.Exception
- Throws:
java.lang.Exception
undo
public void undo()
throws javax.swing.undo.CannotUndoException
- Specified by:
undo in interface javax.swing.undo.UndoableEdit
- Throws:
javax.swing.undo.CannotUndoException
redo
public void redo()
throws javax.swing.undo.CannotRedoException
- Specified by:
redo in interface javax.swing.undo.UndoableEdit
- Throws:
javax.swing.undo.CannotRedoException
canRedo
public boolean canRedo()
- Specified by:
canRedo in interface javax.swing.undo.UndoableEdit
canUndo
public boolean canUndo()
- Specified by:
canUndo in interface javax.swing.undo.UndoableEdit
die
public void die()
- Specified by:
die in interface javax.swing.undo.UndoableEdit
getPresentationName
public java.lang.String getPresentationName()
- Specified by:
getPresentationName in interface javax.swing.undo.UndoableEdit
getRedoPresentationName
public java.lang.String getRedoPresentationName()
- Specified by:
getRedoPresentationName in interface javax.swing.undo.UndoableEdit
getUndoPresentationName
public java.lang.String getUndoPresentationName()
- Specified by:
getUndoPresentationName in interface javax.swing.undo.UndoableEdit
isSignificant
public boolean isSignificant()
- Specified by:
isSignificant in interface javax.swing.undo.UndoableEdit
addEdit
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
- Specified by:
addEdit in interface javax.swing.undo.UndoableEdit
replaceEdit
public boolean replaceEdit(javax.swing.undo.UndoableEdit anEdit)
- Specified by:
replaceEdit in interface javax.swing.undo.UndoableEdit
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
main
public static void main(java.lang.String[] args)
Copyright ? 2007 Gerhard Beck. All rights reserved. Subject to GPL.