Ontimize 5.2072EN

com.ontimize.gui.field.document
Class PercentDocument

java.lang.Object
  extended byjavax.swing.text.AbstractDocument
      extended byjavax.swing.text.PlainDocument
          extended bycom.ontimize.gui.field.document.RealDocument
              extended bycom.ontimize.gui.field.document.PercentDocument
All Implemented Interfaces:
javax.swing.text.Document, Internationalization, java.io.Serializable

public class PercentDocument
extends RealDocument

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.text.AbstractDocument
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement
 
Field Summary
 
Fields inherited from class com.ontimize.gui.field.document.RealDocument
floatValue, formatter, symbology
 
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 com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Constructor Summary
PercentDocument()
           
 
Method Summary
 void format()
           
 java.lang.Number getValue()
           
 void insertString(int offset, java.lang.String s, javax.swing.text.AttributeSet at)
           
 void setValue(java.lang.Number value)
           
 
Methods inherited from class com.ontimize.gui.field.document.RealDocument
getDoubleValue, getFormat, getTextsToTranslate, insertStringWithoutCheck, isValid, remove, removeWithoutCheck, setComponentLocale, setFractionDigits, setGrouping, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setResourceBundle, updateValue
 
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, 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

PercentDocument

public PercentDocument()
Method Detail

getValue

public java.lang.Number getValue()
Overrides:
getValue in class RealDocument

format

public void format()
Overrides:
format in class RealDocument

setValue

public void setValue(java.lang.Number value)
Overrides:
setValue in class RealDocument

insertString

public void insertString(int offset,
                         java.lang.String s,
                         javax.swing.text.AttributeSet at)
                  throws javax.swing.text.BadLocationException
Specified by:
insertString in interface javax.swing.text.Document
Overrides:
insertString in class RealDocument
Throws:
javax.swing.text.BadLocationException

Ontimize