com.izforge.izpack.panels.userinput.field.file
Class MultipleFileFieldReader

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.field.ElementReader
      extended by com.izforge.izpack.panels.userinput.field.FieldReader
          extended by com.izforge.izpack.panels.userinput.field.file.AbstractFileFieldReader
              extended by com.izforge.izpack.panels.userinput.field.file.MultipleFileFieldReader
All Implemented Interfaces:
FieldConfig, FileFieldConfig, MultipleFileFieldConfig

public class MultipleFileFieldReader
extends AbstractFileFieldReader
implements MultipleFileFieldConfig

Multiple file field reader.

Author:
Tim Anderson

Field Summary
 
Fields inherited from class com.izforge.izpack.panels.userinput.field.FieldReader
OMIT_FROM_AUTO, SPEC, VARIABLE
 
Constructor Summary
MultipleFileFieldReader(IXMLElement field, Config config)
          Constructs a MultipleFileFieldReader.
 
Method Summary
 boolean getCreateMultipleVariables()
          Determines if multiple variables should be created to hold the selected files.
 int getPreferredHeight()
          Returns the preferred width of the field.
 int getPreferredWidth()
          Returns the preferred width of the field.
 int getVisibleRows()
          Returns the number of visible rows.
 
Methods inherited from class com.izforge.izpack.panels.userinput.field.file.AbstractFileFieldReader
getAllowEmptyValue, getFileExtension, getFileExtensionDescription, mustExist
 
Methods inherited from class com.izforge.izpack.panels.userinput.field.FieldReader
getCondition, getDefaultValue, getDescription, getDisplayHiddenCondition, getField, getInitialValue, getLabel, getOmitFromAuto, getOsModels, getPacks, getProcessors, getReadonlyCondition, getSize, getSpec, getSpec, getSummaryKey, getText, getTooltip, getValidators, getValidators, getVariable, isDisplayHidden, isReadonly
 
Methods inherited from class com.izforge.izpack.panels.userinput.field.ElementReader
getComplexPanelCondition, getConfig, getOsModels, getPacks, getUnselectedPacks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.izforge.izpack.panels.userinput.field.file.FileFieldConfig
getAllowEmptyValue, getFileExtension, getFileExtensionDescription, mustExist
 
Methods inherited from interface com.izforge.izpack.panels.userinput.field.FieldConfig
getCondition, getDefaultValue, getDescription, getDisplayHiddenCondition, getInitialValue, getLabel, getOmitFromAuto, getOsModels, getPacks, getProcessors, getReadonlyCondition, getSize, getSummaryKey, getTooltip, getValidators, getValidators, getVariable, isDisplayHidden, isReadonly
 

Constructor Detail

MultipleFileFieldReader

public MultipleFileFieldReader(IXMLElement field,
                               Config config)
Constructs a MultipleFileFieldReader.

Parameters:
field - the field element
config - the configuration
Method Detail

getVisibleRows

public int getVisibleRows()
Returns the number of visible rows.

Specified by:
getVisibleRows in interface MultipleFileFieldConfig
Returns:
the number of visible rows, or -1 if none is specified

getPreferredWidth

public int getPreferredWidth()
Returns the preferred width of the field.

Specified by:
getPreferredWidth in interface MultipleFileFieldConfig
Returns:
the preferred width, or -1 if none is specified

getPreferredHeight

public int getPreferredHeight()
Returns the preferred width of the field.

Specified by:
getPreferredHeight in interface MultipleFileFieldConfig
Returns:
the preferred height, or -1 if none is specified

getCreateMultipleVariables

public boolean getCreateMultipleVariables()
Determines if multiple variables should be created to hold the selected files.

Specified by:
getCreateMultipleVariables in interface MultipleFileFieldConfig
Returns:
true if multiple variables should be created; false if a single variable should be used


Copyright © 2018. All rights reserved.