voji.ui
Class JFormatTextField.FormatTextFieldDocument

java.lang.Object
  |
  +--javax.swing.text.AbstractDocument
        |
        +--javax.swing.text.PlainDocument
              |
              +--voji.ui.JFormatTextField.FormatTextFieldDocument
All Implemented Interfaces:
javax.swing.text.Document, java.io.Serializable
Enclosing class:
JFormatTextField

public class JFormatTextField.FormatTextFieldDocument
extends javax.swing.text.PlainDocument

See Also:
Serialized Form

Field Summary
 int maxLength
           
 boolean toUpperCase
           
 
Fields inherited from class javax.swing.text.PlainDocument
lineLimitAttribute, tabSizeAttribute
 
Fields inherited from class javax.swing.text.AbstractDocument
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Constructor Summary
(package private) JFormatTextField.FormatTextFieldDocument(int maxLength, boolean toUpperCase)
           
 
Method Summary
 int getMaxLength()
           
 boolean getToUpperCase()
           
 void insertString(int offset, java.lang.String str, javax.swing.text.AttributeSet attr)
           
 void setMaxLength(int maxLength)
           
 void setToUpperCase(boolean toUpperCase)
           
 
Methods inherited from class javax.swing.text.PlainDocument
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdate
 
Methods inherited from class javax.swing.text.AbstractDocument
addDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxLength

public int maxLength

toUpperCase

public boolean toUpperCase
Constructor Detail

JFormatTextField.FormatTextFieldDocument

JFormatTextField.FormatTextFieldDocument(int maxLength,
                                         boolean toUpperCase)
Method Detail

getMaxLength

public int getMaxLength()

setMaxLength

public void setMaxLength(int maxLength)

getToUpperCase

public boolean getToUpperCase()

setToUpperCase

public void setToUpperCase(boolean toUpperCase)

insertString

public void insertString(int offset,
                         java.lang.String str,
                         javax.swing.text.AttributeSet attr)
                  throws javax.swing.text.BadLocationException
Specified by:
insertString in interface javax.swing.text.Document
Overrides:
insertString in class javax.swing.text.PlainDocument
javax.swing.text.BadLocationException