org.eevolution.tools.swing
Class AbstractLimiterPlainDocument
java.lang.Object
javax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
org.eevolution.tools.swing.AbstractLimiterPlainDocument
- All Implemented Interfaces:
- Serializable, Document
public abstract class AbstractLimiterPlainDocument
- extends PlainDocument
- Version:
- 1.0, October 14th 2005
- Author:
- Gunther Hoppe, tranSIT GmbH Ilmenau/Germany
- 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 |
charCount
protected int charCount
maxNumber
protected BigDecimal maxNumber
minNumber
protected BigDecimal minNumber
charDefinition
protected CharDefinition charDefinition
AbstractLimiterPlainDocument
public AbstractLimiterPlainDocument(CharDefinition def)
action
public abstract void action(String value)
getCharCount
public int getCharCount()
setCharCount
public void setCharCount(int charCount)
getMaxNumber
public BigDecimal getMaxNumber()
getMinNumber
public BigDecimal getMinNumber()
setMaxNumber
public void setMaxNumber(BigDecimal number)
setMinNumber
public void setMinNumber(BigDecimal number)
getCharDefinition
public CharDefinition getCharDefinition()
insertString
public void insertString(int offset,
String str,
AttributeSet attr)
throws BadLocationException
- Specified by:
insertString in interface Document- Overrides:
insertString in class PlainDocument
- Throws:
BadLocationException
isValidNumber
protected boolean isValidNumber(String str)
Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.