Save This Page
Home » openjdk-7 » net.sf.raptor » ui » components » [javadoc | source]
net.sf.raptor.ui.components
public class: NumericPlainDocument [javadoc | source]
java.lang.Object
   javax.swing.text.AbstractDocument
      javax.swing.text.PlainDocument
         net.sf.raptor.ui.components.NumericPlainDocument

All Implemented Interfaces:
    Document, Serializable

* Raptor - Rapid prototyping of Swing GUIs based on JavaBeans like Java objects * Copyright (C) 2003 XCOM AG * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *
Nested Class Summary:
public interface  NumericPlainDocument.InsertErrorListener  InsertErrorListener 
Field Summary
protected  NumericPlainDocument.InsertErrorListener errorListener     
protected  DecimalFormat format     
protected  char decimalSeparator     
protected  char groupingSeparator     
protected  String positivePrefix     
protected  String negativePrefix     
protected  int positivePrefixLen     
protected  int negativePrefixLen     
protected  String positiveSuffix     
protected  String negativeSuffix     
protected  int positiveSuffixLen     
protected  int negativeSuffixLen     
protected  ParsePosition parsePos     
protected static  DecimalFormat defaultFormat     
Fields inherited from javax.swing.text.PlainDocument:
tabSizeAttribute,  lineLimitAttribute
Fields inherited from javax.swing.text.AbstractDocument:
listenerList,  BAD_LOCATION,  ParagraphElementName,  ContentElementName,  SectionElementName,  BidiElementName,  ElementNameAttribute,  I18NProperty,  MultiByteProperty,  AsyncLoadPriority
Constructor:
 public NumericPlainDocument() 
 public NumericPlainDocument(DecimalFormat format) 
    constructor
 public NumericPlainDocument(AbstractDocument.Content content,
    DecimalFormat format) 
    constructor
    Parameters:
    content -
    format -
Method from net.sf.raptor.ui.components.NumericPlainDocument Summary:
addInsertErrorListener,   getDoubleValue,   getFormat,   getLongValue,   getNumberValue,   insertString,   removeInsertErrorListener,   setFormat
Methods from javax.swing.text.PlainDocument:
createDefaultRoot,   getDefaultRootElement,   getParagraphElement,   insertString,   insertUpdate,   removeUpdate
Methods from javax.swing.text.AbstractDocument:
addDocumentListener,   addUndoableEditListener,   createBranchElement,   createLeafElement,   createPosition,   dump,   fireChangedUpdate,   fireInsertUpdate,   fireRemoveUpdate,   fireUndoableEditUpdate,   getAsynchronousLoadPriority,   getAttributeContext,   getBidiRootElement,   getContent,   getCurrentWriter,   getDefaultRootElement,   getDocumentFilter,   getDocumentListeners,   getDocumentProperties,   getEndPosition,   getLength,   getListeners,   getParagraphElement,   getProperty,   getRootElements,   getStartPosition,   getText,   getText,   getUndoableEditListeners,   handleInsertString,   handleRemove,   insertString,   insertUpdate,   isLeftToRight,   postRemoveUpdate,   putProperty,   readLock,   readUnlock,   remove,   removeDocumentListener,   removeUndoableEditListener,   removeUpdate,   render,   replace,   setAsynchronousLoadPriority,   setDocumentFilter,   setDocumentProperties,   updateBidi,   writeLock,   writeUnlock
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sf.raptor.ui.components.NumericPlainDocument Detail:
 public  void addInsertErrorListener(NumericPlainDocument.InsertErrorListener l) 
    addInsertErrorListener
 public Double getDoubleValue() throws ParseException 
    getDoubleValue
 public DecimalFormat getFormat() 
    getFormat
 public Long getLongValue() throws ParseException 
    getLongValue
 public Number getNumberValue() throws ParseException 
    getNumberValue
 public  void insertString(int offset,
    String str,
    AttributeSet a) throws BadLocationException 
    insertString
 public  void removeInsertErrorListener(NumericPlainDocument.InsertErrorListener l) 
    removeInsertErrorListener
 public  void setFormat(DecimalFormat fmt) 
    setFormat