|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.DefaultFormatter.ReplaceHolder javax.swing.text.InternationalFormatter.ExtendedReplaceHolder
As InternationalFormatter replaces the complete text on every edit, ExtendedReplaceHolder keeps track of the offset and length passed into canReplace.
Field Summary | |
(package private) AttributeSet |
attrs
AttributeSet to attach to text, may be null. |
(package private) int |
cursorPosition
Position the cursor should be adjusted from. |
(package private) int |
endOffset
Offset of the insert/remove. |
(package private) int |
endTextLength
Length of the text. |
(package private) DocumentFilter.FilterBypass |
fb
The FilterBypass that was passed to the DocumentFilter method. |
(package private) int |
length
Length of text to remove. |
(package private) int |
offset
Offset where the remove/insert is going to occur. |
(package private) String |
text
The text to insert, may be null. |
(package private) Object |
value
The resulting value, this may never be set. |
Constructor Summary | |
(package private) |
InternationalFormatter.ExtendedReplaceHolder()
|
Method Summary | |
(package private) void |
reset(DocumentFilter.FilterBypass fb,
int offset,
int length,
String text,
AttributeSet attrs)
|
(package private) void |
resetFromValue(InternationalFormatter formatter)
Resets the region to delete to be the complete document and the text from invoking valueToString on the current value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
int endOffset
int endTextLength
DocumentFilter.FilterBypass fb
int offset
int length
String text
AttributeSet attrs
Object value
int cursorPosition
Constructor Detail |
InternationalFormatter.ExtendedReplaceHolder()
Method Detail |
void resetFromValue(InternationalFormatter formatter)
void reset(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |