public class AdvancedIntegerDocument extends IntegerDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
protected boolean |
advancedQueryMode |
static String |
BETWEEN |
static String |
EQUAL |
static String |
LESS |
static String |
LESS_EQUAL |
static String |
MORE |
static String |
MORE_EQUAL |
static String |
NOT |
static String |
OR |
BIGDECIMAL, BIGINTEGER, INTEGER, integerValue, lastNumberTypeUsed, LONG, numberFormat, SHORT, symbolslineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
AdvancedIntegerDocument() |
| Modifier and Type | Method and Description |
|---|---|
void |
format() |
protected String |
getDocumentFirstSymbol() |
SearchValue |
getQueryValue() |
void |
insertString(int offset,
String s,
AttributeSet attributes) |
protected boolean |
isOROffset(int offset) |
protected boolean |
isORSymbolAllowed(int offset) |
boolean |
isRight() |
protected boolean |
isStartSymbol(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() |
getIntegerValue, getNumberTypeUsed, getNumericValue, getValue, insertStringWithoutCheck, removeWithoutCheck, setGroupingUsed, setMaximumIntegerDigits, setMinimumIntegerDigits, setNumberTypeUsed, setValuecreateDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdateaddDocumentListener, 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, writeUnlockpublic static final String OR
public static final String BETWEEN
public static final String NOT
public static final String EQUAL
public static final String LESS
public static final String MORE
public static final String LESS_EQUAL
public static final String MORE_EQUAL
protected boolean advancedQueryMode
public boolean isRight()
isRight in class IntegerDocumentprotected void updateValue()
updateValue in class IntegerDocumentpublic void format()
format in class IntegerDocumentpublic void setAdvancedQueryMode(boolean advancedQueryMode)
public void setQueryValue(SearchValue value)
public SearchValue getQueryValue()
public void remove(int offset,
int length)
throws BadLocationException
remove in interface Documentremove in class IntegerDocumentBadLocationExceptionpublic void insertString(int offset,
String s,
AttributeSet attributes)
throws BadLocationException
insertString in interface DocumentinsertString in class IntegerDocumentBadLocationExceptionprotected boolean isStartSymbol(String s)
protected boolean isORSymbolAllowed(int offset)
throws BadLocationException
BadLocationExceptionprotected boolean isSymbolFirst()
throws BadLocationException
BadLocationExceptionprotected String getDocumentFirstSymbol() throws BadLocationException
BadLocationExceptionprotected boolean isOROffset(int offset)
throws BadLocationException
BadLocationExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.