|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchrriis.dj.swingsuite.TextEntryMask
public abstract class TextEntryMask
The superclass of all masks.
Constructor Summary | |
---|---|
TextEntryMask()
|
Method Summary | |
---|---|
protected abstract Integer |
getCodePoint(String text,
int codePoint,
int position)
Considering some text and a code point that is being inserted at a given position, return the code point to actually insert or null if the insertion is not allowed. |
protected abstract int |
getDefaultCodePoint(int position)
Get the code point to use at a specific position when there is no user input. |
protected abstract int |
getLength()
Get the length of this mask. |
protected abstract int |
getNextValidInputPosition(int position)
Get the next valid input position that is the same or after the specified postion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextEntryMask()
Method Detail |
---|
protected abstract Integer getCodePoint(String text, int codePoint, int position)
text
- the text in which the insertion will occur.codePoint
- the code point that is being inserted.position
- the position at which the code point is inserted.
protected abstract int getLength()
protected abstract int getDefaultCodePoint(int position)
position
- the position for which to get the code point.
protected abstract int getNextValidInputPosition(int position)
position
- the reference position to get the next valid one.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |