public class SearchWidgetDefinition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
POSTTREATMENT_EASYTEXTSEARCH
performs a post treatment for easy text search
|
static int |
POSTTREATMENT_NONE
performs a post treatment with no effect
|
Constructor and Description |
---|
SearchWidgetDefinition(boolean primary)
creates a search widget definition
|
SearchWidgetDefinition(boolean primary,
java.lang.String fieldname,
java.lang.String displayname)
Create a search widget definition for plain text field
|
SearchWidgetDefinition(boolean primary,
java.lang.String fieldname,
java.lang.String displayname,
ChoiceCategory multiplechoicecategory)
creates a search widget definition using a choice category.
|
SearchWidgetDefinition(boolean primary,
java.lang.String fieldname,
java.lang.String displayname,
ChoiceCategory multiplechoicecategory,
boolean searchasstring) |
SearchWidgetDefinition(boolean primary,
java.lang.String fieldname,
java.lang.String displayname,
int posttreatment)
create a search widget definition with potential post-treatment
|
SearchWidgetDefinition(boolean primary,
java.lang.String fieldname,
java.lang.String displayname,
TimePeriod.PeriodType periodtype)
creates a search widget definition for a time period
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayname() |
Element |
getElement() |
java.lang.String |
getFieldname() |
ChoiceCategory |
getMultipleChoiceCategory() |
TimePeriod.PeriodType |
getPeriodType() |
int |
getPosttreatment() |
boolean |
isChoiceSearchInString() |
boolean |
isPrimary() |
void |
setReferenceElement(Element element) |
public static int POSTTREATMENT_NONE
public static int POSTTREATMENT_EASYTEXTSEARCH
public SearchWidgetDefinition(boolean primary, java.lang.String fieldname, java.lang.String displayname)
primary
- true if the element should be shown as primary, false if
the field should be shown in the collapsible part of the
search screenfieldname
- name of the field (should be unique for the object)displayname
- the display name if the name of the element should be
overridden, null elsepublic SearchWidgetDefinition(boolean primary, java.lang.String fieldname, java.lang.String displayname, int posttreatment)
primary
- true if the element should be shown as primary, false if
the field should be shown in the collapsible part of the
search screenfieldname
- name of the field (should be unique for the object)displayname
- the display name if the name of the element should be
overridden, null elseposttreatment
- post treatment as defined in a static int in this classpublic SearchWidgetDefinition(boolean primary, java.lang.String fieldname, java.lang.String displayname, ChoiceCategory multiplechoicecategory)
primary
- true if the element should be shown as primary,
false if the field should be shown in the
collapsible part of the search screenfieldname
- name of the field (should be unique for the
object)displayname
- the display name if the name of the element
should be overridden, null elsemultiplechoicecategory
- choice categorypublic SearchWidgetDefinition(boolean primary, java.lang.String fieldname, java.lang.String displayname, TimePeriod.PeriodType periodtype)
primary
- true if the element should be shown as primary, false if
the field should be shown in the collapsible part of the
search screenfieldname
- name of the field (should be unique for the object)displayname
- the display name if the name of the element should be
overridden, null elseperiodtype
- type of time periodpublic SearchWidgetDefinition(boolean primary, java.lang.String fieldname, java.lang.String displayname, ChoiceCategory multiplechoicecategory, boolean searchasstring)
primary
- true if the element should be shown as primary,
false if the field should be shown in the
collapsible part of the search screenfieldname
- name of the field (should be unique for the
object)displayname
- the display name if the name of the element
should be overridden, null elsemultiplechoicecategory
- choice categorysearchasstring
- if the search is using a choicepublic SearchWidgetDefinition(boolean primary)
primary
- true if the element should be shown as primary, false if the
field should be shown in the collapsible part of the search
screenpublic boolean isChoiceSearchInString()
public TimePeriod.PeriodType getPeriodType()
public ChoiceCategory getMultipleChoiceCategory()
public void setReferenceElement(Element element)
element
- sets the element that is used for the search widget (data
element - mostly stored element)public boolean isPrimary()
public java.lang.String getFieldname()
public java.lang.String getDisplayname()
public int getPosttreatment()
public Element getElement()