com.jspell.domain.net
Class JSpellHTMLTools

java.lang.Object
  extended by com.jspell.domain.net.JSpellTools
      extended by com.jspell.domain.net.JSpellHTMLTools

public class JSpellHTMLTools
extends JSpellTools

This is a helper class for the JSpell HTML Pro product.


Field Summary
 
Fields inherited from class com.jspell.domain.net.JSpellTools
bannerPrinted, cacheSize, defaultProxy, dictionaryPath, indexReady, softwareID
 
Method Summary
 java.lang.String getBlankURL(javax.servlet.ServletRequest request)
          Retrieves the URL of the blank page for the preview panes.
 java.lang.String getDirectEdit(javax.servlet.ServletRequest request)
          Returns the directEdit value.
 java.lang.String getErrors(javax.servlet.ServletRequest request, java.lang.String directEdit, java.lang.String ieMode, boolean confirmAfterLearn, boolean confirmAfterReplace, java.lang.String supplementalDictionary, java.lang.String language)
          Generates the JavaScript used in the JSpell HTML Pro spell checker dialog.
 java.lang.String getIEMode(javax.servlet.ServletRequest request)
          Returns the directEdit value.
static JSpellHTMLTools getJSpellTools()
          Get the instance of the JSpellHTMLTools class.
 
Methods inherited from class com.jspell.domain.net.JSpellTools
getImagePath, getLanguage, getProxy, getStyleSheetURL, getSupplementalDictionary, indexSetup, loadSupplementalDictionary, setCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJSpellTools

public static JSpellHTMLTools getJSpellTools()
Get the instance of the JSpellHTMLTools class.

Returns:
A JSpellHTMLTools object.

getErrors

public java.lang.String getErrors(javax.servlet.ServletRequest request,
                                  java.lang.String directEdit,
                                  java.lang.String ieMode,
                                  boolean confirmAfterLearn,
                                  boolean confirmAfterReplace,
                                  java.lang.String supplementalDictionary,
                                  java.lang.String language)
                           throws JSpellException
Generates the JavaScript used in the JSpell HTML Pro spell checker dialog.

Parameters:
request - a ServletRequest object.
directEdit - true or false.
ieMode - true or false.
confirmAfterLearn - true or false.
confirmAfterReplace - true or false.
supplementalDictionary - a String.
language - a String.
Returns:
a String.
Throws:
JSpellException - containing JSpell exception information.

getBlankURL

public java.lang.String getBlankURL(javax.servlet.ServletRequest request)
Retrieves the URL of the blank page for the preview panes.

Parameters:
request - a ServletRequest object.
Returns:
a String.

getDirectEdit

public java.lang.String getDirectEdit(javax.servlet.ServletRequest request)
Returns the directEdit value.

Parameters:
request - a ServletRequest object.
Returns:
a String.

getIEMode

public java.lang.String getIEMode(javax.servlet.ServletRequest request)
Returns the directEdit value.

Parameters:
request - a ServletRequest object.
Returns:
a String.


JSpell SDK - Spell Checker for the Java ™ Platform
Copyright © 2009 Page Scholar Inc, All Rights Reserved - http://www.jspell.com