Package snap.viewx
Class SpellCheckPanel
java.lang.Object
snap.props.PropObject
snap.view.ViewOwner
snap.viewx.SpellCheckPanel
- All Implemented Interfaces:
PropChange.DoChange
This class uses the SpellCheck class to check spelling.
-
Field Summary
Fields inherited from class snap.view.ViewOwner
Action, DragDrop, DragEnter, DragEvents, DragExit, DragGesture, DragOver, KeyEvents, KeyPress, KeyRelease, KeyType, MouseDrag, MouseEnter, MouseEvents, MouseExit, MouseMove, MousePress, MouseRelease, Showing_Prop, WinClose
Fields inherited from class snap.props.PropObject
_pcs, EMPTY_OBJECT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Do correction.void
Find next misspelling.protected int
protected TextEditor
Returns the TextEditor.protected int
protected abstract String
Returns the text that this spell check panel should be checking.protected void
initUI()
Initialize UI.protected void
replaceChars
(String aString) void
resetUI()
Reset the UI.void
Handles okay button.protected void
setSel
(int aStart) protected void
setSel
(int aStart, int anEnd) void
Runs the spell check panel.Methods inherited from class snap.view.ViewOwner
addKeyActionFilter, addKeyActionHandler, addViewEventHandler, beep, cancelReset, createUI, createUIForClass, dispatchEventToOwner, enableEvents, fireActionEventForObject, getEnv, getFirstFocus, getImage, getNative, getToggleGroup, getUI, getUI, getUISource, getView, getView, getViewBoolValue, getViewFloatValue, getViewIntValue, getViewItems, getViewSelIndex, getViewSelItem, getViewStringValue, getViewText, getViewValue, getWindow, initShowing, initWindow, invokeResetUI, invokeRespondUI, isEventThread, isSendEventDisabled, isShowing, isUISet, isViewDisabled, isViewEnabled, isViewVisible, isWindowSet, isWindowVisible, requestFocus, resetLater, runDelayed, runLater, setFirstFocus, setSendEventDisabled, setShowing, setViewDisabled, setViewEnabled, setViewItems, setViewItems, setViewSelIndex, setViewSelItem, setViewText, setViewValue, setViewVisible, setWindowVisible
Methods inherited from class snap.props.PropObject
addDeepChangeListener, addPropChangeListener, addPropChangeListener, clone, firePropChange, firePropChange, firePropChange, getPropDefault, getPropForName, getPropParent, getPropSet, getPropsForArchival, getPropsForArchivalExtra, getPropsString, getPropValue, initProps, isPropDefault, processPropChange, removeDeepChangeListener, removePropChangeListener, removePropChangeListener, setPropsString, setPropValue, setPropValues, toString, toStringProps
-
Constructor Details
-
SpellCheckPanel
public SpellCheckPanel()Constructor.
-
-
Method Details
-
show
Runs the spell check panel. -
initUI
protected void initUI()Initialize UI. -
resetUI
public void resetUI()Reset the UI. -
respondUI
Handles okay button. -
findNextMisspelling
public void findNextMisspelling()Find next misspelling. -
doCorrection
public void doCorrection()Do correction. -
getTextString
Returns the text that this spell check panel should be checking. -
getTextEditor
Returns the TextEditor. -
getTextLength
protected int getTextLength() -
getSelEnd
protected int getSelEnd() -
setSel
protected void setSel(int aStart) -
setSel
protected void setSel(int aStart, int anEnd) -
replaceChars
-