|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.panels.userinput.field.Field
com.izforge.izpack.panels.userinput.field.file.AbstractFileField
public class AbstractFileField
Common file field functionality.
| Field Summary | |
|---|---|
protected boolean |
allowEmptyValue
Determines if empty input values are allowed. |
protected boolean |
mustExist
Determines if the file must exist |
| Constructor Summary | |
|---|---|
AbstractFileField(FileFieldConfig config,
InstallData installData)
Constructs an AbstractFileField. |
|
| Method Summary | |
|---|---|
File |
getAbsoluteFile(String path)
Returns the absolute file for the specified path, expanding any unix home reference (~). |
boolean |
getAllowEmptyValue()
Determines if empty input values are allowed. |
String |
getFileExtension()
Returns the file extension. |
String |
getFileExtensionDescription()
Returns the file extension description. |
boolean |
isMustExist()
Determines if the file must exist |
| Methods inherited from class com.izforge.izpack.panels.userinput.field.Field |
|---|
getDefaultValue, getDescription, getDescription, getInitialValue, getInstallData, getLabel, getLabel, getOmitFromAuto, getOsModels, getPacks, getProcessors, getSize, getSummaryKey, getTooltip, getValue, getVariable, isConditionTrue, isEffectiveDisplayHidden, isEffectiveReadonly, replaceVariables, setSaving, setValue, setVariable, validate, validate, wrapDefaultValue, wrapInitialValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final boolean allowEmptyValue
protected final boolean mustExist
| Constructor Detail |
|---|
public AbstractFileField(FileFieldConfig config,
InstallData installData)
AbstractFileField.
config - the configuration to get field information frominstallData - the installation data
IzPackException - if the field cannot be read| Method Detail |
|---|
public String getFileExtension()
nullpublic String getFileExtensionDescription()
nullpublic boolean getAllowEmptyValue()
true if empty input values are allowed; otherwise falsepublic boolean isMustExist()
true if the file must exist, otherwise falsepublic File getAbsoluteFile(String path)
path - the path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||