public class AdvancedDateDocument extends DateDocument
DateDocument.DateFormatCache, DateDocument.DateFormatCacheKeyAbstractDocument.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 |
currentDate, currentTimestamp, dateFormat, datePattern, DEBUG, defaultLocale, dfConstructor, insertedDate, localelineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameDEBUG_LANGUAGEStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
AdvancedDateDocument() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDocumentFirstSymbol() |
protected int |
getPatternOffset(int offset) |
SearchValue |
getQueryValue() |
void |
insertString(int offset,
String s,
AttributeSet attributes)
Date pattern is known:
- Non numeric characters are allowed. |
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 |
setAdvancedQueryMode(boolean advancedQueryMode) |
void |
setComponentLocale(Locale l) |
void |
setValue(SearchValue value) |
buildPattern, format, getDate, getDatePattern, getFormat, getTextsToTranslate, getTimestampValue, getTimestampValue, insertStringWithoutCheck, isValid, setDatePattern, setResourceBundle, 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, remove, 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 void setValue(SearchValue value)
public boolean isValid()
isValid in class DateDocumentpublic SearchValue getQueryValue()
public void setComponentLocale(Locale l)
setComponentLocale in interface InternationalizationsetComponentLocale in class DateDocumentpublic void insertString(int offset,
String s,
AttributeSet attributes)
throws BadLocationException
DateDocumentinsertString in interface DocumentinsertString in class DateDocumentBadLocationExceptionprotected boolean isOROffset(int offset)
protected int getPatternOffset(int offset)
protected boolean isStartSymbol(String s)
protected boolean isORSymbolAllowed(int offset)
throws BadLocationException
BadLocationExceptionprotected boolean isSymbolFirst()
throws BadLocationException
BadLocationExceptionprotected String getDocumentFirstSymbol() throws BadLocationException
BadLocationExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.