|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.zfqjava.swing.JTextSpeller
public class JTextSpeller
JTextSpeller provides a text speller component.
| Nested Class Summary | |
|---|---|
static class |
JTextSpeller.AbstractSpeller
AbstractSpeller handles the spell operation. |
protected class |
JTextSpeller.AccessibleJTextSpeller
This class implements accessibility support for the JTextSpeller class. |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
CANCEL_CONTROL
Type used for cancel button on the text speller. |
static int |
IGNORE_ALL_CONTROL
Type used for ingore all button on the text speller. |
static int |
IGNORE_CONTROL
Type used for ignore button on the text speller. |
static int |
REPLACE_ALL_CONTROL
Type used for replace all button on the text speller. |
static int |
REPLACE_CONTROL
Type used for replace button on the text speller. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JTextSpeller()
|
|
| Method Summary | |
|---|---|
void |
cancel()
Called by JTextSpeller when the user hits the Cancel button. |
protected JDialog |
createDialog(Component parent)
Creates a dialog for the JTextSpeller. |
protected JTextSpeller.AbstractSpeller |
createSpeller(Component c)
Factory methods to create the AbstractSpeller for specified component. |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JTextSpeller. |
JButton |
getControlButton(int controlType)
Gets the control button of the type. |
String |
getErrorText()
Returns the error text. |
Component |
getForComponent()
Returns the component that the JTextSpeller attach. |
String |
getReplaceText()
Returns the replace text. |
JTextSpeller.AbstractSpeller |
getSpeller()
Returns the speller for JTextSpeller. |
String[] |
getSuggestText()
Returns the suggest text. |
TextSpellerUI |
getUI()
Returns the look and feel (L&F) object that renders this component. |
String |
getUIClassID()
Returns a string that specifies the name of the L&F class that renders this component. |
void |
ignore()
Called by JTextSpeller when the user hits the Ignore button. |
void |
ignoreAll()
Called by JTextSpeller when the user hits the Ignore All button. |
protected String |
paramString()
Returns a string representation of this JTextSpeller. |
void |
replace()
Called by JTextSpeller when the user hits the Replace button. |
void |
replaceAll()
Called by JTextSpeller when the user hits the Replace All button. |
void |
setErrorText(String errorText)
Sets the error text. |
void |
setForComponent(Component c)
Sets the component that the JTextSpeller attach. |
void |
setReplaceText(String replaceText)
Sets the replace text. |
void |
setSpeller(JTextSpeller.AbstractSpeller speller)
Sets the speller for JTextSpeller. |
void |
setSuggestText(String[] suggestText)
Sets the suggest text. |
void |
setUI(TextSpellerUI ui)
Sets the look and feel (L&F) object that renders this component. |
void |
showDialog(Component parent)
Pops up a dialog contains the JTextSpeller and parented
to parent with the dialog having a default title. |
void |
updateUI()
Resets the UI property with a value from the current look and feel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int IGNORE_CONTROL
public static final int IGNORE_ALL_CONTROL
public static final int REPLACE_CONTROL
public static final int REPLACE_ALL_CONTROL
public static final int CANCEL_CONTROL
| Constructor Detail |
|---|
public JTextSpeller()
| Method Detail |
|---|
public void updateUI()
updateUI in class JComponentJComponent.updateUI()public TextSpellerUI getUI()
public void setUI(TextSpellerUI ui)
ui - the TextSpellerUI L&F objectUIDefaults.getUI(javax.swing.JComponent)public String getUIClassID()
getUIClassID in class JComponentJComponent.getUIClassID(),
UIDefaults.getUI(javax.swing.JComponent)public JButton getControlButton(int controlType)
controlType - the type of the button to be selected:
public void setErrorText(String errorText)
errorText - the error textgetErrorText()public String getErrorText()
setErrorText(java.lang.String)public void setReplaceText(String replaceText)
replaceText - the replace textgetReplaceText()public String getReplaceText()
setReplaceText(java.lang.String)public void setSuggestText(String[] suggestText)
suggestText - the suggest textgetSuggestText()public String[] getSuggestText()
setSuggestText(java.lang.String[])public void setForComponent(Component c)
JTextSpeller attach.
c - the component to attachgetForComponent()public Component getForComponent()
JTextSpeller attach.
setForComponent(java.awt.Component)public void ignore()
JTextSpeller when the user hits the Ignore button.
This can also be called by the programmer.
public void ignoreAll()
JTextSpeller when the user hits the Ignore All button.
This can also be called by the programmer.
public void replace()
JTextSpeller when the user hits the Replace button.
This can also be called by the programmer.
public void replaceAll()
JTextSpeller when the user hits the Replace All button.
This can also be called by the programmer.
public void cancel()
JTextSpeller when the user hits the Cancel button.
This can also be called by the programmer.
public void setSpeller(JTextSpeller.AbstractSpeller speller)
JTextSpeller.
speller - the spellergetSpeller()public JTextSpeller.AbstractSpeller getSpeller()
JTextSpeller.
setSpeller(com.zfqjava.swing.JTextSpeller.AbstractSpeller)protected JTextSpeller.AbstractSpeller createSpeller(Component c)
c - the specified component
public void showDialog(Component parent)
JTextSpeller and parented
to parent with the dialog having a default title.
parent - the parent of the dialogprotected JDialog createDialog(Component parent)
JTextSpeller.
parent - the parent of the dialogprotected String paramString()
null.
paramString in class JComponentpublic AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JComponent
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||