com.izforge.izpack.panels.installationgroup
Class InstallationGroups

java.lang.Object
  extended by com.izforge.izpack.panels.installationgroup.InstallationGroups

public class InstallationGroups
extends Object

common utility methods for use by InstallationGroup related consoles/panels


Field Summary
static Comparator<GroupData> BY_SORT_KEY
           
 
Constructor Summary
InstallationGroups()
           
 
Method Summary
static String getGroupDescription(String group, AutomatedInstallData automatedInstallData)
          Look for a key = InstallationGroupPanel.description.[group] entry: first using installData.langpack.getString(key+".html") next using installData.langpack.getString(key) next using installData.getVariable(key) lastly, defaulting to group + " installation"
static String getGroupSortKey(String group, AutomatedInstallData automatedInstallData)
          Look for a key = InstallationGroupPanel.sortKey.[group] entry: by using installData.getVariable(key) if this variable is not defined, defaults to group
static HashMap<String,GroupData> getInstallGroups(AutomatedInstallData automatedInstallData)
          Build the set of unique installGroups installDataGUI.
static String getLocalizedGroupName(String group, AutomatedInstallData automatedInstallData)
          Look for a key = InstallationGroupPanel.group.[group] entry: first using installData.langpackgetString(key+".html") next using installData.langpack.getString(key) next using installData.getVariable(key) lastly, defaulting to group
protected static String getString(AutomatedInstallData automatedInstallData, String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BY_SORT_KEY

public static final Comparator<GroupData> BY_SORT_KEY
Constructor Detail

InstallationGroups

public InstallationGroups()
Method Detail

getInstallGroups

public static HashMap<String,GroupData> getInstallGroups(AutomatedInstallData automatedInstallData)
Build the set of unique installGroups installDataGUI. The GroupData description is taken from the InstallationGroupPanel.description.[name] property where [name] is the installGroup name. The GroupData size is built from the Pack.size sum.

Parameters:
automatedInstallData - - the panel install installDataGUI
Returns:
HashMap of unique install group names

getGroupSortKey

public static String getGroupSortKey(String group,
                                     AutomatedInstallData automatedInstallData)
Look for a key = InstallationGroupPanel.sortKey.[group] entry: by using installData.getVariable(key) if this variable is not defined, defaults to group

Parameters:
group - - the installation group name
automatedInstallData - - installation data
Returns:
the group sortkey

getGroupDescription

public static String getGroupDescription(String group,
                                         AutomatedInstallData automatedInstallData)
Look for a key = InstallationGroupPanel.description.[group] entry: first using installData.langpack.getString(key+".html") next using installData.langpack.getString(key) next using installData.getVariable(key) lastly, defaulting to group + " installation"

Parameters:
group - - the installation group name
automatedInstallData - - installation data
Returns:
the group description

getLocalizedGroupName

public static String getLocalizedGroupName(String group,
                                           AutomatedInstallData automatedInstallData)
Look for a key = InstallationGroupPanel.group.[group] entry: first using installData.langpackgetString(key+".html") next using installData.langpack.getString(key) next using installData.getVariable(key) lastly, defaulting to group

Parameters:
group - - the installation group name
automatedInstallData - - installation data
Returns:
the localized group name

getString

protected static String getString(AutomatedInstallData automatedInstallData,
                                  String key)


Copyright © 2018. All rights reserved.