|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--GLOBALS
| Method Summary | |
<static> void
|
Animate(<String> id)
it Animates the < div > whose id is passed. |
<static> void
|
Complete(<HTML> source, <HTML> target)
Completes the word in input textarea and its converetd version in output area. |
<static> String
|
Convert(<String> str)
It Converts/Transliterates the English text to Hindi |
<static> void
|
editSaveButton(<HTML> btn, <String> text)
Changes text of button btn to text and after 3 seconds call another function which changes it back to old Text. |
<static> String
|
Escape(<String> text)
Function is used to escape characters which can be harmful to Regular Expression. |
<static> Int
|
GetCaretPosition(<HTML> node)
Fucntion to get caret position. |
<static> Boolean
|
HandleClickOnDiv()
Handles Click event on div which contains single suggestion word. |
<static> void
|
HandleMouseOverA()
Handles Mouse Over condition on < a > element. |
<static> void
|
HandleMouseOverDiv()
Handles Mouse Over condition on |
<static> void
|
helpClicked(<HTML> btn, <String> div)
Called when button Display Help/Hide Help is clicked. |
<static> void
|
Highlight()
Highlights focused element/suggestion contained < a > and < div > which contains < a >. |
<static> void
|
HnadleClickOnTextArea()
Handles Click event on TextArea. |
<static> void
|
Predict()
This function predicts the possible completions of the words. |
<static> void
|
resetSaveButton(<String> id, <String> text)
Called by editSaveButton function after delay of 3 seconds. |
<static> void
|
SaveWords(<HTML> btn, <HTML> id)
Saves all new words from input textarea in suggestion database.At present it saves only temporarily in javascript array. |
<static> Void
|
SetCaretPosition(<HTML> oField, <Int> iCaretPos)
Fucntion to set caret position. |
<static> void
|
ShowSuggest(<HTML> element)
It displays suggestions in browser. |
<static> Array
|
Suggest(<String> word, <String> string)
It finds suggestions from stored words. |
<static> boolean
|
SuggestionKeyDown(<HTML> event)
Handles keyDown event on Suggestion Box. |
<static> boolean
|
TextAreaKeyDown(<HTML> event)
Handles keyDown event on TextArea. |
| Method Detail |
<static> void Animate(<String> id)
id - id of element which is to be animated.
<static> void Complete(<HTML> source, <HTML> target)
source - ID of source is same as word to be completed (whats writen in suggestion area)
target - Input Text area in which word is to be competed.
<static> String Convert(<String> str)
str - Text which is to be Transliterated
<static> void editSaveButton(<HTML> btn, <String> text)
btn - Button on clicking which function was called.
text - Text to be displayed on button (btn)
<static> String Escape(<String> text)
text - Text in which characters are to be escaped.
<static> Int GetCaretPosition(<HTML> node)
node - Element in which caret position is required.
<static> Boolean HandleClickOnDiv()
<static> void HandleMouseOverA()
<static> void HandleMouseOverDiv()
<static> void helpClicked(<HTML> btn, <String> div)
btn - Button on clicking which function was called.
div - id of element which is to be animated.
<static> void Highlight()
none - this pointer is passed internally.
<static> void HnadleClickOnTextArea()
<static> void Predict()
<static> void resetSaveButton(<String> id, <String> text)
id - ID of element(button) whose text is to be changed.
text - Text to be displayed on element(button).
<static> void SaveWords(<HTML> btn, <HTML> id)
btn - Button which was clicked to call this fucntion.
id - Element from which words to be saved are taken.
<static> Void SetCaretPosition(<HTML> oField, <Int> iCaretPos)
oField - Field in which caret position is to be set.
iCaretPos - Index where caret position will be set.
<static> void ShowSuggest(<HTML> element)
element - Element relative to which suggestion box will be displayed. In our case, input box.
<static> Array Suggest(<String> word, <String> string)
word - Starting of word to be suggested.
string - Data from which suggestions will be provided. Should be Comma Separated String. Starting and ending with comma.
<static> boolean SuggestionKeyDown(<HTML> event)
event - Event which took place. In this case, keyDown event.
<static> boolean TextAreaKeyDown(<HTML> event)
event - Event which took place. In this case, keyDown event.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||