public class JSpellSwingTextComponentWrapper extends java.lang.Object implements JSpellTextComponent
| Constructor and Description |
|---|
JSpellSwingTextComponentWrapper(JSpellTextComponent text)
Construct the wrapper.
|
JSpellSwingTextComponentWrapper(javax.swing.text.JTextComponent text)
Construct the wrapper.
|
JSpellSwingTextComponentWrapper(java.awt.TextComponent text)
Construct the wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deselect()
Removes the highlight from the text component.
|
java.awt.Frame |
getFrame()
Get the Frame or parent Frame containing this text component.
|
java.lang.String |
getText()
Returns the text of the text component.
|
java.awt.TextComponent |
getTextComponent()
Returns the TextComponent object in this wrapper.
|
void |
select(int begin,
int end)
Highlights the text in the text component.
|
void |
setText(java.lang.String string)
Sets the text in the text component.
|
public JSpellSwingTextComponentWrapper(javax.swing.text.JTextComponent text)
text - a JTextComponent object.public JSpellSwingTextComponentWrapper(java.awt.TextComponent text)
text - an AWT TextComponent object.public JSpellSwingTextComponentWrapper(JSpellTextComponent text)
text - a JSpellTextComponent object.public java.awt.TextComponent getTextComponent()
getTextComponent in interface JSpellTextComponentpublic java.lang.String getText()
getText in interface JSpellTextComponentpublic void setText(java.lang.String string)
setText in interface JSpellTextComponentstring - a String.public void deselect()
deselect in interface JSpellTextComponentpublic void select(int begin,
int end)
select in interface JSpellTextComponentbegin - an int.end - an int.public java.awt.Frame getFrame()
getFrame in interface JSpellTextComponentJSpell SDK - Spell Checker for the Java Platform
Copyright © 2009-2019 Page Scholar Inc, All Rights Reserved - https://www.jspell.com