edu.princeton.wordnet.browser.Controller Class Reference

Inherits edu::princeton::wordnet::browser::LookerUp.

Inherited by edu.princeton.wordnet.browser.UI.

Collaboration diagram for edu.princeton.wordnet.browser.Controller:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Controller (final String[] theseArgs) throws IOException
void lookup (final String thisLookup)
void lookupXml (final String thisLookup)
void lookupXmlRaw (final String thisLookup)

Protected Member Functions

abstract void makeTreeView (final TreeView thisView, final String thisTitle, final String thisTooltip, final TreeModel thisTreeModel)
abstract TreeView getTreeView ()
abstract List< TreeViewgetTreeViews ()
abstract HtmlView makeHtmlView (final String thisTitle, String thisTooltip)
abstract String getLookup ()
abstract void addHistory (final String thisLookup)
abstract void setStatus (final String thisMessage)
abstract void setConnected (boolean isConnected)
abstract void setSearching (boolean isSearching)
abstract void internalHelp ()
abstract void quit ()
abstract boolean confirm (final String[] thisMessage)
abstract void reportClientError (final Throwable t)
abstract void reportException (final Exception e)
abstract PropertyChangeListener getConsolePropertyListener ()
void start ()
void execute (final Code thisCode, final Object...theseParams)
String mangle (final String thatString)

Protected Attributes

Properties theSettings = new Properties()

Package Types

enum  Code {
  CONNECT, LOOKUP, LOOKUPXML, LOOKUPPOS,
  LOOKUPLEXDOMAIN, LOOKUPLINK, EXPAND, COLLAPSE,
  IMPORT, LOOKUPXMLRAW, EXPORT, EXPORTXSL,
  SETTINGS, DBSETTINGS, LINKSETTINGS, STYLESETTINGS,
  INTERNALHELP, HELP, CONSOLE, ABOUT,
  QUIT
}

Package Functions

abstract void makeTextView (final String thisTitle, final String thisTooltip, final String thisText)
void lookup ()

Detailed Description

Controller

Author:
Bernard Bou

Member Enumeration Documentation

Command codes


Constructor & Destructor Documentation

edu.princeton.wordnet.browser.Controller.Controller ( final String[]  theseArgs  )  throws IOException

Constructor

Parameters:
theseArgs command line arguments

Member Function Documentation

abstract void edu.princeton.wordnet.browser.Controller.addHistory ( final String  thisLookup  )  [protected, pure virtual]

Add lookup to history

Parameters:
thisLookup 

Implemented in edu.princeton.wordnet.browser.UI.

abstract boolean edu.princeton.wordnet.browser.Controller.confirm ( final String[]  thisMessage  )  [protected, pure virtual]

Confirm

Parameters:
thisMessage message
Returns:
true if confirmed

Implemented in edu.princeton.wordnet.browser.UI.

void edu.princeton.wordnet.browser.Controller.execute ( final Code  thisCode,
final Object...  theseParams 
) [protected]

Run command

Parameters:
thisCode command code
abstract PropertyChangeListener edu.princeton.wordnet.browser.Controller.getConsolePropertyListener (  )  [protected, pure virtual]

Get console property listener

Implemented in edu.princeton.wordnet.browser.UI.

abstract String edu.princeton.wordnet.browser.Controller.getLookup (  )  [protected, pure virtual]

Get lookup

Returns:
lookup string

Implemented in edu.princeton.wordnet.browser.UI.

abstract TreeView edu.princeton.wordnet.browser.Controller.getTreeView (  )  [protected, pure virtual]

Get selected treeview

Returns:
selected treeview or null

Implemented in edu.princeton.wordnet.browser.UI.

abstract List<TreeView> edu.princeton.wordnet.browser.Controller.getTreeViews (  )  [protected, pure virtual]

Get tree views

Returns:
list of tree view

Implemented in edu.princeton.wordnet.browser.UI.

abstract void edu.princeton.wordnet.browser.Controller.internalHelp (  )  [protected, pure virtual]

Help

Implemented in edu.princeton.wordnet.browser.UI.

void edu.princeton.wordnet.browser.Controller.lookup ( final String  thisLookup  ) 

Look up

Parameters:
thisLookup word to look up

Implements edu.princeton.wordnet.browser.LookerUp.

void edu.princeton.wordnet.browser.Controller.lookup (  )  [package]

Lookup

void edu.princeton.wordnet.browser.Controller.lookupXml ( final String  thisLookup  ) 

Lookup XML

Parameters:
thisLookup lookup target
void edu.princeton.wordnet.browser.Controller.lookupXmlRaw ( final String  thisLookup  ) 

Lookup raw XML

Parameters:
thisLookup lookup target
abstract HtmlView edu.princeton.wordnet.browser.Controller.makeHtmlView ( final String  thisTitle,
String  thisTooltip 
) [protected, pure virtual]

Make Html view

Parameters:
thisTitle title
thisTooltip tooltip
abstract void edu.princeton.wordnet.browser.Controller.makeTextView ( final String  thisTitle,
final String  thisTooltip,
final String  thisText 
) [package, pure virtual]

Make text view

Parameters:
thisTitle title
thisTooltip tooltip
thisText text

Implemented in edu.princeton.wordnet.browser.UI.

abstract void edu.princeton.wordnet.browser.Controller.makeTreeView ( final TreeView  thisView,
final String  thisTitle,
final String  thisTooltip,
final TreeModel  thisTreeModel 
) [protected, pure virtual]

Make tree view

Parameters:
thisView treeview
thisTitle title
thisTooltip tooltip
thisTreeModel treemodel

Implemented in edu.princeton.wordnet.browser.UI.

String edu.princeton.wordnet.browser.Controller.mangle ( final String  thatString  )  [protected]

Mangle string

Parameters:
thatString string to mangle
Returns:
mangled string
abstract void edu.princeton.wordnet.browser.Controller.quit (  )  [protected, pure virtual]

Quit

Implemented in edu.princeton.wordnet.browser.UI.

abstract void edu.princeton.wordnet.browser.Controller.reportClientError ( final Throwable  t  )  [protected, pure virtual]

Report Client Error

Parameters:
t Throwable

Implemented in edu.princeton.wordnet.browser.UI.

abstract void edu.princeton.wordnet.browser.Controller.reportException ( final Exception  e  )  [protected, pure virtual]

Report Exception

Parameters:
e Exception

Implemented in edu.princeton.wordnet.browser.UI.

abstract void edu.princeton.wordnet.browser.Controller.setConnected ( boolean  isConnected  )  [protected, pure virtual]

Set status connected

Parameters:
isConnected whether client is connected
abstract void edu.princeton.wordnet.browser.Controller.setSearching ( boolean  isSearching  )  [protected, pure virtual]

Set status searching

Parameters:
isSearching whether client is searching
abstract void edu.princeton.wordnet.browser.Controller.setStatus ( final String  thisMessage  )  [protected, pure virtual]

Set status

Parameters:
thisMessage message

Implemented in edu.princeton.wordnet.browser.UI.

void edu.princeton.wordnet.browser.Controller.start (  )  [protected]

Start


Member Data Documentation

Properties edu.princeton.wordnet.browser.Controller.theSettings = new Properties() [protected]

Settings


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations
Generated on Tue May 25 16:43:50 2010 for WordNetScope by  doxygen 1.6.3