public abstract class Search extends PropertyAdministration
Modifier and Type | Field and Description |
---|---|
protected HalfDataComboBox.Variant |
cbVariant |
protected MustTextField |
globalSearchTextField |
protected SearchListDetailGroup |
group |
protected InquiryHistory |
inquiryHistory |
protected RadioButtonPanel |
logic |
protected RadioButtonPanel |
searchCombination |
protected java.util.Vector<SearchElement> |
searchElements |
additionalButtons, additionalComponents, checkRepeatedInput, currentAttributeList, tabButtonGroup
appearanceModifiablePool, appellation, buildDone, confirmationMatter, contextInfo, dependencies, infoMatter, isToRenew, popupBuilders, presentMessageInDialogIfRepeated, remoteContents, remoteContentsExceptionallyToSetValues, sessionData
Constructor and Description |
---|
Search(SessionData sessionData,
SearchListDetailGroup group)
Constructs a new search dialog.
|
Modifier and Type | Method and Description |
---|---|
protected void |
append(RemoteContent remotableToAppend)
Appends a remotable to the same line as previously used.
|
protected void |
append(java.lang.String stringToAppend)
Appends a string to the same line as previously used.
|
protected void |
append(java.lang.String label,
java.lang.String stringToAppend)
Appends a string to a new line with its describing label.
|
protected void |
appendIfFilled(WhereCondition whereCondition,
java.lang.String[] columnNames,
java.lang.String searchString)
Appends a fragment to the where condition.
|
protected void |
appendIfFilled(WhereCondition whereCondition,
java.lang.String[] columnNames,
java.lang.String searchString,
boolean wholeWord)
Appends a fragment to the where condition.
|
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
protected MustButton |
createButton(java.lang.String imageName,
java.lang.String defaultLabel,
java.lang.String toolTipText) |
protected MustCheckBox |
createCheckBox(java.lang.String checkLabel) |
protected MustCheckBox |
createCheckBox(java.lang.String dataLabel,
java.lang.String checkLabel) |
protected CleartextClassification |
createCleartextClassification(java.lang.String label,
SelfChainingDataObject sourceDataObject,
java.lang.String visibleColumnName,
java.lang.String superordinateNiColumn,
int depth) |
protected HalfDataComboBox |
createComboBox(DataObject sourceDataObject,
java.lang.String visibleColumn,
HalfDataComboBox.Variant variant)
Creates a combo box in new line with label as specified.
|
protected HalfDataComboBox |
createComboBox(java.lang.String dataLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn)
Creates a combo box in the same line as previously used.
|
protected HalfDataComboBox |
createComboBox(java.lang.String dataLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn,
HalfDataComboBox.Variant variant)
Creates a combo box in new line with label as specified.
|
protected HalfDataComboBox |
createComboBox(java.lang.String dataLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn)
Creates a combo box in the same line as previously used.
|
protected HalfDataComboBox |
createComboBox(java.lang.String dataLabel,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn,
java.lang.String nameForNoChoice)
Creates a combo box in the same line as previously used.
|
protected MustDateField |
createDateField(java.lang.String label)
Creates a date input field in a new line with its describing label.
|
protected RadioButtonPanel |
createFragmentExactChoice() |
protected MustTextField |
createTextField(java.lang.String label,
int length)
Creates a new text field.
|
protected void |
createTextFieldForGlobalSearch(java.lang.String label,
int length)
Creates a new text field for global search.
|
protected WhereCondition |
createWhereCondition() |
void |
destroy()
Don't wait until garbage collector removed weak reference.
|
protected java.lang.String |
getAdditionalWhereConditionForGlobalSearch()
Returns additional where conditions for global search.
|
AttributeList |
getAttributeList()
Returns the attribute list.
|
java.lang.String |
getElaboratedWhereCondition()
Returns the where condition.
|
protected abstract java.lang.String |
getWhereCondition()
Returns the where condition for the select statement to process the inquiry.
|
protected boolean |
isInputAccepted()
Returns true if user input is accepted.
|
protected void |
newDynamicSearchPanel(java.lang.String tabLabel,
int elementAmount,
SearchItem[] columns) |
void |
process(GeneralizedRequest request)
Allows the invokable to react to the request.
|
protected void |
reset() |
protected void |
setListButtonLabel(java.lang.String listButtonLabel) |
void |
setToolTipText(java.lang.String toolTipText)
Sets the tool tip text of the last added remotable.
|
protected void |
wholeWordSearchAppend(WhereCondition whereCondition,
java.lang.String columnName,
java.lang.String searchString)
Appends a search as a whole word.
|
protected void |
wholeWordSearchAppend(WhereCondition whereCondition,
java.lang.String columnName,
java.lang.String searchString,
boolean startingWithOr)
Appends a search as a whole word.
|
addButton, addButton, addButtonInSequence, addSeparator, addToButtonPanel, addToButtonPanel, append, append, appendButtonForSelection, createButtonInButtonPanel, createTextPresenter, createTextPresenter, creationEnding, fetchValuesFromRequest, hasMultiplePanels, newPanel, newPanel, newPanel, optional, setLayoutTolerance
addDependency, addDependency, associateDefaultButtonToInputField, free, getAppellation, getAppResStr, getConcerning, getContextInfo, getElementID, getInstance, getMessageSetSize, getTabId, getTabLabel, getTranslation, hasVeto, isVisible, register, register, registerRemotable, setAppellation, setElementID, setMessage, setMessageToKeep, setMessageToKeep, setMessageToKeep, setMessageToKeep, setMessageToKeep, setSoundToPlay, setTitle, setToRenewToTrue, setVisible
protected SearchListDetailGroup group
protected HalfDataComboBox.Variant cbVariant
protected MustTextField globalSearchTextField
protected InquiryHistory inquiryHistory
protected RadioButtonPanel searchCombination
protected RadioButtonPanel logic
protected java.util.Vector<SearchElement> searchElements
public Search(SessionData sessionData, SearchListDetailGroup group)
sessionData
- the session's public dataprotected void setListButtonLabel(java.lang.String listButtonLabel)
protected MustTextField createTextField(java.lang.String label, int length)
label
- the line labellength
- the length of the text fieldprotected MustDateField createDateField(java.lang.String label)
label
- the line labelprotected HalfDataComboBox createComboBox(java.lang.String dataLabel, DataObject sourceDataObject, java.lang.String visibleColumn)
dataLabel
- the line label.sourceDataObject
- the source data object that shall fill the content of the combo boxvisibleColumn
- the column to be used to fill the combo box from the source data objectprotected HalfDataComboBox createComboBox(java.lang.String dataLabel, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn)
dataLabel
- the line label.sourceDataObject
- the source data object that shall fill the content of the combo boxvisibleColumn
- the column to be used to fill the combo box from the source data objectorderByColumn
- the column to be ordered byprotected HalfDataComboBox createComboBox(java.lang.String dataLabel, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn, java.lang.String nameForNoChoice)
dataLabel
- the line label.sourceDataObject
- the source data object that shall fill the content of the combo boxvisibleColumn
- the column to be used to fill the combo box from the source data objectorderByColumn
- the column to be ordered bynameForNoChoice
- the expression to be used to indicate "no choice"protected HalfDataComboBox createComboBox(java.lang.String dataLabel, DataObject sourceDataObject, java.lang.String visibleColumn, HalfDataComboBox.Variant variant)
dataLabel
- the line label.sourceDataObject
- the source data object that shall fill the content of the combo boxvisibleColumn
- the column to be used to fill the combo box from the source data objectvariant
- the variant of the combo boxprotected HalfDataComboBox createComboBox(DataObject sourceDataObject, java.lang.String visibleColumn, HalfDataComboBox.Variant variant)
sourceDataObject
- the source data object that shall fill the content of the combo boxvisibleColumn
- the column to be used to fill the combo box from the source data objectvariant
- the variant of the combo boxprotected void createTextFieldForGlobalSearch(java.lang.String label, int length)
label
- the line labellength
- the length of the global search text fieldprotected MustCheckBox createCheckBox(java.lang.String dataLabel, java.lang.String checkLabel)
protected MustCheckBox createCheckBox(java.lang.String checkLabel)
protected CleartextClassification createCleartextClassification(java.lang.String label, SelfChainingDataObject sourceDataObject, java.lang.String visibleColumnName, java.lang.String superordinateNiColumn, int depth)
protected RadioButtonPanel createFragmentExactChoice()
protected MustButton createButton(java.lang.String imageName, java.lang.String defaultLabel, java.lang.String toolTipText)
protected void append(RemoteContent remotableToAppend)
remotableToAppend
- the remotable to appendprotected void append(java.lang.String stringToAppend)
append
in class PropertyAdministration
stringToAppend
- the string to appendprotected void append(java.lang.String label, java.lang.String stringToAppend)
label
- the line labelstringToAppend
- the string to appendpublic void setToolTipText(java.lang.String toolTipText)
setToolTipText
in interface Remotable
setToolTipText
in class PropertyAdministration
toolTipText
- the tool tip text to set.protected void newDynamicSearchPanel(java.lang.String tabLabel, int elementAmount, SearchItem[] columns)
public AttributeList getAttributeList()
getAttributeList
in class PropertyAdministration
public void process(GeneralizedRequest request)
process
in interface RemotableControler
process
in class PropertyAdministration
request
- the request to react topublic void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
buildRemoteView
in class PropertyAdministration
out
- the writer which will be read by the appletprotected boolean isInputAccepted()
protected WhereCondition createWhereCondition()
public java.lang.String getElaboratedWhereCondition()
protected java.lang.String getAdditionalWhereConditionForGlobalSearch()
protected abstract java.lang.String getWhereCondition()
return DbFieldName like '%" + UIfield.getText() + "%'";
protected void appendIfFilled(WhereCondition whereCondition, java.lang.String[] columnNames, java.lang.String searchString)
whereCondition
- the where condition to extendcolumnNames
- the columns to be used to searchsearchString
- the string to searchprotected void appendIfFilled(WhereCondition whereCondition, java.lang.String[] columnNames, java.lang.String searchString, boolean wholeWord)
whereCondition
- the where condition to extendcolumnNames
- the columns to be used to searchsearchString
- the string to searchwholeWord
- whether the expression is to be searched as a whole wordprotected void wholeWordSearchAppend(WhereCondition whereCondition, java.lang.String columnName, java.lang.String searchString)
whereCondition
- the where condition to extendcolumnName
- the name of the column to be searched insearchString
- the expression to be searched as a whole wordprotected void wholeWordSearchAppend(WhereCondition whereCondition, java.lang.String columnName, java.lang.String searchString, boolean startingWithOr)
whereCondition
- the where condition to extendcolumnName
- the name of the column to be searched insearchString
- the expression to be searched as a whole wordprotected void reset()
public void destroy()
Remotable
destroy
in interface Remotable
destroy
in class RemoteUserInterface
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de