Regain 2.1.0-STABLE API

net.sf.regain.ui.desktop
Class BrowserSelectorFrame

java.lang.Object
  extended by net.sf.regain.ui.desktop.BrowserSelectorFrame
All Implemented Interfaces:
DesktopConstants

public class BrowserSelectorFrame
extends Object
implements DesktopConstants

Shows a frame that asks the user to select a browser.

Author:
Til Schneider, www.murfman.de

Field Summary
private  JFrame mFrame
          The frame.
private static Localizer mLocalizer
          The localizer for this class.
private static org.apache.log4j.Logger mLog
          The logger for this class
private  JOptionPane mOptionPane
          Option pane that contains the message.
private  String mPageUrl
          The page to open when a browser was chosen.
 
Fields inherited from interface net.sf.regain.ui.desktop.DesktopConstants
AUTH_PROPS_FILE, CONFIG_DIR, CRAWLER_CONFIG_FILE, DEFAULT_CONFIG_DIR, DEFAULT_CRAWLER_CONFIG_FILE, DEFAULT_DESKTOP_CONFIG_FILE, DEFAULT_INTERVAL, DEFAULT_PORT, DESKTOP_CONFIG_FILE, INDEX_DIR, LASTUPDATE_FILE, LOG_DIR, NEEDSUPDATE_FILE, TAGLIB_DIR
 
Constructor Summary
BrowserSelectorFrame(String pageUrl)
          Creates a new instance of BrowserSelectorFrame.
 
Method Summary
private  void chooseBrowser()
          Chooses the browser.
(package private)  void handleOptionPaneChanged()
          Handles a changed value.
 void show()
          Centers and shows the frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mLog

private static org.apache.log4j.Logger mLog
The logger for this class


mLocalizer

private static Localizer mLocalizer
The localizer for this class.


mFrame

private JFrame mFrame
The frame.


mOptionPane

private JOptionPane mOptionPane
Option pane that contains the message.


mPageUrl

private String mPageUrl
The page to open when a browser was chosen.

Constructor Detail

BrowserSelectorFrame

public BrowserSelectorFrame(String pageUrl)
Creates a new instance of BrowserSelectorFrame.

Parameters:
pageUrl - The page to open when a browser was chosen.
Method Detail

handleOptionPaneChanged

void handleOptionPaneChanged()
Handles a changed value. Called when yes or no was pressed.


show

public void show()
Centers and shows the frame.


chooseBrowser

private void chooseBrowser()
                    throws RegainException
Chooses the browser.

Throws:
RegainException - If saving the config failed.

Regain 2.1.0-STABLE API

Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info