|
||||||||||
| 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.search.SearchField
public class SearchField
Search field.
| Constructor Summary | |
|---|---|
SearchField(SearchFieldConfig config,
InstallData installData)
Constructs a SearchField. |
|
| Method Summary | |
|---|---|
String |
getCheckFilename()
Returns the filename to check the existence of. |
List<String> |
getChoices()
Returns the search choices. |
List<String> |
getChoices(List<String> choices)
Returns the search choices depending on a given list of pre-selected choices. |
String |
getFilename()
Returns the name of the file to search for. |
String |
getResult(String item)
Return the result of the search according to result type. |
ResultType |
getResultType()
Returns the result type. |
int |
getSelectedIndex()
Returns the index of the selected choice. |
SearchType |
getType()
Returns the search type. |
boolean |
pathMatches(String path)
check whether the given path matches |
static String |
resolveEnvValue(String path,
Map<String,String> env)
Resolve Windows environment variables |
| 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 |
| Constructor Detail |
|---|
public SearchField(SearchFieldConfig config,
InstallData installData)
SearchField.
config - the field configurationinstallData - the installation data
IzPackException - if the field cannot be read| Method Detail |
|---|
public String getFilename()
null if searching for directoriespublic String getCheckFilename()
nullpublic SearchType getType()
public ResultType getResultType()
public List<String> getChoices()
public List<String> getChoices(List<String> choices)
public int getSelectedIndex()
-1 if no choice is selected
public static String resolveEnvValue(String path,
Map<String,String> env)
path - - eg: "%JAVA_HOME%\\bin"env - - System.getenv() (or forced config for testing)public boolean pathMatches(String path)
public String getResult(String item)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||