public abstract class DataPropertyPresentation extends PropertyPresentation
Modifier and Type | Field and Description |
---|---|
protected DataObject |
mainDataObject |
static int |
MODE_DELETE |
static int |
MODE_SHOW |
static int |
NEW_LINE |
static int |
STAY_IN_LINE |
currentAttributeList, dialogNbr, 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 |
---|
DataPropertyPresentation(DataObject mainDataObject,
SessionData sessionData)
Constructs a new data property presentation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
append(java.lang.String StringToAppend)
Appends a string to the same line as previously used.
|
protected DataBoolPresenter |
createBoolPresenter(java.lang.String checkText,
java.lang.String assignedColumnName)
Creates a database connected boolean presentation field in the same line as
previously used.
|
protected DataBoolPresenter |
createBoolPresenter(java.lang.String label,
java.lang.String checkText,
java.lang.String assignedColumnName)
Creates a database connected boolean presentation field in a new line with
its describing label.
|
protected DataDatePresenter |
createDatePresenter(java.lang.String name)
Creates a database connected date presentation field in a the same line as
previously used.
|
protected DataDatePresenter |
createDatePresenter(java.lang.String label,
java.lang.String name)
Creates a database connected date presentation field in a new line with
its describing label.
|
protected DataDecimalPresenter |
createDecimalPresenter(java.lang.String name)
Creates a database connected decimal presentation field in the same line as
previously used.
|
protected DataDecimalPresenter |
createDecimalPresenter(java.lang.String label,
java.lang.String name)
Creates a database connected decimal presentation field in the same line as
previously used.
|
protected DataImageViewer |
createImagePresenter(java.lang.String loadDirectory)
Creates a database connected image presentation field.
|
protected DataImageViewer |
createImagePresenter(java.lang.String label,
java.lang.String loadDirectory)
Creates a database connected image presentation field in a new line with
its describing label.
|
protected DataIntPresenter |
createIntPresenter(java.lang.String name)
Creates a database connected integer presentation field in the same line as
previously used.
|
protected DataIntPresenter |
createIntPresenter(java.lang.String label,
java.lang.String name)
Creates a database connected integer presentation field in the same line as
previously used.
|
protected DataLinkPresenter |
createLinkPresenter(java.lang.String name)
Creates a database connected link presentation field in the same line as
previously used.
|
protected DataLinkPresenter |
createLinkPresenter(java.lang.String label,
java.lang.String name)
Creates a database connected link presentation field in a new line with
its describing label.
|
protected DataReferencePresenter |
createReferencePresenter(java.lang.String label,
java.lang.String assignedColumnName,
DataObject referenceDataObject,
java.lang.String presentableColumnName)
Creates a database connected reference presentation field in a new line with
its describing label.
|
protected DataReferencePresenter |
createReferencePresenter(java.lang.String label,
java.lang.String assignedColumnName,
java.lang.String[][] content)
Creates a database connected reference presentation field in a new line with
its describing label.
|
protected DataTextPresenter |
createTextPresenter(java.lang.String name)
Creates a database connected text presentation field in the same line as
previously used.
|
protected DataTextPresenter |
createTextPresenter(java.lang.String label,
java.lang.String name)
Creates a database connected text presentation field in a new line with
its describing label.
|
java.lang.String |
getEntryDescription()
Returns the description of the presented entry.
|
HelpContext |
getHelpContext()
Returns the component's help context.
|
int |
getMode()
Returns the mode which may be
or
|
Submission |
getSubmission()
Returns the submission details for the next invokable in stack.
|
java.lang.String |
getTagSequence()
Returns the default tag sequence to represent the component in markup languages.
|
java.lang.String |
getTitle()
Returns the title of the property presentation
|
void |
init()
Initializes the invokable in order to reuse the component without garbage
from the previous use.
|
boolean |
isCancelToOffer()
Returns true if the button cancel should be offered.
|
protected void |
loadValues()
Loads an entity specified by a primary key integer value.
|
protected void |
newPanel(int lineCapacity)
Dummy method - not supported yet.
|
protected void |
newPanel(java.lang.String tabLabel,
int lineCapacity)
Dummy method - not supported yet.
|
void |
process(GeneralizedRequest request)
Allows the invokable to react to the request.
|
void |
setDeleteHelpContext(java.lang.String helpTopic,
java.lang.String helpTarget)
Sets the component's special context help for delete confirmation use.
|
protected void |
setFrameDisplayTitleField(DataTextField newFrameDisplayTitleField)
Sets the title of the "frame" for display usage.
|
protected void |
setFrameDisplayTitleField(DataTextField[] newFrameDisplayTitleFields)
Sets the title of the "frame" for display usage.
|
void |
setSubmitter(Invokable submitter)
Sets the submitter of this dialog step.
|
protected void |
setTabSize(int tabSize)
Dummy method - not supported yet.
|
void |
setTitle(java.lang.String title)
Sets the title of the property presentation.
|
protected void |
setToolTipText(java.lang.String toolTipText)
Sets the tool tip text of the last used presentable.
|
boolean |
wantToBeFinalized()
Returns true if the invokable wants to be finalized after request is worked off.
|
fetchValuesFromRequest, getAttributeList
afterOutput, appendAdditionalButton, beforeOutput, destroy, finalize, free, getAdditionalButtons, getBackButtonTagSequence, getCancelButtonTagSequence, getFooter, getHeader, getInvokableInAdvance, getOkButtonTagSequence, getScriptToExecute, getScriptToExecuteSequence, getStackMovement, getSubTitle, isCancelable, isPost, isSuitableDialog, setHelpContext, setHelpContext, setMessageToKeep, setMessageToKeepIfNotAlreadySet, setScriptToExecute, setStackMovement, setSubTitle
public static final int NEW_LINE
public static final int STAY_IN_LINE
public static final int MODE_SHOW
public static final int MODE_DELETE
protected DataObject mainDataObject
public DataPropertyPresentation(DataObject mainDataObject, SessionData sessionData)
mainDataObject
- the data object that is to be used mainlysessionData
- the session's public datapublic void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setDeleteHelpContext(java.lang.String helpTopic, java.lang.String helpTarget)
helpTopic
- the delete confirmation context help's topichelpTarget
- the delete confirmation context help's targetpublic HelpContext getHelpContext()
getHelpContext
in class Dialog
public void setSubmitter(Invokable submitter)
submitter
- the calling submitterprotected void setTabSize(int tabSize)
tabSize
- the tab size - not supported yetprotected void newPanel(int lineCapacity)
lineCapacity
- the line capacity - not supported yetprotected void newPanel(java.lang.String tabLabel, int lineCapacity)
tabLabel
- the tab label - not supported yetlineCapacity
- the line capacity - not supported yetprotected DataTextPresenter createTextPresenter(java.lang.String label, java.lang.String name)
label
- the description of the attribute line.name
- the name of the field which has to be the column name of the database table.protected DataTextPresenter createTextPresenter(java.lang.String name)
name
- the name of the field which has to be the column name of the database table.protected DataLinkPresenter createLinkPresenter(java.lang.String label, java.lang.String name)
label
- the description of the attribute line.name
- the name of the field which has to be the column name of the database table.protected DataLinkPresenter createLinkPresenter(java.lang.String name)
name
- the name of the field which has to be the column name of the database table.protected DataIntPresenter createIntPresenter(java.lang.String label, java.lang.String name)
label
- the description of the attribute line.name
- the name of the field which has to be the column name of the database table.protected DataIntPresenter createIntPresenter(java.lang.String name)
name
- the name of the field which has to be the column name of the database table.protected DataDecimalPresenter createDecimalPresenter(java.lang.String label, java.lang.String name)
label
- the description of the attribute line.name
- the name of the field which has to be the column name of the database table.protected DataDecimalPresenter createDecimalPresenter(java.lang.String name)
name
- the name of the field which has to be the column name of the database table.protected DataDatePresenter createDatePresenter(java.lang.String label, java.lang.String name)
label
- the description of the attribute line.name
- the name of the field which has to be the column name of the database table.protected DataDatePresenter createDatePresenter(java.lang.String name)
name
- the name of the field which has to be the column name of the database table.protected DataReferencePresenter createReferencePresenter(java.lang.String label, java.lang.String assignedColumnName, DataObject referenceDataObject, java.lang.String presentableColumnName)
label
- the description of the attribute line.assignedColumnName
- the name of the column to assign the referencereferenceDataObject
- the reference (key) data objectpresentableColumnName
- the name of the column to be presentedprotected DataReferencePresenter createReferencePresenter(java.lang.String label, java.lang.String assignedColumnName, java.lang.String[][] content)
label
- the description of the attribute line.assignedColumnName
- the name of the column to assign the referencecontent
- the static content of assign the referenceprotected DataBoolPresenter createBoolPresenter(java.lang.String label, java.lang.String checkText, java.lang.String assignedColumnName)
label
- the description of the attribute line.checkText
- the text to be presented if the value of the boolean
presenter is trueassignedColumnName
- the name of the field which has to be the column name of the database tableprotected DataBoolPresenter createBoolPresenter(java.lang.String checkText, java.lang.String assignedColumnName)
checkText
- the text to be presented if the value of the boolean
presenter is trueassignedColumnName
- the name of the field which has to be the column name of the database tableprotected DataImageViewer createImagePresenter(java.lang.String label, java.lang.String loadDirectory)
label
- the description of the attribute line.loadDirectory
- the directory from where the images are to be loaded.protected DataImageViewer createImagePresenter(java.lang.String loadDirectory)
loadDirectory
- the directory from where the images are to be loaded.protected void append(java.lang.String StringToAppend)
stringToAppend
- the string to addprotected void setToolTipText(java.lang.String toolTipText)
toolTipText
- the presentable's tool tip textprotected void setFrameDisplayTitleField(DataTextField newFrameDisplayTitleField)
newFrameDisplayTitleField
- the field to determine the for Display titleprotected void setFrameDisplayTitleField(DataTextField[] newFrameDisplayTitleFields)
newFrameDisplayTitleFields
- the fields to determine the for display titlepublic void init()
public java.lang.String getTagSequence()
public java.lang.String getEntryDescription()
public boolean isCancelToOffer()
public int getMode()
MODE_SHOW
or
MODE_DELETE
public void process(GeneralizedRequest request)
protected void loadValues()
identifyValue
- the primary key integer value.public Submission getSubmission()
public boolean wantToBeFinalized()
wantToBeFinalized
in interface Invokable
wantToBeFinalized
in class PropertyPresentation
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de