Modifier and Type | Field and Description |
---|---|
protected AttributeList |
currentAttributeList |
protected DataObject |
dataObjectForGlobalSearch |
protected MustTextField |
globalSearchTextField |
protected boolean |
wantToBeFinalized |
additionalButtons, backButton, cancelButton, NAME_FOR_BACK_ACTION, NAME_FOR_CANCEL_ACTION, NAME_FOR_CLOSE_ACTION, NAME_FOR_DIALOG_NBR, NAME_FOR_HELP_ACTION, NAME_FOR_LIST_ACTION, NAME_FOR_NEW_ENTRY_ACTION, NAME_FOR_OK_ACTION, okButton, processComplete, sessionData, stackMovement
Constructor and Description |
---|
Enquiry(SessionData sessionData)
Constructs a new inquiry dialog.
|
Modifier and Type | Method and Description |
---|---|
protected void |
append(Markupable markupableToAppend)
Appends a markupable 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.
|
protected HalfDataComboBox |
createComboBox(java.lang.String label,
DataObject sourceDataObject,
java.lang.String visibleColumn)
Creates a combo box in a new line with its describing label.
|
protected HalfDataComboBox |
createComboBox(java.lang.String label,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn)
Creates a combo box in a new line with its describing label.
|
protected HalfDataComboBox |
createComboBox(java.lang.String label,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn,
java.lang.String nameForNoChoice)
Creates a combo box in a new line with its describing label.
|
protected MustDateField |
createDateField(java.lang.String label,
java.lang.String name)
Creates a date input field in a new line with its describing label.
|
protected MustIntField |
createIntField(java.lang.String label)
Creates a int input field in the same line as previously used.
|
protected MustTextArea |
createTextArea(java.lang.String label)
Creates a text area in a new line with its describing label.
|
protected MustTextField |
createTextField(int length)
Creates a text input field in the same line as previously used.
|
protected MustTextField |
createTextField(java.lang.String label,
int length)
Creates a text input field in a new line with its describing label.
|
protected void |
createTextFieldForGlobalSearch(java.lang.String label,
int length,
DataObject dataObjectForGlobalSearch)
Creates a new text field for global search.
|
protected MustTimeField |
createTimeField(java.lang.String label,
java.lang.String name)
Creates a time input field in a new line with its describing label.
|
void |
fetchValuesFromRequest(GeneralizedRequest request)
Causes the invokable to delegate this function to all embedded markupables
to fetch their current value as edited by the user from the request.
|
protected void |
free()
Frees (releases) references caused by this frame, particularly static
register entries.
|
AttributeList |
getAttributeList()
Returns the attribute list.
|
abstract java.lang.Class<? extends Invokable> |
getDataListClass()
Returns the class for listing data.
|
int |
getStackMovement()
Returns the wished stack movement.
|
Submission |
getSubmission()
Informs the next invokable in stack about the submission details.
|
java.lang.String |
getTagSequence()
Returns the default tag sequence (as HTML).
|
java.lang.String |
getTitle()
Returns the title of the property administration
|
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.
|
void |
process(GeneralizedRequest request)
Allows the invokable to react to the request.
|
void |
setSubmitter(Invokable submitter)
Informs this invokable, from which previous invokable it is submitted.
|
void |
setTitle(java.lang.String title)
Sets the title of the property administration
|
void |
setToolTipText(java.lang.String toolTipText)
Sets the tool tip text of the last added markupable.
|
boolean |
wantToBeFinalized()
Indicates whether the reuse of the invokable is not to be supported.
|
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.
|
afterOutput, appendAdditionalButton, beforeOutput, destroy, finalize, getAdditionalButtons, getBackButtonTagSequence, getCancelButtonTagSequence, getFooter, getHeader, getHelpContext, getInvokableInAdvance, getOkButtonTagSequence, getScriptToExecute, getScriptToExecuteSequence, getSubTitle, init, isCancelable, isPost, isSuitableDialog, setHelpContext, setHelpContext, setMessageToKeep, setMessageToKeepIfNotAlreadySet, setScriptToExecute, setStackMovement, setSubTitle
protected AttributeList currentAttributeList
protected boolean wantToBeFinalized
protected MustTextField globalSearchTextField
protected DataObject dataObjectForGlobalSearch
public Enquiry(SessionData sessionData)
sessionData
- the session's public datapublic void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setSubmitter(Invokable submitter)
submitter
- the invokable that submitted this invokableprotected MustTextField createTextField(int length)
length
- the length of the input fields to be created.protected MustTextField createTextField(java.lang.String label, int length)
label
- the line labellength
- the length of the input fields to be created.protected MustTextArea createTextArea(java.lang.String label)
label
- the line labelprotected MustIntField createIntField(java.lang.String label)
label
- the line labellength
- the length of the fieldprotected MustDateField createDateField(java.lang.String label, java.lang.String name)
label
- the line labelname
- the name of the fieldprotected MustTimeField createTimeField(java.lang.String label, java.lang.String name)
label
- the line labelname
- the name of the fieldprotected HalfDataComboBox createComboBox(java.lang.String label, DataObject sourceDataObject, java.lang.String visibleColumn)
label
- 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 label, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn)
label
- 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 objectorderByColumnName
- the column name to determine for the list orderprotected HalfDataComboBox createComboBox(java.lang.String label, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn, java.lang.String nameForNoChoice)
label
- 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 objectorderByColumnName
- the column name to determine for the list ordernameForNoChoice
- the expression that indicates "no choice"protected void createTextFieldForGlobalSearch(java.lang.String label, int length, DataObject dataObjectForGlobalSearch)
label
- the line labellength
- the length of the global search text fieldprotected void append(Markupable markupableToAppend)
markupableToAppend
- the markupable to appendprotected void append(java.lang.String stringToAppend)
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)
toolTipText
- the tool tip text to set.public AttributeList getAttributeList()
public java.lang.String getTagSequence()
Layout
public void process(GeneralizedRequest request)
protected boolean isInputAccepted()
public abstract java.lang.Class<? extends Invokable> getDataListClass()
public void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Invokable
fetchValuesFromRequest
in class Dialog
request
- the request from where the values are to be fetchedMarkupable#fetchYourValueFromRequest
public Submission getSubmission()
public int getStackMovement()
getStackMovement
in interface Invokable
getStackMovement
in class Dialog
public boolean wantToBeFinalized()
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 free()
Dialog
free
in class Dialog
Dialog.free()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de