| javax.swing.JPanel com.izforge.izpack.panels.UserPathSelectionPanel
UserPathSelectionPanel | public class UserPathSelectionPanel extends JPanel implements ActionListener,LayoutConstants(Code) | | This is a sub panel which contains a text field and a browse button for path selection. This is
NOT an IzPanel, else it is made to use in an IzPanel for any path selection. If the IzPanel
parent implements ActionListener, the ActionPerformed method will be called, if
PathSelectionPanel.ActionPerformed was called with a source other than the browse button. This
can be used to perform parentFrame.navigateNext in the IzPanel parent. An example implementation
is done in com.izforge.izpack.panels.PathInputPanel.
author: Klaus Bartz author: Jeff Gordon |
UserPathSelectionPanel | public UserPathSelectionPanel(IzPanel parent, InstallData idata, String targetPanel, String variableName)(Code) | | The constructor. Be aware, parent is the parent IzPanel, not the installer frame.
Parameters: parent - The parent IzPanel. Parameters: idata - The installer internal data. |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Actions-handling method.
Parameters: e - The event. |
createLayout | protected void createLayout()(Code) | | Creates the layout for this sub panel.
|
getBrowseButton | public JButton getBrowseButton()(Code) | | Returns the browse button object for modification or for use with a different ActionListener.
the browse button to open the JFileChooser |
getPath | public String getPath()(Code) | | Returns the chosen path.
the chosen path |
getPathInputField | public JTextField getPathInputField()(Code) | | Returns the text input field for the path. This methode can be used to differ in a
ActionPerformed method of the parent between the browse button and the text field.
the text input field for the path |
setPath | public void setPath(String path)(Code) | | Sets the contents of the text field to the given path.
Parameters: path - the path to be set |
|
|