cz.hdf.cdnavigator.install
Class CachePage

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

public class CachePage
extends cz.hdf.install.Page

Page for configuring CD cache panel.

Author:
hunter

Field Summary
protected  cz.hdf.gui.HCheckBox cacheAutoCheck
          use automatic cache
protected  javax.swing.JButton cacheDirButton
          field browse button
protected  javax.swing.JTextField cacheDirField
          cache directory field
protected  cz.hdf.gui.HRadioButton cacheFullRadio
          use whole disk for caching
protected  cz.hdf.gui.HCheckBox cacheMoviesCheck
          cache movies?
protected  cz.hdf.gui.HCheckBox cacheMusicCheck
          cache music?
protected  cz.hdf.gui.HCheckBox cachePhotosCheck
          cache photos?
protected  javax.swing.JTextField cacheSizeField
          maximum cache size field
protected  cz.hdf.gui.HLabel cacheSizeLabel
          maximum cache size label (MB)
protected  cz.hdf.gui.HRadioButton cacheSizeRadio
          use maximum cache size for caching
private  java.lang.String label
          page label
(package private)  java.util.logging.Logger logger
          Logger.
private  cz.hdf.gui.HPanel page
          page panel
 
Fields inherited from class cz.hdf.install.Page
frame, identifier, nextPages, prevPage
 
Constructor Summary
CachePage(java.awt.Frame _frame, java.lang.String _identifier)
          Inititalize page content and installer buttons.
 
Method Summary
private  int checkSizeField()
          Check if size field is a number.
private  void createFolder(java.lang.String _folderPath)
           
 void discardChanges()
          Discard all changes/values and set original values.
 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


cacheDirField

protected javax.swing.JTextField cacheDirField
cache directory field


cacheDirButton

protected javax.swing.JButton cacheDirButton
field browse button


cacheAutoCheck

protected cz.hdf.gui.HCheckBox cacheAutoCheck
use automatic cache


cacheFullRadio

protected cz.hdf.gui.HRadioButton cacheFullRadio
use whole disk for caching


cacheSizeRadio

protected cz.hdf.gui.HRadioButton cacheSizeRadio
use maximum cache size for caching


cacheSizeField

protected javax.swing.JTextField cacheSizeField
maximum cache size field


cacheSizeLabel

protected cz.hdf.gui.HLabel cacheSizeLabel
maximum cache size label (MB)


cachePhotosCheck

protected cz.hdf.gui.HCheckBox cachePhotosCheck
cache photos?


cacheMusicCheck

protected cz.hdf.gui.HCheckBox cacheMusicCheck
cache music?


cacheMoviesCheck

protected cz.hdf.gui.HCheckBox cacheMoviesCheck
cache movies?


logger

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

Constructor Detail

CachePage

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

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

checkSizeField

private int checkSizeField()
Check if size field is a number.

Returns:

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

discardChanges

public void discardChanges()
Discard all changes/values and set original values.


processPage

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

Specified by:
processPage in class cz.hdf.install.Page
Returns:
0 all is OK; -3 isoinfo, -4 cache size problem; , -5 umount

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()

createFolder

private void createFolder(java.lang.String _folderPath)

relocalize

public void relocalize()
Relocalize all components.


main

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

Parameters:
args -


CDnavigator JavaDoc, HDF company www.hdf.cz