public abstract class DataTableAdministration extends Dialog
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_DELETE |
protected DataObject |
assignedDataObject |
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 |
---|
DataTableAdministration(SessionData sessionData)
Constructs a new data property administration.
|
Modifier and Type | Method and Description |
---|---|
void |
createDataTableModel()
Creates a new data table model.
|
void |
createDataTableModel(int sortIndexNbr)
Creates a new data table model with the specified sort index number.
|
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 abstract DataObject |
getAssignedDataObject()
Returns the assigned data object.
|
protected java.lang.String[] |
getColumnLabels()
Returns the labels of the columns to be laid-out.
|
protected abstract java.lang.String[] |
getColumnNames()
Returns the names of the columns to be laid-out.
|
Identifier |
getIdentifyValue(int row)
Returns the identify value (primary key) of the entry in the row as specified.
|
java.lang.String |
getInnerTableTagSequence()
Returns the kernel default tag sequence.
|
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
|
void |
handleSaveRequest()
Handles save request.
|
void |
init()
Initializes the invokable in order to reuse the component without garbage
from the previous use.
|
boolean |
isCancelAllowed()
Returns true if it is allowed to cancel the dialog.
|
boolean |
isClosingAllowed()
Returns true if it is allowed to close the dialog.
|
protected boolean |
isInputAccepted()
Returns true if user input is accepted.
|
protected abstract boolean |
isInUse(Identifier keyIdentifier)
Returns true if the entry as specified by the identifier is in use.
|
boolean |
isModified()
Returns true if input was modified.
|
boolean |
isSuitableDialog(GeneralizedRequest request)
Indicates whether the request fits to this dialog.
|
void |
loadValues()
Loads values into the grid.
|
void |
markForDeletion(int row)
Marks the entry in row as specified as to be deleted.
|
void |
process(GeneralizedRequest request)
Allows the invokable to react to the request.
|
boolean |
saveValues()
Saves values.
|
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
|
boolean |
wantToBeFinalized()
Returns true if the invokable wants to be finalized after request is worked off.
|
afterOutput, appendAdditionalButton, beforeOutput, destroy, finalize, free, 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_DELETE
protected DataObject assignedDataObject
protected boolean wantToBeFinalized
public DataTableAdministration(SessionData sessionData)
sessionData
- the session's public datapublic void init()
public void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setSubmitter(Invokable submitter)
submitter
- the invokable that submitted this invokablepublic Submission getSubmission()
public boolean wantToBeFinalized()
protected abstract DataObject getAssignedDataObject()
protected abstract java.lang.String[] getColumnNames()
protected java.lang.String[] getColumnLabels()
protected abstract boolean isInUse(Identifier keyIdentifier)
keyIdentifier
- the identifier of the entry to be checkedpublic boolean isCancelAllowed()
public boolean isClosingAllowed()
public void createDataTableModel()
public void createDataTableModel(int sortIndexNbr)
sortIndexNbr
- the index of the index (object de.must.dataobj.Index)
to be used for the order by clause.public void loadValues()
public Identifier getIdentifyValue(int row)
row
- the row of the watched entrypublic java.lang.String getTagSequence()
Layout
public java.lang.String getInnerTableTagSequence()
Layout
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 Dialog
request
- the request from where the values are to be fetchedMarkupable#fetchYourValueFromRequest
public void markForDeletion(int row)
row
- the row of the entry to be deletedpublic void handleSaveRequest()
protected boolean isInputAccepted()
public boolean saveValues()
public boolean isModified()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de