public class TextSearchField extends AbstractSearchField
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static String |
MATCH_MODE_LABEL |
protected TextMatchMode |
matchMode |
protected String |
matchModeId |
protected String |
matchModeParam |
protected Integer |
maxLength |
static String |
MODE_SUFFIX |
protected boolean |
showMatchMode |
protected String |
value |
accessor, ATTR_NAME_HTML_CLASS, FORM_CONTROL_CSS_CLASS, id, inputName, label, logger, required
Constructor and Description |
---|
TextSearchField(PropertyAccessor accessor) |
TextSearchField(PropertyAccessor accessor,
String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
configureCriteria(Criteria criteria) |
TextMatchMode |
getMatchMode() |
String |
getMatchModeId() |
String |
getMatchModeParam() |
Integer |
getMaxLength() |
String |
getValue() |
boolean |
isShowMatchMode() |
void |
readFromRequest(HttpServletRequest req) |
void |
setMatchMode(TextMatchMode matchMode) |
void |
setMatchModeId(String matchModeId) |
void |
setMatchModeParam(String matchModeParam) |
void |
setMaxLength(Integer maxLength) |
void |
setShowMatchMode(boolean showMatchMode) |
void |
setValue(String value) |
void |
toSearchString(StringBuilder sb,
String encoding) |
void |
toXhtml(XhtmlBuffer xb) |
boolean |
validate() |
appendToSearchString, getId, getInputName, getLabel, getPropertyAccessor, getText, readFromObject, setId, setInputName, setLabel, writeToObject
public static final String copyright
public static final String MODE_SUFFIX
public static final String MATCH_MODE_LABEL
protected String value
protected TextMatchMode matchMode
protected String matchModeId
protected String matchModeParam
protected boolean showMatchMode
protected Integer maxLength
public TextSearchField(PropertyAccessor accessor)
public TextSearchField(PropertyAccessor accessor, String prefix)
public void toXhtml(@NotNull XhtmlBuffer xb)
public void readFromRequest(HttpServletRequest req)
public boolean validate()
public void toSearchString(StringBuilder sb, String encoding)
public void configureCriteria(Criteria criteria)
public TextMatchMode getMatchMode()
public void setMatchMode(TextMatchMode matchMode)
public boolean isShowMatchMode()
public void setShowMatchMode(boolean showMatchMode)
public String getValue()
public void setValue(String value)
public String getMatchModeId()
public void setMatchModeId(String matchModeId)
public String getMatchModeParam()
public void setMatchModeParam(String matchModeParam)
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)