|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.swing.text.DocumentFilter
com.wordpress.tipsforjava.swing.text.ChainedDocumentFilter
com.wordpress.tipsforjava.swing.text.UpperCaseDocumentFilter
public class UpperCaseDocumentFilter extends ChainedDocumentFilter
The UpperCaseDocumentFilter converts all characters to upper case before the characters are inserted into the Document.
| Field Summary |
|---|
| Fields inherited from class ChainedDocumentFilter | |
|---|---|
| filter |
| Constructor Summary | |
UpperCaseDocumentFilter()
Standard constructor for stand alone usage |
|
UpperCaseDocumentFilter(DocumentFilter filter)
Constructor used when further filtering is required after this filter has been applied. |
|
| Method Summary | |
|---|---|
private String
|
convertString(String mixedCase)
Convert each character in the input string to upper case |
void
|
insertString(FilterBypass fb, int offs, String str, AttributeSet a)
|
void
|
replace(FilterBypass fb, int offs, int length, String str, AttributeSet a)
|
| Methods inherited from class ChainedDocumentFilter | |
|---|---|
| getFilter, insertString, installFilter, provideErrorFeedback, remove, replace, setFilter, uninstallFilter |
| Methods inherited from class DocumentFilter | |
|---|---|
| replace, remove, insertString, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Constructor Detail |
|---|
public UpperCaseDocumentFilter()
public UpperCaseDocumentFilter(DocumentFilter filter)
| Method Detail |
|---|
private String convertString(String mixedCase)
mixedCase - a String of mixed case characters
public void insertString(FilterBypass fb, int offs, String str, AttributeSet a)
public void replace(FilterBypass fb, int offs, int length, String str, AttributeSet a)
Groovy Documentation