Ontimize 5.2071EN

com.ontimize.gui.field.document
Class AdvancedRealDocument

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.AdvancedRealDocument
All Implemented Interfaces:
javax.swing.text.Document, Internationalization, java.io.Serializable
Direct Known Subclasses:
CurrencyDocument

public class AdvancedRealDocument
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
protected  boolean advancedQueryMode
           
static java.lang.String BETWEEN
           
static java.lang.String EQUAL
           
static java.lang.String LESS
           
static java.lang.String LESS_EQUAL
           
static java.lang.String MORE
           
static java.lang.String MORE_EQUAL
           
static java.lang.String NOT
           
static java.lang.String OR
           
 
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
AdvancedRealDocument()
           
 
Method Summary
 void format()
           
protected  java.lang.String getDocumentFirstSymbol()
           
 SearchValue getQueryValue()
           
 void insertString(int offset, java.lang.String s, javax.swing.text.AttributeSet attributes)
           
protected  boolean isOROffset(int offset)
           
protected  boolean isORSymbolAllowed(int offset)
           
protected  boolean isStartSymbol(java.lang.String s)
           
protected  boolean isSymbolFirst()
          Checks if the first character is a condition symbol
 boolean isValid()
           
 void remove(int offset, int length)
           
 void setAdvancedQueryMode(boolean advancedQueryMode)
           
 
Methods inherited from class com.ontimize.gui.field.document.RealDocument
getDoubleValue, getFormat, getTextsToTranslate, getValue, insertStringWithoutCheck, removeWithoutCheck, setComponentLocale, setFractionDigits, setGrouping, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setResourceBundle, setValue, 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
 

Field Detail

OR

public static final java.lang.String OR
See Also:
Constant Field Values

BETWEEN

public static final java.lang.String BETWEEN
See Also:
Constant Field Values

NOT

public static final java.lang.String NOT
See Also:
Constant Field Values

EQUAL

public static final java.lang.String EQUAL
See Also:
Constant Field Values

LESS

public static final java.lang.String LESS
See Also:
Constant Field Values

MORE

public static final java.lang.String MORE
See Also:
Constant Field Values

LESS_EQUAL

public static final java.lang.String LESS_EQUAL
See Also:
Constant Field Values

MORE_EQUAL

public static final java.lang.String MORE_EQUAL
See Also:
Constant Field Values

advancedQueryMode

protected boolean advancedQueryMode
Constructor Detail

AdvancedRealDocument

public AdvancedRealDocument()
Method Detail

setAdvancedQueryMode

public void setAdvancedQueryMode(boolean advancedQueryMode)

isValid

public boolean isValid()
Overrides:
isValid in class RealDocument

format

public void format()
Overrides:
format in class RealDocument

getQueryValue

public SearchValue getQueryValue()

isStartSymbol

protected boolean isStartSymbol(java.lang.String s)

isORSymbolAllowed

protected boolean isORSymbolAllowed(int offset)
                             throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

isSymbolFirst

protected boolean isSymbolFirst()
                         throws javax.swing.text.BadLocationException
Checks if the first character is a condition symbol

Returns:
true if the first character is a condition symbol
Throws:
javax.swing.text.BadLocationException

getDocumentFirstSymbol

protected java.lang.String getDocumentFirstSymbol()
                                           throws javax.swing.text.BadLocationException
Returns:
The symbol at the beginning of the document if it exists
Throws:
javax.swing.text.BadLocationException

isOROffset

protected boolean isOROffset(int offset)
                      throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

remove

public void remove(int offset,
                   int length)
            throws javax.swing.text.BadLocationException
Specified by:
remove in interface javax.swing.text.Document
Overrides:
remove in class RealDocument
Throws:
javax.swing.text.BadLocationException

insertString

public void insertString(int offset,
                         java.lang.String s,
                         javax.swing.text.AttributeSet attributes)
                  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