com.levigo.util.swing.text
Class NColumsRangeSetDocument

java.lang.Object
  extended by javax.swing.text.AbstractDocument
      extended by javax.swing.text.PlainDocument
          extended by com.levigo.util.swing.text.NColumnsTextDocument
              extended by com.levigo.util.swing.text.NColumsRangeSetDocument
All Implemented Interfaces:
Serializable, Document

public class NColumsRangeSetDocument
extends NColumnsTextDocument

A Document for numerical input with the possibility to set the length of the field and to set a range set. The range set as a vector of Strings defines which entries will be accepted.

Author:
Carolin Köhler
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement
 
Field Summary
 
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
NColumsRangeSetDocument(int numberOfColumns, Vector rangeSet)
           
 
Method Summary
 Vector getRangeSet()
          Returns the rangeSet.
 void insertString(int offs, String str, AttributeSet a)
           
 void setRangeSet(Vector rangeSet)
          Sets the rangeSet.
 
Methods inherited from class com.levigo.util.swing.text.NColumnsTextDocument
getNumberOfColumns, setNumberOfColumns
 
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
 

Constructor Detail

NColumsRangeSetDocument

public NColumsRangeSetDocument(int numberOfColumns,
                               Vector rangeSet)
Method Detail

insertString

public void insertString(int offs,
                         String str,
                         AttributeSet a)
                  throws BadLocationException
Specified by:
insertString in interface Document
Overrides:
insertString in class NColumnsTextDocument
Throws:
BadLocationException
See Also:
NColumnsTextDocument.insertString(int, String, AttributeSet)

getRangeSet

public Vector getRangeSet()
Returns the rangeSet.

Returns:
Vector

setRangeSet

public void setRangeSet(Vector rangeSet)
Sets the rangeSet.

Parameters:
rangeSet - The rangeSet to set


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.