|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.panels.userinput.field.FieldHelper
public class FieldHelper
Determines if a field is selected for display.
| Constructor Summary | |
|---|---|
FieldHelper()
|
|
| Method Summary | |
|---|---|
static boolean |
isRequired(Field field,
InstallData installData,
PlatformModelMatcher matcher)
Determines if a field is required if the field is required for the current platform and selected packs. |
static boolean |
isRequiredForPacks(List<String> packNames,
List<Pack> selectedPacks)
Determine if an item is required by any of the selected packs. |
static boolean |
isRequiredForUnselectedPacks(List<String> packNames,
List<Pack> selectedPacks)
Determine if an item is required by any of the unselected packs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldHelper()
| Method Detail |
|---|
public static boolean isRequired(Field field,
InstallData installData,
PlatformModelMatcher matcher)
field - the fieldinstallData - the installation datamatcher - the platform-model matcher
true if the field is required for the current platform and selected packs
public static boolean isRequiredForPacks(List<String> packNames,
List<Pack> selectedPacks)
packNames - the item's pack constraints. Each name corresponds to a pack for which the item should be
created if the pack is selected for installationselectedPacks - the selected packs
true if packs is empty, or one of the packs appears in selectedPacks
public static boolean isRequiredForUnselectedPacks(List<String> packNames,
List<Pack> selectedPacks)
packNames - the item's pack constraints. Each name corresponds to a pack for which the item should be
created if the pack is not selected for installationselectedPacks - the selected packs
true if packs is empty, or none of the packs appears in selectedPacks
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||