cz.hdf.cdnavigator.install
Class ScanPage

java.lang.Object
  extended by cz.hdf.install.Page
      extended by cz.hdf.cdnavigator.install.ScanPage
All Implemented Interfaces:
cz.hdf.gui.HRelocalize

public class ScanPage
extends cz.hdf.install.Page

Page for configuring CD scanning.

Author:
hunter

Field Summary
protected  javax.swing.JButton deviceFileButton
          field browse button
protected  javax.swing.JTextField deviceFileField
          CD device field
protected  cz.hdf.gui.HListField devicesList
          ?
protected  javax.swing.JComboBox deviceTypeCombo
          ?
protected  javax.swing.JButton ejectButton
          field browse button
protected  javax.swing.JTextField ejectField
          binary eject field
protected  javax.swing.JButton isoinfoButton
          field browse button
protected  javax.swing.JTextField isoinfoField
          binary isoinfo field
private  java.lang.String label
          page label
(package private)  java.util.logging.Logger logger
          Logger.
protected  javax.swing.JButton mountButton
          field browse button
protected  javax.swing.JButton mountDirButton
          field browse button
protected  javax.swing.JTextField mountDirField
          CD mount dir field
protected  javax.swing.JTextField mountField
          binary mount field
private  cz.hdf.gui.HPanel page
          page panel
protected  Config.Device saveDevice
          last selected device.
protected  javax.swing.JButton umountButton
          field browse button
protected  javax.swing.JTextField umountField
          binary umount field
 
Fields inherited from class cz.hdf.install.Page
frame, identifier, nextPages, prevPage
 
Constructor Summary
ScanPage(java.awt.Frame _frame, java.lang.String _identifier)
          Inititalize page content and installer buttons.
 
Method Summary
private  int getItemIndex(javax.swing.table.TableModel _tm, java.lang.Object _item)
          Get index of item in list model.
 java.lang.String getLabel()
          Get not localized page label.
 javax.swing.JPanel getPage()
          Get panel with page content.
 void initLayout()
          In this method must be implemented layouting components.
 void loadConfig()
          Load configuration into GUI objects.
static void main(java.lang.String[] args)
          Testing ...
 int processPage()
          Check data and return error code.
 void relocalize()
          Relocalize all components.
 void showErrorDialog(int _errorCode)
          Nothing to do.
 void startPage()
          This method is called after selecting and painting page.
 
Methods inherited from class cz.hdf.install.Page
getIdentifier, getNextPage, getPrevPage, hasNextPage, hasPrevPage, setIdentifier, setNextPage, setNextPages, setPrevPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

private java.lang.String label
page label


page

private cz.hdf.gui.HPanel page
page panel


isoinfoField

protected javax.swing.JTextField isoinfoField
binary isoinfo field


isoinfoButton

protected javax.swing.JButton isoinfoButton
field browse button


mountField

protected javax.swing.JTextField mountField
binary mount field


mountButton

protected javax.swing.JButton mountButton
field browse button


umountField

protected javax.swing.JTextField umountField
binary umount field


umountButton

protected javax.swing.JButton umountButton
field browse button


ejectField

protected javax.swing.JTextField ejectField
binary eject field


ejectButton

protected javax.swing.JButton ejectButton
field browse button


devicesList

protected cz.hdf.gui.HListField devicesList
?


deviceTypeCombo

protected javax.swing.JComboBox deviceTypeCombo
?


deviceFileField

protected javax.swing.JTextField deviceFileField
CD device field


deviceFileButton

protected javax.swing.JButton deviceFileButton
field browse button


mountDirField

protected javax.swing.JTextField mountDirField
CD mount dir field


mountDirButton

protected javax.swing.JButton mountDirButton
field browse button


saveDevice

protected Config.Device saveDevice
last selected device. This values are saved when new device is selected


logger

java.util.logging.Logger logger
Logger. Hierarchy is set to name of this class.

Constructor Detail

ScanPage

public ScanPage(java.awt.Frame _frame,
                java.lang.String _identifier)
Inititalize page content and installer buttons.

Parameters:
_frame -
_identifier -
Method Detail

initLayout

public void initLayout()
In this method must be implemented layouting components. This is usefull when extended child want changed layouting.

Specified by:
initLayout in class cz.hdf.install.Page

loadConfig

public void loadConfig()
Load configuration into GUI objects.

Specified by:
loadConfig in class cz.hdf.install.Page

getPage

public javax.swing.JPanel getPage()
Get panel with page content.

Specified by:
getPage in class cz.hdf.install.Page
Returns:
JPanel

getLabel

public java.lang.String getLabel()
Get not localized page label.

Specified by:
getLabel in class cz.hdf.install.Page
Returns:
string label

startPage

public void startPage()
This method is called after selecting and painting page.

Specified by:
startPage in class cz.hdf.install.Page

processPage

public int processPage()
Check data and return error code.

Specified by:
processPage in class cz.hdf.install.Page
Returns:
0 all is OK; -1 device file problem; -2 mountdir problem, -3 isoinfo, -4 mount, -5 umount, -6 eject, -7 device type problem

showErrorDialog

public void showErrorDialog(int _errorCode)
Nothing to do. No errors generated.

Specified by:
showErrorDialog in class cz.hdf.install.Page
Parameters:
_errorCode - error code specifying error
See Also:
processPage()

relocalize

public void relocalize()
Relocalize all components.


getItemIndex

private int getItemIndex(javax.swing.table.TableModel _tm,
                         java.lang.Object _item)
Get index of item in list model. Return -1 if item not found.

Parameters:
_tm - list model
_item - item to found
Returns:
index of item

main

public static void main(java.lang.String[] args)
Testing ...

Parameters:
args -


CDnavigator JavaDoc, HDF company www.hdf.cz