public abstract static class AJFileChooser.Deleter extends java.lang.Object
Deleterabstract class allows
AJFileChooserto perform delete operations.
|Constructor and Description|
|Modifier and Type||Method and Description|
This method is called by the default implementation of the following
public abstract boolean canDelete(java.io.File f)
canDelete(File files)method. Usually it is enough to override this method instead the full
public boolean canDelete(java.io.File files)
canDeletereturns false if some of the given files/subdirectories cannot be deleted. In this case,
AJFileChooserwill not try to delete files. If
canDeletereturns true, it doesn't mean that deletion is surely possible - some errors can still occur while deleting; but in this case
AJFileChooserwill try to delete selected files/subdirectories and will show an error message in a case of any errors.
By default, this method calls the previous
canDelete(File f) method for every file/subdirectory
and returns true if and only if
and all such calls return true.
public abstract boolean delete(java.io.File files)
deletetries to delete the given files/subdirectories and returns false in a case of any errors.
AJFileChoosercalls this method to delete files/subdirectories.
public abstract void canDeleteStatusChanged(boolean b)
canDeleteStatusChangedis called every time when the result of
AJFileChooser.canDeleteSelectedFiles()method is changed. You can override this method to control enable/disable status of your delete button (not added by
b- - new value of