public class SearchElement extends RemoteElement
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
SearchElement(SessionData sessionData,
SearchItem[] searchItems,
MessageReceiver messageReceiver,
DataObject dataObject,
int defaultColumnIndex)
Constructs a new search element.
|
Modifier and Type | Method and Description |
---|---|
void |
addTo(AttributeList attributeList)
Adds all components of this search element to the specified attribute list.
|
void |
destroy()
Don't wait until garbage collector removed weak reference.
|
void |
extend(WhereCondition whereCondition)
Builds the part of the where condition represented by user input and adds it to the specified where condition.
|
static void |
extend(WhereCondition whereCondition,
java.util.Vector<SearchElement> searchElements,
boolean combineOr)
Extends a where condition with multiple where conditions of several search items.
|
void |
fetchValuesFromRequest(GeneralizedRequest request) |
MustTextField |
getValueField()
Returns the text field containing the search value.
|
boolean |
isInputAccepted()
Returns true if user input is accepted.
|
boolean |
isOr()
Returns true if the selected combination request is 'or'.
|
void |
register(InquiryHistory inquiryHistory)
Registers all GUI elements to the specified inquiry history.
|
void |
reset()
Resets all GUI elements to the first state
|
void |
setSelectedIndex(int index)
Selects the item at index
index . |
void |
setValues(ToAppletWriter out) |
beginAction, buildRemoteView, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, requestFocusInWindow, resetLastStatus, selectAll, setEditable, setEnabled, setToolTipText, setVisible
public SearchElement(SessionData sessionData, SearchItem[] searchItems, MessageReceiver messageReceiver, DataObject dataObject, int defaultColumnIndex)
searchItems
- the search items to be offered in this search elementmessageReceiver
- the receiver of messages produced by this elementdataObject
- the data object to format date conditiondefaultColumnIndex
- the default column indexpublic static void extend(WhereCondition whereCondition, java.util.Vector<SearchElement> searchElements, boolean combineOr)
whereCondition
- the where condition to extendsearchElements
- the search elements which shall extend the conditioncombineOr
- whether or not or conditions should be treated in advancepublic void addTo(AttributeList attributeList)
attributeList
- the attribute list to add the components topublic void register(InquiryHistory inquiryHistory)
inquiryHistory
- the inquiry history managerpublic MustTextField getValueField()
public void setSelectedIndex(int index)
index
.anIndex
- an integer specifying the list item to select,
where 0 specifies the first item in the list and -1 indicates no selectionpublic void reset()
public boolean isOr()
public boolean isInputAccepted()
public void extend(WhereCondition whereCondition)
whereCondition
- the where condition which should be extended by current users choicepublic void fetchValuesFromRequest(GeneralizedRequest request)
public void setValues(ToAppletWriter out)
setValues
in interface RemoteContent
setValues
in class RemoteElement
public void destroy()
Remotable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de