public class AdvancedRealDocument extends RealDocument
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 |
floatValue, formatter, symbologylineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameDEBUG_LANGUAGEStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
AdvancedRealDocument() |
| 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) |
protected boolean |
isStartSymbol(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) |
getDoubleValue, getFormat, getTextsToTranslate, getValue, insertStringWithoutCheck, removeWithoutCheck, setComponentLocale, setFractionDigits, setGrouping, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setResourceBundle, setValue, updateValuecreateDefaultRoot, 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 void setAdvancedQueryMode(boolean advancedQueryMode)
public boolean isValid()
isValid in class RealDocumentpublic void format()
format in class RealDocumentpublic SearchValue getQueryValue()
protected 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
BadLocationExceptionpublic void remove(int offset,
int length)
throws BadLocationException
remove in interface Documentremove in class RealDocumentBadLocationExceptionpublic void insertString(int offset,
String s,
AttributeSet attributes)
throws BadLocationException
insertString in interface DocumentinsertString in class RealDocumentBadLocationExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.