| com.izforge.izpack.installer.IzPanel com.izforge.izpack.panels.InstallationGroupPanel
InstallationGroupPanel | public class InstallationGroupPanel extends IzPanel implements ListSelectionListener(Code) | | A panel which displays the available installGroups found on the packs to
allow the user to select a subset of the packs based on the pack
installGroups attribute. This panel will be skipped if there are no
pack elements with an installGroups attribute.
author: Scott.Stark@jboss.org version: $Revision: 1.1.1.1 $ |
Inner Class :protected static class GroupData | |
buildLayout | protected void buildLayout()(Code) | | Create the panel ui.
|
getGroupDescription | protected String getGroupDescription(String group)(Code) | | Look for a key = InstallationGroupPanel.description.[group] entry:
first using idata.langpack.getString(key+".html")
next using idata.langpack.getString(key)
next using idata.getVariable(key)
lastly, defaulting to group + " installation"
Parameters: group - - the installation group name the group description |
getGroupSortKey | protected String getGroupSortKey(String group)(Code) | | Look for a key = InstallationGroupPanel.sortKey.[group] entry:
by using idata.getVariable(key)
if this variable is not defined, defaults to group
Parameters: group - - the installation group name the group sortkey |
getInstallGroups | protected HashMap getInstallGroups(InstallData idata)(Code) | | Build the set of unique installGroups data. 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.nbytes sum.
Parameters: idata - - the panel install data HashMap of unique install group names |
getLocalizedGroupName | protected String getLocalizedGroupName(String group)(Code) | | Look for a key = InstallationGroupPanel.group.[group] entry:
first using idata.langpackgetString(key+".html")
next using idata.langpack.getString(key)
next using idata.getVariable(key)
lastly, defaulting to group
Parameters: group - - the installation group name the localized group name |
isValidated | public boolean isValidated()(Code) | | There needs to be a valid selectedGroup to go to the next panel
true if selectedGroup >= 0, false otherwise |
panelActivate | public void panelActivate()(Code) | | If there are no packs with an installGroups attribute, this panel is
skipped. Otherwise, the unique installGroups are displayed in a table.
|
panelDeactivate | public void panelDeactivate()(Code) | | Remove all packs from the InstallData availablePacks and selectedPacks
that do not list the selected installation group. Packs without any
installGroups are always included.
|
removeUnusedPacks | protected void removeUnusedPacks()(Code) | | |
valueChanged | public void valueChanged(ListSelectionEvent e)(Code) | | Update the current selected install group index.
Parameters: e - |
Methods inherited from com.izforge.izpack.installer.IzPanel | public int askQuestion(String title, String question, int choices)(Code)(Java Doc) public int askQuestion(String title, String question, int choices, int default_choice)(Code)(Java Doc) protected boolean buildHeadline(String imageIconName, int instanceNumber)(Code)(Java Doc) public void completeGridBagLayout()(Code)(Java Doc) public JLabel createLabel(String subkey, String alternateClass, String iconId, int pos)(Code)(Java Doc) public JLabel createLabel(String subkey, String alternateClass, String iconId, int pos, boolean isFullLine)(Code)(Java Doc) public JLabel createLabel(String textId, String iconId, int pos)(Code)(Java Doc) public JLabel createLabel(String textId, String iconId, int pos, boolean isFullLine)(Code)(Java Doc) public MultiLineLabel createMultiLineLabel(String text)(Code)(Java Doc) public MultiLineLabel createMultiLineLabel(String text, String iconId, int pos)(Code)(Java Doc) public MultiLineLabel createMultiLineLabelLang(String textId)(Code)(Java Doc) public void emitError(String title, String message)(Code)(Java Doc) public void emitNotification(String message)(Code)(Java Doc) public boolean emitNotificationFeedback(String message)(Code)(Java Doc) public boolean emitWarning(String title, String message)(Code)(Java Doc) protected void getClassName()(Code)(Java Doc) public Font getControlTextFont()(Code)(Java Doc) public GridBagConstraints getDefaultGridBagConstraints()(Code)(Java Doc) public String getI18nStringForClass(String subkey)(Code)(Java Doc) public String getI18nStringForClass(String subkey, String alternateClass)(Code)(Java Doc) public ImageIcon getImageIcon(String iconName)(Code)(Java Doc) public Component getInitialFocus()(Code)(Java Doc) public InstallerFrame getInstallerFrame()(Code)(Java Doc) protected static MetalLookAndFeel getLAF()(Code)(Java Doc) public LayoutHelper getLayoutHelper()(Code)(Java Doc) public Panel getMetadata()(Code)(Java Doc) public GridBagConstraints getNewGridBagConstraints(int gridx, int gridy)(Code)(Java Doc) public GridBagConstraints getNewGridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight)(Code)(Java Doc) public GridBagConstraints getNextXGridBagConstraints()(Code)(Java Doc) public GridBagConstraints getNextYGridBagConstraints()(Code)(Java Doc) public GridBagConstraints getNextYGridBagConstraints(int gridwidth, int gridheight)(Code)(Java Doc) public String getString(String key)(Code)(Java Doc) public String getSummaryBody()(Code)(Java Doc) public String getSummaryCaption()(Code)(Java Doc) protected void init(InstallerFrame parent, InstallData idata)(Code)(Java Doc) protected void initLayoutHelper()(Code)(Java Doc) public boolean isHidden()(Code)(Java Doc) public boolean isValidated()(Code)(Java Doc) public void makeXMLData(XMLElement panelRoot)(Code)(Java Doc) public void panelActivate()(Code)(Java Doc) public void panelDeactivate()(Code)(Java Doc) public void resetGridCounter()(Code)(Java Doc) public void setDefaultGridBagConstraints(GridBagConstraints constraints)(Code)(Java Doc) public void setHidden(boolean hidden)(Code)(Java Doc) public void setInitialFocus(Component component)(Code)(Java Doc) public void setMetadata(Panel p)(Code)(Java Doc) public void startGridBagLayout()(Code)(Java Doc)
|
|
|