net.sourceforge.wohenchan
Class WoHenChan

java.lang.Object
  |
  +--org.eclipse.swt.widgets.Widget
        |
        +--org.eclipse.swt.widgets.Control
              |
              +--org.eclipse.swt.widgets.Scrollable
                    |
                    +--org.eclipse.swt.widgets.Composite
                          |
                          +--net.sourceforge.wohenchan.WoHenChan
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable, ProgressListener

public class WoHenChan
extends org.eclipse.swt.widgets.Composite
implements ProgressListener

Main user interface.

Version:
$Name: $ $Date: 2003/09/14 08:26:56 $
Author:
Wesley Tanaka

Field Summary
private static int INPUT_ACTION_DELAY
          The delay, in milliseconds, between the time the user stops typing in the input field, and the time an action is triggered off of that input.
private  org.eclipse.swt.widgets.TabItem m_converter
           
private  ConverterPane m_convPane
           
private  org.eclipse.swt.widgets.TabItem m_dictionary
           
private  DictionaryPane m_dictPane
           
private  org.eclipse.swt.widgets.TabItem m_flashcards
           
private  net.sourceforge.wohenchan.flash.FlashcardPane m_flashPane
           
private  org.eclipse.swt.widgets.ProgressBar m_progressbar
           
private  int m_progressData
           
private  org.eclipse.swt.widgets.Label m_statusLabel
           
private  java.lang.String m_statusLabelData
           
private  org.eclipse.swt.widgets.TabFolder m_tabfolder
           
private static int MAX_VISIBLE_RESULTS
          maximum number of visible results on UI.
(package private)  java.lang.Runnable taskSetter
           
 
Fields inherited from class org.eclipse.swt.widgets.Composite
 
Fields inherited from class org.eclipse.swt.widgets.Scrollable
 
Fields inherited from class org.eclipse.swt.widgets.Control
 
Fields inherited from class org.eclipse.swt.widgets.Widget
handle
 
Constructor Summary
WoHenChan(org.eclipse.swt.widgets.Composite parent)
          Constructor
 
Method Summary
static void main(java.lang.String[] args)
           
 void setProgress(java.lang.String thingInProgress, int progress)
           
 void setStatus(java.lang.String status)
           
 void setTask(java.lang.String task)
           
static void shutdownAndExit(int exitCode)
           
 
Methods inherited from class org.eclipse.swt.widgets.Composite
checkSubclass, computeSize, getBorderWidth, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBounds, getDisplay, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INPUT_ACTION_DELAY

private static final int INPUT_ACTION_DELAY
The delay, in milliseconds, between the time the user stops typing in the input field, and the time an action is triggered off of that input.

See Also:
Constant Field Values

MAX_VISIBLE_RESULTS

private static final int MAX_VISIBLE_RESULTS
maximum number of visible results on UI.

See Also:
Constant Field Values

m_tabfolder

private org.eclipse.swt.widgets.TabFolder m_tabfolder

m_dictionary

private org.eclipse.swt.widgets.TabItem m_dictionary

m_flashcards

private org.eclipse.swt.widgets.TabItem m_flashcards

m_converter

private org.eclipse.swt.widgets.TabItem m_converter

m_statusLabel

private org.eclipse.swt.widgets.Label m_statusLabel

m_progressbar

private org.eclipse.swt.widgets.ProgressBar m_progressbar

m_dictPane

private DictionaryPane m_dictPane

m_flashPane

private net.sourceforge.wohenchan.flash.FlashcardPane m_flashPane

m_convPane

private ConverterPane m_convPane

m_statusLabelData

private java.lang.String m_statusLabelData

m_progressData

private int m_progressData

taskSetter

java.lang.Runnable taskSetter
Constructor Detail

WoHenChan

public WoHenChan(org.eclipse.swt.widgets.Composite parent)
Constructor

Method Detail

setTask

public void setTask(java.lang.String task)
Specified by:
setTask in interface ProgressListener

setProgress

public void setProgress(java.lang.String thingInProgress,
                        int progress)
Specified by:
setProgress in interface ProgressListener

setStatus

public void setStatus(java.lang.String status)
Specified by:
setStatus in interface ProgressListener

shutdownAndExit

public static void shutdownAndExit(int exitCode)

main

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