|
||||||||||
| 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.packs.PacksPanelBase
public abstract class PacksPanelBase
The base class for Packs panels. It brings the common member and methods of the different packs panels together. This class handles the common logic of pack selection. The derived class should be create the layout and other specific actions. There are some helper methods to simplify layout creation in the derived class.
| Nested Class Summary | |
|---|---|
static class |
PacksPanelBase.LFIndependentIcon
|
| 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 | |
|---|---|
protected long |
bytes
The bytes of the current pack. |
protected boolean |
dependenciesExist
Are there dependencies in the packs |
protected JTextArea |
dependencyArea
The dependencies label. |
protected JTextArea |
descriptionArea
The tip label. |
protected long |
freeBytes
The free bytes of the current selected disk. |
protected JLabel |
freeSpaceLabel
The free space label. |
protected PacksModel |
packsModel
The packs model. |
protected JTable |
packsTable
The packs table. |
protected JLabel |
spaceLabel
The space label. |
protected JScrollPane |
tableScroller
The tablescroll. |
| 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 | |
|---|---|
PacksPanelBase(Panel panel,
InstallerFrame parent,
GUIInstallData installData,
Resources resources,
ObjectFactory factory,
RulesEngine rules)
Constructs a PacksPanelBase. |
|
| Method Summary | |
|---|---|
void |
createInstallationRecord(IXMLElement panelRoot)
Asks to make the XML panel installDataGUI. |
protected JLabel |
createLabel(String msgId,
String iconId,
GridBagLayout layout,
GridBagConstraints constraints)
Layout helper method: Creates an label with a message given by msgId and an icon given by the iconId. |
protected abstract void |
createNormalLayout()
The Implementation of this method should create the layout for the current class. |
protected JTable |
createPacksTable(int width,
JScrollPane scroller,
GridBagLayout layout,
GridBagConstraints constraints)
Creates the table for the packs. |
protected JLabel |
createPanelWithLabel(String msgId,
GridBagLayout layout,
GridBagConstraints constraints)
Creates a panel containing a anonymous label on the left with the message for the given msgId and a label on the right side with initial no text. |
protected JTextArea |
createTextArea(String msgId,
JScrollPane scroller,
GridBagLayout layout,
GridBagConstraints constraints)
Creates a text area with standard settings and the title given by the msgId. |
long |
getBytes()
|
Debugger |
getDebugger()
|
Messages |
getMessages()
|
String |
getSummaryBody()
|
boolean |
isValidated()
Indicates wether the panel has been validated or not. |
void |
panelActivate()
Called when the panel becomes active. |
void |
setBytes(long bytes)
|
void |
showFreeSpace()
|
void |
showSpaceRequired()
|
void |
valueChanged(ListSelectionEvent e)
|
| 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, panelDeactivate, 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 |
| Field Detail |
|---|
protected JLabel freeSpaceLabel
protected JLabel spaceLabel
protected JTextArea descriptionArea
protected JTextArea dependencyArea
protected JTable packsTable
protected PacksModel packsModel
protected JScrollPane tableScroller
protected long bytes
protected long freeBytes
protected boolean dependenciesExist
| Constructor Detail |
|---|
public PacksPanelBase(Panel panel,
InstallerFrame parent,
GUIInstallData installData,
Resources resources,
ObjectFactory factory,
RulesEngine rules)
panel - the panel meta-dataparent - fhe parent windowinstallData - the installation dataresources - the resourcesfactory - the factory for creating PackValidator instancesrules - the rules engine| Method Detail |
|---|
protected abstract void createNormalLayout()
public Messages getMessages()
getMessages in interface PacksPanelInterfacepublic long getBytes()
getBytes in interface PacksPanelInterfacepublic void setBytes(long bytes)
setBytes in interface PacksPanelInterfacepublic void showSpaceRequired()
showSpaceRequired in interface PacksPanelInterfacepublic void showFreeSpace()
showFreeSpace in interface PacksPanelInterfacepublic boolean isValidated()
isValidated in class IzPanelpublic void createInstallationRecord(IXMLElement panelRoot)
createInstallationRecord in class IzPanelpanelRoot - The XML tree to write the installDataGUI in.public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListener
protected JLabel createLabel(String msgId,
String iconId,
GridBagLayout layout,
GridBagConstraints constraints)
msgId - identifier for the IzPack langpackiconId - identifier for the IzPack iconslayout - layout to be usedconstraints - constraints to be used
protected JLabel createPanelWithLabel(String msgId,
GridBagLayout layout,
GridBagConstraints constraints)
msgId - identifier for the IzPack langpacklayout - layout to be usedconstraints - constraints to be used
protected JTextArea createTextArea(String msgId,
JScrollPane scroller,
GridBagLayout layout,
GridBagConstraints constraints)
msgId - identifier for the IzPack langpackscroller - the scroller to be usedlayout - layout to be usedconstraints - constraints to be used
protected JTable createPacksTable(int width,
JScrollPane scroller,
GridBagLayout layout,
GridBagConstraints constraints)
width - of the tablescroller - the scroller to be usedlayout - layout to be usedconstraints - constraints to be used
public void panelActivate()
panelActivate in class IzPanelpublic String getSummaryBody()
getSummaryBody in interface ISummarisablegetSummaryBody in class IzPanelpublic Debugger getDebugger()
getDebugger in interface PacksPanelInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||