* TFileOpenBox can be called for either Open or Save actions.
*/
public enum Type {
+ /**
+ * Button will be labeled "Open".
+ */
OPEN,
+
+ /**
+ * Button will be labeled "Save".
+ */
SAVE
}
* directory, then
*
* @param newFilename the filename to check and return
+ * @throws IOException of a java.io operation throws
*/
private void checkFilename(final String newFilename) throws IOException {
File newFile = new File(newFilename);
* @param application the TApplication that manages this window
* @param path path of selected file
* @param type one of the Type constants
+ * @throws IOException of a java.io operation throws
*/
public TFileOpenBox(final TApplication application, final String path,
final Type type) throws IOException {