| javax.swing.JPanel com.izforge.izpack.installer.IzPanel com.izforge.izpack.panels.TreePacksPanel
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. | protected void | createNormalLayout() The Implementation of this method should create the layout for the current class. | protected JTree | createPacksTree(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints) | 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 void | fromModel() Refresh tree data from the PacksModel. | public long | getBytes() | public CheckBoxNode | getCbnById(String id) | public Debugger | getDebugger() | public String | getI18NPackName(String packId) | public LocaleDatabase | getLangpack() | public String | getSummaryBody() | public JTree | getTree() | 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 | setDependencies(String id) | public void | setDescription(String id) | public void | setModelValue(CheckBoxNode cbnode) | public void | showFreeSpace() | public void | showSpaceRequired() |
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.
|
packsTree | protected JTree packsTree(Code) | | The packs tree.
|
spaceLabel | protected JLabel spaceLabel(Code) | | The space label.
|
TreePacksPanel | public TreePacksPanel(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 | protected void createNormalLayout()(Code) | | The Implementation of this method should create the layout for the current class.
|
createPacksTree | protected JTree createPacksTree(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints)(Code) | | FIXME Creates the JTree component and calls all initialization tasks
Parameters: width - Parameters: scroller - Parameters: layout - Parameters: constraints - |
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 |
fromModel | public void fromModel()(Code) | | Refresh tree data from the PacksModel. This functions serves as a bridge
between the flat PacksModel and the tree data model.
|
getBytes | public long getBytes()(Code) | | |
getCbnById | public CheckBoxNode getCbnById(String id)(Code) | | Gives a CheckBoxNode instance from the id
Parameters: id - |
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) | | |
setDependencies | public void setDependencies(String id)(Code) | | Shows and updates the dependencies text in the panel
Parameters: id - |
setDescription | public void setDescription(String id)(Code) | | Shows and updates the description text in the panel
Parameters: id - |
setModelValue | public void setModelValue(CheckBoxNode cbnode)(Code) | | Updates a value for pack in PacksModel with data from a checkbox node
Parameters: cbnode - This is the checkbox node which contains model values |
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)
|
|
|