All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Control.Read

java.lang.Object
   |
   +----Control.Read

public class Read
extends Object
A class to handle read functionality of application


Constructor Index

 o Read(ReadInterfaceView, ListOfWords, InterfaceDefinition)
This constructor will create an object read

Method Index

 o addWordDef()
This method will add the word with the definition to tha table and also word with sentence
 o buildDic()
This method will build dictionary
 o changeInter(String, String)
This method will change the interface to each specific language
 o fetchURL(String)
This method will fetch the given URL connection
 o getDefinition()
This method will display the defination of selected word by user
 o getDictHashTable()
This method will return the list of words
 o getFile()
This method will get the file for displaying in text area
 o getMainWindow()
This method will return an object of Main Window
 o showText(InputStream)
This method will display text in Main text area
 o showText(String)
This method will display text in Main text area

Constructors

 o Read
 public Read(ReadInterfaceView mainWindow,
             ListOfWords hashtable,
             InterfaceDefinition id)
This constructor will create an object read

Methods

 o buildDic
 public void buildDic()
This method will build dictionary

Returns:
none
 o getDictHashTable
 public ListOfWords getDictHashTable()
This method will return the list of words

Returns:
ListOfWords List of words selected by User
 o getMainWindow
 public ReadInterfaceView getMainWindow()
This method will return an object of Main Window

Returns:
ReadInterfaceView read window
 o showText
 public void showText(String s)
This method will display text in Main text area

Parameters:
String - Text to be displayed
Returns:
none
 o showText
 public void showText(InputStream is)
This method will display text in Main text area

Parameters:
InputStream - Text to be displayed
Returns:
none
 o fetchURL
 public void fetchURL(String s)
This method will fetch the given URL connection

Parameters:
String - The URL address
Returns:
none
 o getFile
 public void getFile()
This method will get the file for displaying in text area

 o getDefinition
 public void getDefinition()
This method will display the defination of selected word by user

Returns:
none
 o changeInter
 public void changeInter(String lang,
                         String country)
This method will change the interface to each specific language

Parameters:
String - lang -language
String - country
Returns:
none
 o addWordDef
 public void addWordDef()
This method will add the word with the definition to tha table and also word with sentence

Returns:
none

All Packages  Class Hierarchy  This Package  Previous  Next  Index