com.jaxfront.swing.helpers
Class ShortDocument

java.lang.Object
  extended by javax.swing.text.AbstractDocument
      extended by javax.swing.text.PlainDocument
          extended by com.jaxfront.swing.helpers.NumericDocument
              extended by com.jaxfront.swing.helpers.DecimalDocument
                  extended by com.jaxfront.swing.helpers.IntegerDocument
                      extended by com.jaxfront.swing.helpers.ShortDocument
All Implemented Interfaces:
JAXFrontDocument, java.io.Serializable, javax.swing.text.Document

public class ShortDocument
extends IntegerDocument

The ShortDocument is an implementation of the NumericDocument. It ensures that only numeric values in the range of a Java Short can be added to the Document.

Version:
1.60
See Also:
Serialized Form

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
ShortDocument(boolean useErrorSound)
          ShortDocument constructor.
 
Method Summary
 
Methods inherited from class com.jaxfront.swing.helpers.IntegerDocument
isIntDocument, parse
 
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

ShortDocument

public ShortDocument(boolean useErrorSound)
ShortDocument constructor.

Parameters:
useErrorSound - true, if the system should give out an error sound (beep)
maxLengthOfCharacter - the maximum allowed length of the input character