com.ontimize.gui.field.document
Class AdvancedIntegerDocument
java.lang.Object
javax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
com.ontimize.gui.field.document.IntegerDocument
com.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 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 |
| 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 |
| 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 |
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
AdvancedIntegerDocument
public AdvancedIntegerDocument()
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