com.levigo.util.swing.text
Class NColumsRangeSetDocument
java.lang.Object
javax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
com.levigo.util.swing.text.NColumnsTextDocument
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
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 |
NColumsRangeSetDocument
public NColumsRangeSetDocument(int numberOfColumns,
Vector rangeSet)
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.