| javax.swing.JPanel com.izforge.izpack.installer.IzPanel com.izforge.izpack.panels.PacksPanelBase
All known Subclasses: com.izforge.izpack.panels.PacksPanel, com.izforge.izpack.panels.ImgPacksPanel,
PacksPanelBase | abstract public class PacksPanelBase extends IzPanel implements PacksPanelInterface,ListSelectionListener(Code) | | 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.
author: Julien Ponge author: Klaus Bartz author: Dennis Reil |
Inner Class :public static class LFIndependentIcon implements Icon | |
Method Summary | |
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. | abstract protected 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. | public long | getBytes() | public Debugger | getDebugger() | public LocaleDatabase | getLangpack() | public String | getSummaryBody() | public boolean | isValidated() Indicates wether the panel has been validated or not. | public void | makeXMLData(XMLElement panelRoot) Asks to make the XML panel data. | public void | panelActivate() Called when the panel becomes active. | public void | setBytes(long bytes) | public void | showFreeSpace() | public void | showSpaceRequired() | public void | valueChanged(ListSelectionEvent e) |
bytes | protected long bytes(Code) | | The bytes of the current pack.
|
dependenciesExist | protected boolean dependenciesExist(Code) | | Are there dependencies in the packs
|
dependencyArea | protected JTextArea dependencyArea(Code) | | The dependencies label.
|
freeBytes | protected long freeBytes(Code) | | The free bytes of the current selected disk.
|
freeSpaceLabel | protected JLabel freeSpaceLabel(Code) | | The free space label.
|
packsTable | protected JTable packsTable(Code) | | The packs table.
|
spaceLabel | protected JLabel spaceLabel(Code) | | The space label.
|
PacksPanelBase | public PacksPanelBase(InstallerFrame parent, InstallData idata)(Code) | | The constructor.
Parameters: parent - The parent window. Parameters: idata - The installation data. |
createLabel | protected JLabel createLabel(String msgId, String iconId, GridBagLayout layout, GridBagConstraints constraints)(Code) | | Layout helper method:
Creates an label with a message given by msgId and an icon given by the iconId. If layout and
constraints are not null, the label will be added to layout with the given constraints. The
label will be added to this object.
Parameters: msgId - identifier for the IzPack langpack Parameters: iconId - identifier for the IzPack icons Parameters: layout - layout to be used Parameters: constraints - constraints to be used the created label |
createNormalLayout | abstract protected void createNormalLayout()(Code) | | The Implementation of this method should create the layout for the current class.
|
createPacksTable | protected JTable createPacksTable(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints)(Code) | | Creates the table for the packs. All parameters are required. The table will be returned.
Parameters: width - of the table Parameters: scroller - the scroller to be used Parameters: layout - layout to be used Parameters: constraints - constraints to be used the created table |
createPanelWithLabel | protected JLabel createPanelWithLabel(String msgId, GridBagLayout layout, GridBagConstraints constraints)(Code) | | 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. The right label will be returned. If
layout and constraints are not null, the label will be added to layout with the given
constraints. The panel will be added to this object.
Parameters: msgId - identifier for the IzPack langpack Parameters: layout - layout to be used Parameters: constraints - constraints to be used the created (right) label |
createTextArea | protected JTextArea createTextArea(String msgId, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints)(Code) | | Creates a text area with standard settings and the title given by the msgId. If scroller is
not null, the create text area will be added to the scroller and the scroller to this object,
else the text area will be added directly to this object. If layout and constraints are not
null, the text area or scroller will be added to layout with the given constraints. The text
area will be returned.
Parameters: msgId - identifier for the IzPack langpack Parameters: scroller - the scroller to be used Parameters: layout - layout to be used Parameters: constraints - constraints to be used the created text area |
getBytes | public long getBytes()(Code) | | |
isValidated | public boolean isValidated()(Code) | | Indicates wether the panel has been validated or not.
true if the needed space is less than the free space, else false |
makeXMLData | public void makeXMLData(XMLElement panelRoot)(Code) | | Asks to make the XML panel data.
Parameters: panelRoot - The XML tree to write the data in. |
panelActivate | public void panelActivate()(Code) | | Called when the panel becomes active. If a derived class implements this method also, it is
recomanded to call this method with the super operator first.
|
setBytes | public void setBytes(long bytes)(Code) | | |
showFreeSpace | public void showFreeSpace()(Code) | | |
showSpaceRequired | public void showSpaceRequired()(Code) | | |
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)
|
|
|