|
RapidSpell Desktop |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.keyoti.rapidSpell.desktop.TextBoxUtilityAdapter
Facilitates painting on any JTextComponent and tracks changes This class can be derived from for custom painting of other text boxes.
Field Summary | |
protected java.lang.String |
currentText
|
protected java.lang.String |
oldText
|
protected javax.swing.text.JTextComponent |
textBox
|
protected java.util.ArrayList |
underlines
|
Constructor Summary | |
TextBoxUtilityAdapter(javax.swing.text.JTextComponent t)
|
Method Summary | |
void |
addDocumentListener(javax.swing.event.DocumentListener l)
|
void |
changedUpdate(javax.swing.event.DocumentEvent e)
Gives notification that an attribute or set of attributes changed. |
protected WavyUnderlinePainter |
getNewWavyUnderlinePainter()
Returns a new instance of WavyUnderlinePainter (or a subclass) used to paint the underlines. |
protected int[] |
IdentifyChange()
Returns the start and end indices in the current text of the changed text. |
void |
insertUpdate(javax.swing.event.DocumentEvent e)
Gives notification that there was an insert into the document. |
int |
LastRightClickChar()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component. |
protected void |
OnTextChanged()
Called when the text box's text is changed |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Called when property changes are made in the text box. |
void |
removeAllUnderlines()
|
void |
removeDocumentListener(javax.swing.event.DocumentListener l)
|
void |
RemoveUnderline(int underlineIndex)
|
void |
RemoveUnderline(int start,
int end,
int u,
java.awt.Color c)
Remove underline text, from start index to end index. |
void |
removeUpdate(javax.swing.event.DocumentEvent e)
|
void |
Underline(int start,
int end,
int u,
java.awt.Color c)
Underline text, from start index to end index. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected javax.swing.text.JTextComponent textBox
protected java.lang.String currentText
protected java.lang.String oldText
protected java.util.ArrayList underlines
Constructor Detail |
public TextBoxUtilityAdapter(javax.swing.text.JTextComponent t)
Method Detail |
public int LastRightClickChar()
protected WavyUnderlinePainter getNewWavyUnderlinePainter()
public void propertyChange(java.beans.PropertyChangeEvent evt)
public void addDocumentListener(javax.swing.event.DocumentListener l)
public void removeDocumentListener(javax.swing.event.DocumentListener l)
public void changedUpdate(javax.swing.event.DocumentEvent e)
public void insertUpdate(javax.swing.event.DocumentEvent e)
public void removeUpdate(javax.swing.event.DocumentEvent e)
public void Underline(int start, int end, int u, java.awt.Color c)
public void RemoveUnderline(int start, int end, int u, java.awt.Color c)
public void RemoveUnderline(int underlineIndex)
public void removeAllUnderlines()
protected void OnTextChanged()
protected int[] IdentifyChange()
public void mouseClicked(java.awt.event.MouseEvent e)
public void mouseEntered(java.awt.event.MouseEvent e)
public void mouseExited(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
|
RapidSpell Desktop |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |