com.jspell.gui
Interface JSpellTextComponent

All Known Implementing Classes:
JSpellSwingTextComponentWrapper

public interface JSpellTextComponent

This interface can be implemented by classes other than TextComponents to allow spell checking of all types of GUI or even non-GUI objects.


Method Summary
 void deselect()
          Deselect text in the text component.
 java.awt.Frame getFrame()
          Get the parent frame of the wrapped component.
 java.lang.String getText()
          Allows classes that access JSpellTextComponent implementors to retrieve the text contained in the control.
 java.awt.TextComponent getTextComponent()
          Get the TextComponent
 void select(int begin, int end)
          Selects text from begin to end.
 void setText(java.lang.String text)
          Sets the text in the control.
 

Method Detail

getText

java.lang.String getText()
Allows classes that access JSpellTextComponent implementors to retrieve the text contained in the control.

Returns:
a String.

setText

void setText(java.lang.String text)
Sets the text in the control. This should replace any pre-existing text.

Parameters:
text - a String.

select

void select(int begin,
            int end)
Selects text from begin to end.

Parameters:
begin - an int.
end - an int.

getFrame

java.awt.Frame getFrame()
Get the parent frame of the wrapped component. SWING problem here!

Returns:
a Frame.

getTextComponent

java.awt.TextComponent getTextComponent()
Get the TextComponent

Returns:
a TextComponent object.

deselect

void deselect()
Deselect text in the text component.



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