| com.izforge.izpack.installer.IzPanel com.izforge.izpack.panels.PathInputPanel
All known Subclasses: com.izforge.izpack.panels.JDKPathPanel, com.izforge.izpack.panels.TargetPanel,
PathInputPanel | public class PathInputPanel extends IzPanel implements ActionListener(Code) | | Base class for panels which asks for paths.
author: Klaus Bartz |
defaultInstallDir | protected static String defaultInstallDir(Code) | | |
existFiles | protected String[] existFiles(Code) | | Files which should be exist
|
mustExist | protected boolean mustExist(Code) | | Flag whether the choosen path must exist or not
|
PathInputPanel | public PathInputPanel(InstallerFrame parent, InstallData idata)(Code) | | The constructor.
Parameters: parent - The parent window. Parameters: idata - The installation data. |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Actions-handling method.
Parameters: e - The event. |
createLayoutBottom | public void createLayoutBottom()(Code) | | This method does nothing. It is called from ctor of PathInputPanel, to give in a derived
class the possibility to add more components under the path input components.
|
getDefaultInstallDir | public static String getDefaultInstallDir()(Code) | | Returns the default for the installation directory.
the default for the installation directory |
getExistFiles | public String[] getExistFiles()(Code) | | Returns the array of strings which are described the files which must exist.
paths of files which must exist |
isMustExist | public boolean isMustExist()(Code) | | Returns the must exist state.
the must exist state |
isValidated | public boolean isValidated()(Code) | | Indicates wether the panel has been validated or not.
Wether the panel has been validated or not. |
isWriteable | public boolean isWriteable()(Code) | | This method determines whether the chosen dir is writeable or not.
whether the chosen dir is writeable or not |
loadDefaultInstallDir | public static void loadDefaultInstallDir(InstallerFrame parentFrame, InstallData idata)(Code) | | Loads up the "dir" resource associated with TargetPanel. Acceptable dir resource names:
TargetPanel.dir.macosx
TargetPanel.dir.mac
TargetPanel.dir.windows
TargetPanel.dir.unix
TargetPanel.dir.xxx,
where xxx is the lower case version of System.getProperty("os.name"),
with any spaces replace with underscores
TargetPanel.dir (generic that will be applied if none of above is found)
As with all IzPack resources, each the above ids should be associated with a separate
filename, which is set in the install.xml file at compile time.
|
pathIsValid | protected boolean pathIsValid()(Code) | | Returns whether the chosen path is true or not. If existFiles are not null, the existence of
it under the choosen path are detected. This method can be also implemented in derived
classes to handle special verification of the path.
true if existFiles are exist or not defined, else false |
setDefaultInstallDir | public static void setDefaultInstallDir(String string)(Code) | | Sets the default for the installation directory to the given string.
Parameters: string - path for default for the installation directory |
setExistFiles | public void setExistFiles(String[] strings)(Code) | | Sets the paths of files which must exist under the chosen path.
Parameters: strings - paths of files which must exist under the chosen path |
setMustExist | public void setMustExist(boolean b)(Code) | | Sets the must exist state. If it is true, the path must exist.
Parameters: b - must exist state |
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)
|
|
|