|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.izforge.izpack.installer.gui.IzPanel
com.izforge.izpack.panels.installationgroup.InstallationGroupPanel
public class InstallationGroupPanel
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.
| Nested Class Summary | |
|---|---|
protected static class |
InstallationGroupPanel.GroupData
|
| Nested classes/interfaces inherited from class com.izforge.izpack.installer.gui.IzPanel |
|---|
IzPanel.Filler |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class com.izforge.izpack.installer.gui.IzPanel |
|---|
DELIMITER, HEADLINE, headLineLabel, initialFocus, installData, layoutHelper, parent |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.izforge.izpack.api.handler.AbstractUIHandler |
|---|
ANSWER_CANCEL, ANSWER_NO, ANSWER_YES, CHOICES_YES_NO |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
InstallationGroupPanel(Panel panel,
InstallerFrame parent,
GUIInstallData installData,
Resources resources,
PlatformModelMatcher matcher)
The constructor. |
|
| Method Summary | |
|---|---|
protected void |
addDependents(Pack p,
HashMap<String,Pack> packsByName,
InstallationGroupPanel.GroupData data)
|
protected void |
buildLayout()
Create the panel ui. |
void |
createInstallationRecord(IXMLElement panelRoot)
Creates an installation record for unattended installations on InstallationGroupPanel,
created during GUI installations. |
protected String |
getGroupDescription(String group)
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" |
protected String |
getGroupSortKey(String group)
Look for a key = InstallationGroupPanel.sortKey.[group] entry: by using installData.getVariable(key) if this variable is not defined, defaults to group |
protected HashMap<String,InstallationGroupPanel.GroupData> |
getInstallGroups(GUIInstallData idata)
Build the set of unique installGroups installDataGUI. |
protected String |
getLocalizedGroupName(String group)
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 TableModel |
getModel(Map<String,InstallationGroupPanel.GroupData> groupData)
|
String |
getSummaryBody()
|
boolean |
isValidated()
There needs to be a valid selectedGroup to go to the next panel |
void |
panelActivate()
If there are no packs with an installGroups attribute, this panel is skipped. |
void |
panelDeactivate()
Remove all packs from the GUIInstallData availablePacks and selectedPacks that do not list the selected installation group. |
protected void |
removeUnusedPacks()
|
void |
valueChanged(ListSelectionEvent e)
Update the current selected install group index. |
| Methods inherited from class com.izforge.izpack.installer.gui.IzPanel |
|---|
askQuestion, askQuestion, askWarningQuestion, canShowHelp, createLabel, createMultiLineLabel, createMultiLineLabelLang, emitError, emitNotification, emitNotificationFeedback, emitWarning, getControlTextFont, getI18nStringForClass, getI18nStringForClass, getImageIcon, getInitialFocus, getInstallerFrame, getLAF, getLayoutHelper, getMetadata, getResources, getString, getSummaryCaption, initLayoutHelper, panelValidated, parseText, saveData, setHelpUrl, setInitialFocus, showHelp, toString |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InstallationGroupPanel(Panel panel,
InstallerFrame parent,
GUIInstallData installData,
Resources resources,
PlatformModelMatcher matcher)
panel - the panel meta-dataparent - the parent windowinstallData - the installation dataresources - the resourcesmatcher - the platform-model matcher| Method Detail |
|---|
public void panelActivate()
panelActivate in class IzPanelpublic void panelDeactivate()
panelDeactivate in class IzPanelpublic boolean isValidated()
isValidated in class IzPanelpublic void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenere - public void createInstallationRecord(IXMLElement panelRoot)
InstallationGroupPanel,
created during GUI installations.
createInstallationRecord in class IzPanelpanelRoot - the root element to add the xml topublic String getSummaryBody()
getSummaryBody in interface ISummarisablegetSummaryBody in class IzPanelprotected void buildLayout()
protected void removeUnusedPacks()
protected void addDependents(Pack p,
HashMap<String,Pack> packsByName,
InstallationGroupPanel.GroupData data)
protected HashMap<String,InstallationGroupPanel.GroupData> getInstallGroups(GUIInstallData idata)
idata - - the panel install installDataGUI
protected String getGroupDescription(String group)
group - - the installation group name
protected String getGroupSortKey(String group)
group - - the installation group name
protected String getLocalizedGroupName(String group)
group - - the installation group name
protected TableModel getModel(Map<String,InstallationGroupPanel.GroupData> groupData)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||