|
||||||||||
| 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.userpath.UserPathInputPanel
public class UserPathInputPanel
Base class for panels which asks for paths.
| Nested Class Summary |
|---|
| 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 String |
_createDirMsg
|
protected String |
_defaultDir
|
protected String |
_defaultPanelName
|
protected String |
_emptyTargetMsg
|
protected String |
_error
|
protected String[] |
_existFiles
Files which should be exist |
protected boolean |
_loadedDefaultDir
|
protected boolean |
_mustExist
Flag whether the choosen path must exist or not |
protected String |
_notValidMsg
|
protected String |
_notWritableMsg
|
protected UserPathSelectionPanel |
_pathSelectionPanel
The path selection sub panel |
protected String |
_reqMsg
|
protected String |
_targetPanel
|
protected String |
_thisPanel
|
protected String |
_variableName
|
protected String |
_warn
|
protected String |
_warnMsg
|
| 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 | |
|---|---|
UserPathInputPanel(Panel panel,
InstallerFrame parent,
GUIInstallData installData,
String targetPanel,
Resources resources,
Log log)
Constructs an UserPathInputPanel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Actions-handling method. |
void |
createLayoutBottom()
This method does nothing. |
String |
getDefaultDir()
Returns the default for the directory. |
String[] |
getExistFiles()
Returns the array of strings which are described the files which must exist. |
String |
getTargetPanel()
Returns the panel name extending this class. |
boolean |
isMustExist()
Returns the must exist state. |
boolean |
isValidated()
Indicates whether the panel has been validated or not. |
boolean |
isWriteable()
This method determines whether the chosen dir is writeable or not. |
protected boolean |
pathIsValid()
Returns whether the chosen path is true or not. |
void |
setDefaultDir(String defaultDir)
Sets the default for the directory to the given string. |
void |
setExistFiles(String[] strings)
Sets the paths of files which must exist under the chosen path. |
void |
setMustExist(boolean mustExist)
Sets the must exist state. |
void |
setTargetPanel(String targetPanel)
Sets the panel name extending this class. |
| Methods inherited from class com.izforge.izpack.installer.gui.IzPanel |
|---|
askQuestion, askQuestion, askWarningQuestion, canShowHelp, createInstallationRecord, createLabel, createMultiLineLabel, createMultiLineLabelLang, emitError, emitNotification, emitNotificationFeedback, emitWarning, getControlTextFont, getI18nStringForClass, getI18nStringForClass, getImageIcon, getInitialFocus, getInstallerFrame, getLAF, getLayoutHelper, getMetadata, getResources, getString, getSummaryBody, getSummaryCaption, initLayoutHelper, panelActivate, 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 boolean _mustExist
protected boolean _loadedDefaultDir
protected String[] _existFiles
protected UserPathSelectionPanel _pathSelectionPanel
protected String _error
protected String _warn
protected String _emptyTargetMsg
protected String _warnMsg
protected String _reqMsg
protected String _notValidMsg
protected String _notWritableMsg
protected String _createDirMsg
protected String _defaultDir
protected String _thisPanel
protected String _defaultPanelName
protected String _targetPanel
protected String _variableName
| Constructor Detail |
|---|
public UserPathInputPanel(Panel panel,
InstallerFrame parent,
GUIInstallData installData,
String targetPanel,
Resources resources,
Log log)
panel - the panel meta-dataparent - the parent windowinstallData - the installation datatargetPanel - the target panelresources - the resourceslog - the log| Method Detail |
|---|
public void createLayoutBottom()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - The event.public boolean isValidated()
isValidated in class IzPanelprotected boolean pathIsValid()
public boolean isMustExist()
public void setMustExist(boolean mustExist)
mustExist - must exist statepublic String[] getExistFiles()
public void setExistFiles(String[] strings)
strings - paths of files which must exist under the chosen pathpublic boolean isWriteable()
public String getDefaultDir()
public void setDefaultDir(String defaultDir)
defaultDir - path for default directorypublic String getTargetPanel()
public void setTargetPanel(String targetPanel)
targetPanel - path for default directory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||