com.inet.jortho
Class SpellCheckerOptions

java.lang.Object
  extended by com.inet.jortho.SpellCheckerOptions

public class SpellCheckerOptions
extends java.lang.Object

This class hold some options for spell checking. You can change it global see (SpellChecker.getOptions() or for every JTextComponent on registering.


Constructor Summary
SpellCheckerOptions()
          Create a SpellCheckerOptions with default values.
 
Method Summary
 int getSuggestionsLimitDialog()
          Get the maximun count of enties for the suggestion list in the spell checker dialog.
 int getSuggestionsLimitMenu()
          Get the maximun count of enties for the suggestion menu.
 boolean isCaseSensitive()
          Get if the spell checker is case sensitive.
 void setCaseSensitive(boolean caseSensitive)
          Set if the spell checker is case sensitive.
 void setSuggestionsLimitDialog(int count)
          Set the maximun count of enties for the suggestion list in the spell checker dialog.
 void setSuggestionsLimitMenu(int count)
          Set the maximun count of enties for the suggestion menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpellCheckerOptions

public SpellCheckerOptions()
Create a SpellCheckerOptions with default values.

Method Detail

setSuggestionsLimitMenu

public void setSuggestionsLimitMenu(int count)
Set the maximun count of enties for the suggestion menu.

Parameters:
count - the suggestions limit

getSuggestionsLimitMenu

public int getSuggestionsLimitMenu()
Get the maximun count of enties for the suggestion menu. The default is 15.

Returns:
the suggestions limit

setSuggestionsLimitDialog

public void setSuggestionsLimitDialog(int count)
Set the maximun count of enties for the suggestion list in the spell checker dialog.

Parameters:
count - the suggestions limit

getSuggestionsLimitDialog

public int getSuggestionsLimitDialog()
Get the maximun count of enties for the suggestion list in the spell checker dialog. The default is 15.

Returns:
the suggestions limit

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)
Set if the spell checker is case sensitive. This has only an effect to the first letter of a word. The default value is true.

Parameters:
caseSensitive -

isCaseSensitive

public boolean isCaseSensitive()
Get if the spell checker is case sensitive.

Returns:
the value of the flag


Copyright © 2005 - 2007 i-net software. All Rights Reserved.