public class JSpellChecker
extends javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
JSpellChecker()
Creates a new JSpellChecker.
|
JSpellChecker(java.awt.Frame f)
When called with a Frame parameter, will cause the spell checker to center
itself within the frame.
|
JSpellChecker(java.awt.Frame f,
JSpellTextComponent textComponent)
Initializes the JSpellChecker with a Frame and a JSpellTextComponent.
|
JSpellChecker(java.awt.Frame f,
javax.swing.text.JTextComponent textComponent)
Initializes the JSpellChecker with a Frame and a JTextComponent.
|
JSpellChecker(javax.swing.JDialog d)
Used to initialize the JSpellChecker with a JDialog as a parent.
|
JSpellChecker(JSpellTextComponent textComponent)
Constructs a JSpellChecker and initializes it to spell check the
JSpellTextComponent passed in as an argument.
|
JSpellChecker(javax.swing.text.JTextComponent textComponent)
Constructs a JSpellChecker and initializes it to spell check the
JTextComponent passed in as an argument.
|
Modifier and Type | Method and Description |
---|---|
void |
addComponent(JSpellTextComponent jtext)
Adds a JSpellTextComponent object to be spell checked.
|
void |
addComponent(javax.swing.text.JTextComponent textComponent)
Adds a JTextComponent object to be spell checked.
|
void |
addComponent(java.awt.TextComponent textComponent)
Adds an AWT TextComponent object to be spell checked.
|
void |
cancel()
Cancel the spell check.
|
protected void |
centerDialog()
Centers the dialog within the Frame.
|
void |
check()
Accepts a previously constructed JSpellParser, a Frame, and the
JTextComponent to check.
|
protected void |
closeDialog()
Closes the dialog
|
JSpellParser |
getParser()
Returns the JSpellParser object.
|
boolean |
isShowComplete()
Getter for property showComplete.
|
void |
setParser(JSpellParser parser)
Initialize the JSpellChecker object with the JSpellParser that will perform
the spell checks.
|
void |
setShowComplete(boolean showComplete)
Setter for property showComplete.
|
protected void |
spellCheckComplete()
Displays the 'Spell Check Complete' message when the JSpell spell checker
has completed processing.
|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public JSpellChecker()
public JSpellChecker(javax.swing.JDialog d)
public JSpellChecker(java.awt.Frame f)
f
- a Frame object.public JSpellChecker(javax.swing.text.JTextComponent textComponent)
textComponent
- a JTextComponent.public JSpellChecker(java.awt.Frame f, javax.swing.text.JTextComponent textComponent)
f
- a Frame object.textComponent
- a JTextComponent object.public JSpellChecker(JSpellTextComponent textComponent)
textComponent
- a JSpellTextComponent.public JSpellChecker(java.awt.Frame f, JSpellTextComponent textComponent)
f
- a Frame object.textComponent
- a JSpellTextComponent object.public void addComponent(javax.swing.text.JTextComponent textComponent)
textComponent
- a JTextComponent object.public void addComponent(java.awt.TextComponent textComponent)
textComponent
- an AWT TextComponent object.public void addComponent(JSpellTextComponent jtext)
jtext
- An object that implements the JSpellTextComponent interface.public final void cancel()
public void setParser(JSpellParser parser)
parser
- a JSpellParser object.public JSpellParser getParser()
protected void centerDialog()
public void check()
protected void spellCheckComplete()
protected void closeDialog()
public boolean isShowComplete()
public void setShowComplete(boolean showComplete)
showComplete
- New value of property showComplete.JSpell SDK - Spell Checker for the Java Platform
Copyright © 2009-2019 Page Scholar Inc, All Rights Reserved - https://www.jspell.com