|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.text.AbstractDocument
|
+--javax.swing.text.PlainDocument
|
+--com.instantbank.common.uiutils.IntegerDocument
Auxiliary class suited for restricting input for a JTextField to numeric strings.
| Inner classes inherited from class javax.swing.text.AbstractDocument |
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BidiElement, javax.swing.text.AbstractDocument.BidiRootElement, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement |
| Field Summary | |
static int |
ALL
Input can be positive or negative |
static int |
NEGATIVE
Input must be negative or zero |
static int |
POSITIVE
Input must be positive or zero |
private int |
range
Allowed range for the input (POSITIVE, NEGATIVE, ALL) |
| Fields inherited from class javax.swing.text.PlainDocument |
added, defaultRoot, lineLimitAttribute, removed, tabSizeAttribute |
| Fields inherited from class javax.swing.text.AbstractDocument |
AsyncLoadPriority, BAD_LOCATION, BAD_LOCK_STATE, BidiElementName, bidiRoot, ContentElementName, context, currWriter, data, defaultI18NProperty, documentProperties, ElementNameAttribute, I18NProperty, listenerList, MultiByteProperty, numReaders, ParagraphElementName, SectionElementName, segment |
| Fields inherited from interface javax.swing.text.Document |
StreamDescriptionProperty, TitleProperty |
| Constructor Summary | |
IntegerDocument(int range)
IntegerDocument constructor. |
|
| Method Summary | |
void |
insertString(int offset,
java.lang.String s,
javax.swing.text.AttributeSet attributeSet)
Redefinition of the method from the PlainDocument class. |
| Methods inherited from class javax.swing.text.PlainDocument |
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertComposedTextUpdate, insertUpdate, removeUpdate |
| Methods inherited from class javax.swing.text.AbstractDocument |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
| Field Detail |
public static final int POSITIVE
public static final int NEGATIVE
public static final int ALL
private int range
| Constructor Detail |
public IntegerDocument(int range)
range - Allowed range for the input (POSITIVE, NEGATIVE, ALL)| Method Detail |
public void insertString(int offset,
java.lang.String s,
javax.swing.text.AttributeSet attributeSet)
throws javax.swing.text.BadLocationException
insertString in class javax.swing.text.AbstractDocumentoffset - Description of the Parameters - Description of the ParameterattributeSet - Description of the Parameterjavax.swing.text.BadLocationException - Description of the Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||