public abstract class AbstractDataSource extends java.lang.Object implements FieldListener
FIELD_FILLIN, FIELD_MERGEFIELD
Constructor and Description |
---|
AbstractDataSource() |
AbstractDataSource(boolean caseSensitiveKeywords) |
Modifier and Type | Method and Description |
---|---|
void |
fieldEncountered(FieldContext context)
Implementation of FieldListener-Interface.
|
protected void |
handleUnpopulatedField(java.lang.String keyword,
FieldContext ctx) |
abstract boolean |
hasValue(java.lang.String keyword)
Checks whether value (can also be an empty or null value) is assigned
to a keyword.
|
protected abstract boolean |
insertResult(FieldContext ctx,
java.lang.String normalizedKeyword) |
boolean |
isCaseSensitiveKeywords()
Checks if keywords are handled case sensitive.
|
abstract boolean |
isEmptyValue(java.lang.String keyword)
Checks whether an empty value is assigned to a keyword.
|
boolean |
isEnableDateFormatting() |
boolean |
isEnableNumberFormatting() |
boolean |
isHighlightUnpopulatedFields()
Checks whether unpopulated fields are highlighted (displayed in
red color and underlined).
|
protected java.lang.String |
normalizeKey(java.lang.String key)
Normalizes the key of a value.
|
void |
setCaseSensitiveKeywords(boolean caseSensitiveKeywords)
Sets if keywords of fields are handled case sensitve.
|
void |
setEnableDateFormatting(boolean enableDateFormatting) |
void |
setEnableNumberFormatting(boolean enableNumberFormatting) |
void |
setHighlightUnpopulatedFields(boolean highlightUnpopulatedFields)
Sets whether unpopulated fields are highlighted (displayed in
red color and underlined).
|
public AbstractDataSource()
public AbstractDataSource(boolean caseSensitiveKeywords)
public void fieldEncountered(FieldContext context)
fieldEncountered
in interface FieldListener
context
- FieldContext.public void setCaseSensitiveKeywords(boolean caseSensitiveKeywords)
caseSensitiveKeywords
- true
for case sensitive handling.public void setHighlightUnpopulatedFields(boolean highlightUnpopulatedFields)
highlightUnpopulatedFields
- true to enable highlighting.public void setEnableNumberFormatting(boolean enableNumberFormatting)
public void setEnableDateFormatting(boolean enableDateFormatting)
public boolean isCaseSensitiveKeywords()
true
if case sensitive handling.public boolean isHighlightUnpopulatedFields()
public boolean isEnableNumberFormatting()
public boolean isEnableDateFormatting()
public abstract boolean hasValue(java.lang.String keyword)
keyword
- Normalized keyword.true
if there is a registered value for keyword.public abstract boolean isEmptyValue(java.lang.String keyword)
keyword
- Keywordtrue
if value of keyword is empty.protected final java.lang.String normalizeKey(java.lang.String key)
key
- Key of value.protected abstract boolean insertResult(FieldContext ctx, java.lang.String normalizedKeyword)
protected void handleUnpopulatedField(java.lang.String keyword, FieldContext ctx)
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.