Adempiere 3.5.2a

org.eevolution.tools.swing
Class AbstractLimiterPlainDocument

java.lang.Object
  extended by javax.swing.text.AbstractDocument
      extended by javax.swing.text.PlainDocument
          extended by 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

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
protected  int charCount
           
protected  CharDefinition charDefinition
           
protected  BigDecimal maxNumber
           
protected  BigDecimal minNumber
           
 
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
AbstractLimiterPlainDocument(CharDefinition def)
           
 
Method Summary
abstract  void action(String value)
           
 int getCharCount()
           
 CharDefinition getCharDefinition()
           
 BigDecimal getMaxNumber()
           
 BigDecimal getMinNumber()
           
 void insertString(int offset, String str, AttributeSet attr)
           
protected  boolean isValidNumber(String str)
           
 void setCharCount(int charCount)
           
 void setMaxNumber(BigDecimal number)
           
 void setMinNumber(BigDecimal number)
           
 
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

charCount

protected int charCount

maxNumber

protected BigDecimal maxNumber

minNumber

protected BigDecimal minNumber

charDefinition

protected CharDefinition charDefinition
Constructor Detail

AbstractLimiterPlainDocument

public AbstractLimiterPlainDocument(CharDefinition def)
Method Detail

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 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.