|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wallstreetwise.app.jspell.gui.JSpellSwingTextComponentWrapper
public class JSpellSwingTextComponentWrapper
A wrapper class for JTextComponents.
| Constructor Summary | |
|---|---|
JSpellSwingTextComponentWrapper(JSpellTextComponent text)
Construct the wrapper. |
|
JSpellSwingTextComponentWrapper(javax.swing.text.JTextComponent text)
Construct the wrapper. |
|
JSpellSwingTextComponentWrapper(java.awt.TextComponent text)
Construct the wrapper. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 JSpellTextComponent
public void select(int begin,
int end)
select in interface JSpellTextComponentbegin - an int.end - an int.public java.awt.Frame getFrame()
getFrame in interface JSpellTextComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||