public abstract class DataList extends List
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_BROWSE |
static int |
ACTION_COPY |
static int |
ACTION_DELETE |
static int |
ACTION_EDIT |
static int |
ACTION_NEW |
protected DataObject |
listDataObject |
protected int |
maxListEntries |
bottomText, listCache, listedRowCounter, submitter, title, 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 |
---|
DataList(SessionData sessionData)
Constructs a new data list.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected int |
getAction()
Returns the action to be retrieved by submitted invokable.
|
java.lang.String |
getBrowseHref()
Returns the HREF for browsing the entry.
|
java.lang.String |
getCopyHref()
Returns the HREF for copying the entry.
|
protected abstract java.lang.Class<? extends Invokable> |
getDataAdministrationClass()
Returns the class to proceed property administration for the entity listed here.
|
protected abstract java.lang.Class<? extends Invokable> |
getDataPresentationClass()
Returns the class to proceed property presentation for the entity listed here.
|
java.lang.String |
getDeleteHref()
Returns the HREF for deleting the entry.
|
java.lang.String |
getEditHref()
Returns the HREF for editing the entry.
|
protected java.lang.String |
getElaboratedWhereCondition()
Returns the where condition.
|
int |
getLastProcessedActivityKey()
Returns the ID of the action that was processed in a previous dialog step.
|
int |
getMaxListEntries()
Returns the maximum number of entries to be listed.
|
protected abstract java.lang.String |
getOrderByFields()
Returns the fields to be used for the order by clause, separated by comma
as usual in SQL statements.
|
protected Identifier |
getSelectedIdentifier()
Returns the identifier (primary key) of the selected entry.
|
protected abstract java.lang.String |
getSelectionFields()
Returns the fields to be selected, separated by comma as usual in SQL statements.
|
Submission |
getSubmission()
Informs the next invokable in stack about the submission details.
|
protected java.lang.String |
getWhereCondition()
Returns the where condition for the select statement to process the inquiry.
|
boolean |
hasSqlSyntaxError()
Returns true if there is an SQL syntax error.
|
void |
init()
Initializes the invokable in order to reuse the component without garbage
from the previous use.
|
boolean |
isCopyable()
Returns true if the entry may be copied by the current user.
|
boolean |
isDeletable()
Returns true if the entry may be deleted by the current user.
|
boolean |
isEditable()
Returns true if the entry may be edited by the current user.
|
boolean |
isExtendable()
Returns true if the current user may add entries.
|
boolean |
isListCutted()
Returns true if the list is cut.
|
boolean |
isPresentable()
Returns true if detail presentation is available.
|
boolean |
isRowToListAvailable()
Returns true if a row to list is available.
|
boolean |
isShowhits()
Returns the showhits.
|
boolean |
isSuitableDialog(GeneralizedRequest request)
Indicates whether the request fits to this dialog.
|
void |
process(GeneralizedRequest request)
Allows the invokable to react to the request.
|
protected void |
setListDataObject(DataObject listDataObject)
Sets the data object to be used for listing the inquiry result.
|
void |
setMaxListEntries(int maxListEntries)
Sets the maximum number of entries to be listed.
|
void |
setShowhits(boolean showhits)
Sets the showhits.
|
boolean |
startListFromBeginning()
Induces to start listing form beginning.
|
boolean |
wantToBeFinalized()
Indicates whether the reuse of the invokable is not to be supported.
|
getBottomText, getListCache, getNbrOfRows, getRowString, getTitle, isListEmpty, setBottomText, setListCache, setSubmitter, setTitle
afterOutput, appendAdditionalButton, beforeOutput, destroy, finalize, getAdditionalButtons, getBackButtonTagSequence, getCancelButtonTagSequence, getFooter, getHeader, getHelpContext, getInvokableInAdvance, getOkButtonTagSequence, getScriptToExecute, getScriptToExecuteSequence, getStackMovement, getSubTitle, isCancelable, isPost, setHelpContext, setHelpContext, setMessageToKeep, setMessageToKeepIfNotAlreadySet, setScriptToExecute, setStackMovement, setSubTitle
public static final int ACTION_NEW
public static final int ACTION_BROWSE
public static final int ACTION_EDIT
public static final int ACTION_COPY
public static final int ACTION_DELETE
protected DataObject listDataObject
protected int maxListEntries
public DataList(SessionData sessionData)
sessionData
- the session's data to sharepublic void setMaxListEntries(int maxListEntries)
maxListEntries
- the maximum number of entries to be listedpublic int getMaxListEntries()
public void setShowhits(boolean showhits)
showhits
- The showhits to setpublic boolean isShowhits()
public void init()
protected abstract java.lang.String getSelectionFields()
return DbField1, DbField2, DbField3;
protected java.lang.String getWhereCondition()
Enquiry
for samples
how this may be implemented. In the simplest case it looks like
return DbFieldName like '%" + UIfield.getText() + "%'";
Enquiry.getWhereCondition()
protected abstract java.lang.String getOrderByFields()
protected void setListDataObject(DataObject listDataObject)
listDataObject
- the data object to be used for listingpublic boolean startListFromBeginning()
startListFromBeginning
in class List
public boolean hasSqlSyntaxError()
public boolean isRowToListAvailable()
isRowToListAvailable
in class List
public boolean isListCutted()
public int getLastProcessedActivityKey()
public java.lang.String getBrowseHref()
public java.lang.String getEditHref()
public java.lang.String getCopyHref()
public java.lang.String getDeleteHref()
public boolean isPresentable()
public boolean isExtendable()
public boolean isEditable()
public boolean isCopyable()
public boolean isDeletable()
public boolean isSuitableDialog(GeneralizedRequest request)
isSuitableDialog
in interface Invokable
isSuitableDialog
in class Dialog
request
- the request to checkpublic void process(GeneralizedRequest request)
public void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Invokable
fetchValuesFromRequest
in class List
request
- the request from where the values are to be fetchedMarkupable#fetchYourValueFromRequest
protected java.lang.String getElaboratedWhereCondition()
public Submission getSubmission()
public boolean wantToBeFinalized()
protected abstract java.lang.Class<? extends Invokable> getDataAdministrationClass()
protected abstract java.lang.Class<? extends Invokable> getDataPresentationClass()
protected Identifier getSelectedIdentifier()
protected int getAction()
protected void free()
Dialog
free
in class Dialog
Dialog.destroy()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de