public class FileOption extends StringOption
Modifier and Type | Field and Description |
---|---|
protected String |
defaultFileExtension |
protected boolean |
isOutputFile |
currentVal, defaultVal
cliChar, illegalNameCharacters, name, purpose
Constructor and Description |
---|
FileOption(String name,
char cliChar,
String purpose,
String defaultFileName,
String defaultExtension,
boolean isOutput) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultFileExtension() |
JComponent |
getEditComponent()
Gets the GUI component to edit
|
File |
getFile() |
boolean |
isOutputFile() |
getDefaultCLIString, getValue, getValueAsCLIString, setValue, setValueViaCLIString
copy, getCLIChar, getDescription, getName, getPurpose, getStateString, nameIsLegal, resetToDefault
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
measureByteSize
protected String defaultFileExtension
protected boolean isOutputFile
public String getDefaultFileExtension()
public boolean isOutputFile()
public File getFile()
public JComponent getEditComponent()
Option
getEditComponent
in interface Option
getEditComponent
in class AbstractOption
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.