|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
com.jaxfront.swing.helpers.NumericDocument
com.jaxfront.swing.helpers.DecimalDocument
com.jaxfront.swing.helpers.IntegerDocument
public class IntegerDocument
Integer is derived from decimal by fixing the value of fractionDigits to be 0. This results in the standard mathematical concept of the integer numbers. The value space of integer is the infinite set {...,-2,-1,0,1,2,...}. The base type of integer is decimal.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument |
---|
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, 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 |
---|
Fields inherited from class javax.swing.text.PlainDocument |
---|
lineLimitAttribute, tabSizeAttribute |
Fields inherited from class javax.swing.text.AbstractDocument |
---|
BidiElementName, ContentElementName, ElementNameAttribute, ParagraphElementName, SectionElementName |
Fields inherited from interface javax.swing.text.Document |
---|
StreamDescriptionProperty, TitleProperty |
Constructor Summary | |
---|---|
IntegerDocument(boolean useErrorSound)
IntegerDocument constructor. |
Method Summary | |
---|---|
boolean |
isIntDocument()
|
void |
parse(java.lang.String proposedResult)
Parses the current result and checks if it is a double value. |
Methods inherited from class com.jaxfront.swing.helpers.NumericDocument |
---|
allowInvalidMinValues, getDecimalSymbols, getDefaultMaxValue, getDefaultMinValue, getMaxExclValue, getMaxInclValue, getMaxValue, getMinExclValue, getMinInclValue, getMinValue, getTotalDigit, insertString, isBypassing, isMaxExcl, isMaxIncl, isMinExcl, isMinIncl, remove, setAllowInvalidMinValues, setBypassing, setDecimalSymbols, setDefaultMaxValue, setDefaultMinValue, setMaxExclValue, setMaxInclValue, setMinExclValue, setMinInclValue, setTotalDigit |
Methods inherited from class javax.swing.text.PlainDocument |
---|
getDefaultRootElement, getParagraphElement |
Methods inherited from class javax.swing.text.AbstractDocument |
---|
addDocumentListener, addUndoableEditListener, createPosition, dump, getAsynchronousLoadPriority, getBidiRootElement, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, putProperty, readLock, readUnlock, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerDocument(boolean useErrorSound)
useErrorSound
- true, if the system should give out an error sound (beep)maxLengthOfCharacter
- the maximum allowed length of the input characterMethod Detail |
---|
public void parse(java.lang.String proposedResult) throws java.lang.NumberFormatException
DecimalDocument
parse
in class DecimalDocument
proposedResult
- the current result that needs to be checked
java.lang.NumberFormatException
- if the proposedResult is not a float valueNumericDocument.parse(String)
public boolean isIntDocument()
isIntDocument
in class NumericDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |