Ontimize 5.2071EN

com.ontimize.gui.field.document
Class AdvancedIntegerDocument

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

public class AdvancedIntegerDocument
extends IntegerDocument

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.IntegerDocument
BIGDECIMAL, BIGINTEGER, INTEGER, integerValue, lastNumberTypeUsed, LONG, numberFormat, SHORT, symbols
 
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
AdvancedIntegerDocument()
           
 
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)
           
 boolean isRight()
           
protected  boolean isStartSymbol(java.lang.String s)
           
protected  boolean isSymbolFirst()
          Checks if the first character is a condition symbol
 void remove(int offset, int length)
           
 void setAdvancedQueryMode(boolean advancedQueryMode)
           
 void setQueryValue(SearchValue value)
           
protected  void updateValue()
           
 
Methods inherited from class com.ontimize.gui.field.document.IntegerDocument
getIntegerValue, getNumberTypeUsed, getNumericValue, getValue, insertStringWithoutCheck, removeWithoutCheck, setGroupingUsed, setMaximumIntegerDigits, setMinimumIntegerDigits, setNumberTypeUsed, setValue
 
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

AdvancedIntegerDocument

public AdvancedIntegerDocument()
Method Detail

isRight

public boolean isRight()
Overrides:
isRight in class IntegerDocument

updateValue

protected void updateValue()
Overrides:
updateValue in class IntegerDocument

format

public void format()
Overrides:
format in class IntegerDocument

setAdvancedQueryMode

public void setAdvancedQueryMode(boolean advancedQueryMode)

setQueryValue

public void setQueryValue(SearchValue value)

getQueryValue

public SearchValue getQueryValue()

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 IntegerDocument
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 IntegerDocument
Throws:
javax.swing.text.BadLocationException

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

Ontimize