qat.common
Class SwingUtils
java.lang.Object
qat.common.SwingUtils
- public abstract class SwingUtils
- extends java.lang.Object
Method Summary |
static void |
copy(java.lang.String sourceName,
java.lang.String destName,
StatusWindow status)
This method copies sourceName to destName.
|
static void |
delete(java.io.File node,
StatusWindow status)
This method deletes the file specified by fileName.
|
static void |
delete(java.lang.String fileName,
StatusWindow status)
This method deletes the file specified by fileName.
|
static void |
setLocationRelativeTo(java.awt.Window child,
java.awt.Window parent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwingUtils
public SwingUtils()
copy
public static void copy(java.lang.String sourceName,
java.lang.String destName,
StatusWindow status)
throws java.io.IOException
- This method copies sourceName to destName.
If sourceName is a directory, a recursive copy of all sub-directories
is done.
- Parameters:
sourceName
- the name of the source file/directory to be copied.destName
- the name of the destination file/directory.status
- gui component to poll status.
- Throws:
java.io.IOException
- thrown if any of the files cannot be read or written.
delete
public static void delete(java.lang.String fileName,
StatusWindow status)
throws java.io.IOException
- This method deletes the file specified by fileName.
If it is a directory, all subdirectories are also deleted.
- Parameters:
fileName
- the name of the file or directory to be deleted.
- Throws:
java.io.IOException
- thrown if the file or directory could not be deleted.
delete
public static void delete(java.io.File node,
StatusWindow status)
throws java.io.IOException
- This method deletes the file specified by fileName.
If it is a directory, all subdirectories are also deleted.
- Parameters:
node
- the File identifier of the file or directory to be deleted.
- Throws:
java.io.IOException
- thrown if the file or directory could not be deleted.
setLocationRelativeTo
public static void setLocationRelativeTo(java.awt.Window child,
java.awt.Window parent)
See QAT project for licensing details