public abstract class DataPropertyAdministration extends PropertyAdministration
Modifier and Type | Field and Description |
---|---|
static int |
MODE_COPY |
static int |
MODE_NEW |
static int |
MODE_PROPERTY |
static int |
MODE_VIRGIN |
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 |
---|
DataPropertyAdministration(DataObject mainDataObject,
SessionData sessionData)
Constructs a new data property administration.
|
DataPropertyAdministration(SessionData sessionData)
Constructs a new data property administration.
|
Modifier and Type | Method and Description |
---|---|
protected void |
append(java.lang.String stringToAppend)
Appends a string to the same line as previously used.
|
protected DataCheckBox |
createCheckBox(java.lang.String checkLabel,
java.lang.String columnName)
Creates a database connected check box in the same line as previously used.
|
protected DataCheckBox |
createCheckBox(java.lang.String lineLabel,
java.lang.String checkLabel,
java.lang.String columnName)
Creates a database connected check box in a new line with its describing label.
|
protected DataCheckBox |
createCheckBox(java.lang.String lineLabel,
java.lang.String checkLabel,
java.lang.String columnName,
java.lang.String trueString,
java.lang.String falseString) |
protected DataVariableChoice |
createChoice(java.lang.String label,
java.lang.String[][] content,
java.lang.String columnName)
Creates a database connected filled combo box with static choice in a new line with its describing label.
|
protected DataComboBox |
createComboBox(java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String visibleColumn)
Creates a database connected and dynamically data filled combo box in the same line as previously used.
|
protected DataComboBox |
createComboBox(java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumnName,
java.lang.String nameForNoChoice)
Creates a database connected and dynamically data filled combo box in the same line as previously used.
|
protected DataComboBox |
createComboBox(java.lang.String label,
java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String visibleColumn)
Creates a database connected and dynamically data filled combo box in a new line with its describing label.
|
protected DataComboBox |
createComboBox(java.lang.String label,
java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumnName,
java.lang.String nameForNoChoice)
Creates a database connected and dynamically data filled combo box in a new line with its describing label.
|
protected DataDateField |
createDateField(java.lang.String columnName)
Creates a database connected date field in the same line as previously used.
|
protected DataDateField |
createDateField(java.lang.String label,
java.lang.String columnName)
Creates a database connected date field in a new line with its describing label.
|
protected DataDecimalField |
createDecimalField(java.lang.String columnName)
Creates a database connected decimal field in the same line as previously used.
|
protected DataDecimalField |
createDecimalField(java.lang.String label,
java.lang.String columnName)
Creates a database connected decimal field in a new line with the specified label.
|
DataFileUploader |
createFileUploader(java.lang.String lineLabel,
java.lang.String saveDirectory)
Creates a database connected file uploader.
|
protected DataIntField |
createIntField(java.lang.String columnName)
Creates a database connected int field in the same line as previously used.
|
protected DataIntField |
createIntField(java.lang.String label,
java.lang.String columnName)
Creates a database connected int field in a new line with its describing label.
|
protected DataPasswordField |
createPasswordField(java.lang.String columnName)
Creates a database connected password input field in the same line as previously used.
|
protected DataPasswordField |
createPasswordField(java.lang.String label,
java.lang.String columnName)
Creates a database connected password input field in a new line with its describing label.
|
protected DataTextArea |
createTextArea(java.lang.String label,
java.lang.String columnName)
Creates a database connected text area in a new line with its describing label.
|
protected DataTextCheck |
createTextCheck(java.lang.String lineLabel,
java.lang.String columnName,
int[] keys,
java.lang.String[] meaning)
Creates a database connected radio button group in a new line.
|
protected DataTextCheck |
createTextCheck(java.lang.String lineLabel,
java.lang.String columnName,
java.lang.String[] keys,
java.lang.String[] meaning)
Creates a database connected radio button group in a new line.
|
protected DataTextField |
createTextField(java.lang.String columnName)
Creates a database connected text input field in the same line as previously used.
|
protected DataTextField |
createTextField(java.lang.String label,
java.lang.String columnName)
Creates a database connected text input field in a new line with its describing label.
|
protected DataTimeField |
createTimeField(java.lang.String columnName)
Creates a database connected time field in the same line as previously used.
|
protected DataTimeField |
createTimeField(java.lang.String label,
java.lang.String columnName)
Creates a database connected time field in a new line with its describing label.
|
protected void |
free()
Frees (releases) references caused by this frame, particularly static
register entries.
|
protected int |
getAdministrationMode()
Returns the administration mode.
|
java.lang.String |
getEntryDescription()
Returns the description of the administered entry.
|
protected Identifier |
getLastAdministrationIdentifier() |
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 administration
|
void |
handleSaveRequest()
Stores the administered entity if accepted and necessary.
|
boolean |
hasUploadFunctionality()
Returns the uploadFunctionality.
|
void |
init()
Initializes the invokable in order to reuse the component without garbage
from the previous use.
|
boolean |
isCancelable()
Indicates whether the invokable accepts to be canceled.
|
protected boolean |
isInputAccepted()
Returns true if user input is accepted.
|
protected boolean |
isModified()
Returns true if input was modified.
|
void |
loadValues(Identifier identifier)
Loads an entity specified by an identifier (primary key).
|
void |
loadValues(int identifyValue)
Loads an entity specified by a primary key integer value.
|
void |
newInput()
Prepares for inserting data.
|
void |
process(GeneralizedRequest request)
Allows the invokable to react to the request.
|
protected void |
saveValues()
Saves the components' values.
|
protected void |
setFrameTitleNew(java.lang.String frameTitleNew)
Sets the title of the "frame" for insert usage.
|
protected void |
setFrameUpdateTitleField(DataTextField newFrameUpdateTitleField)
Sets the title of the "frame" for update usage.
|
protected void |
setFrameUpdateTitleField(DataTextField[] newFrameUpdateTitleFields)
Sets the title of the "frame" for update usage.
|
void |
setMainDataObject(DataObject dataObject)
Sets the main data object and calls new row to get column length via meta data.
|
protected void |
setRequired(boolean required)
Sets the previously added component to be mandatory.
|
void |
setSubmitter(Invokable submitter)
Sets the submitter of this dialog step.
|
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.
|
creationEnding, fetchValuesFromRequest, getAttributeList, getTabbedPaneTagSequence, hasMultiplePanels, newPanel, newPanel, newPanel, newPanel, setTabSize, setToolTipText
afterOutput, appendAdditionalButton, beforeOutput, destroy, finalize, getAdditionalButtons, getBackButtonTagSequence, getCancelButtonTagSequence, getFooter, getHeader, getHelpContext, getInvokableInAdvance, getOkButtonTagSequence, getScriptToExecute, getScriptToExecuteSequence, getStackMovement, getSubTitle, isPost, isSuitableDialog, setHelpContext, setHelpContext, setMessageToKeep, setMessageToKeepIfNotAlreadySet, setScriptToExecute, setStackMovement, setSubTitle
public static final int MODE_VIRGIN
public static final int MODE_NEW
public static final int MODE_PROPERTY
public static final int MODE_COPY
public DataPropertyAdministration(SessionData sessionData)
sessionData
- the session's public datapublic DataPropertyAdministration(DataObject mainDataObject, SessionData sessionData)
mainDataObject
- the data object that is to be used mainlysessionData
- the session's public datapublic void setMainDataObject(DataObject dataObject)
dataObject
- the data object that is to be used mainlypublic void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setSubmitter(Invokable submitter)
submitter
- the calling submitterprotected DataTextField createTextField(java.lang.String columnName)
columnName
- the name of the field which has to be the column name of the database table.protected DataTextField createTextField(java.lang.String label, java.lang.String columnName)
label
- the line label.columnName
- the name of the field which has to be the column name of the database table.protected DataPasswordField createPasswordField(java.lang.String columnName)
columnName
- the name of the field = the column name of the database tableprotected DataPasswordField createPasswordField(java.lang.String label, java.lang.String columnName)
columnName
- the name of the field = the column name of the database tableprotected DataTextArea createTextArea(java.lang.String label, java.lang.String columnName)
label
- the line label.columnName
- the name of the field = the column name of the database tableprotected DataDateField createDateField(java.lang.String columnName)
columnName
- the name of the field which has to be the column name of the database table.protected DataDateField createDateField(java.lang.String label, java.lang.String columnName)
label
- the line label.columnName
- the name of the field which has to be the column name of the database table.protected DataTimeField createTimeField(java.lang.String columnName)
columnName
- the name of the field which has to be the column name of the database table.protected DataTimeField createTimeField(java.lang.String label, java.lang.String columnName)
label
- the line label.columnName
- the name of the field which has to be the column name of the database table.protected DataIntField createIntField(java.lang.String columnName)
columnName
- the name of the field which has to be the column name of the database table.protected DataIntField createIntField(java.lang.String label, java.lang.String columnName)
label
- the line label.columnName
- the name of the field which has to be the column name of the database table.protected DataDecimalField createDecimalField(java.lang.String label, java.lang.String columnName)
label
- the label of the new linecolumnName
- the name of the column to connect toprotected DataDecimalField createDecimalField(java.lang.String columnName)
columnName
- the name of the column to connect toprotected DataComboBox createComboBox(java.lang.String columnName, DataObject sourceDataObject, java.lang.String visibleColumn)
columnName
- the name of the field = the column name of the database tablesourceDataObject
- 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 DataComboBox createComboBox(java.lang.String label, java.lang.String columnName, DataObject sourceDataObject, java.lang.String visibleColumn)
label
- the line label.columnName
- the name of the field = the column name of the database tablesourceDataObject
- 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 DataComboBox createComboBox(java.lang.String label, java.lang.String columnName, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumnName, java.lang.String nameForNoChoice)
label
- the line label.columnName
- the name of the field = the column name of the database tablesourceDataObject
- 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 DataComboBox createComboBox(java.lang.String columnName, DataObject sourceDataObject, java.lang.String visibleColumn, java.lang.String orderByColumnName, java.lang.String nameForNoChoice)
columnName
- the name of the field = the column name of the database tablesourceDataObject
- 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 DataVariableChoice createChoice(java.lang.String label, java.lang.String[][] content, java.lang.String columnName)
label
- the line label.content
- the wished content of the combo boxcolumnName
- the name of the field = the column name of the database tableprotected DataCheckBox createCheckBox(java.lang.String checkLabel, java.lang.String columnName)
checkLabel
- the label to the right of the check boxcolumnName
- the name of the field = the column name of the database tableprotected DataCheckBox createCheckBox(java.lang.String lineLabel, java.lang.String checkLabel, java.lang.String columnName)
label
- the line label.checkLabel
- columnName
- the name of the field = the column name of the database tableprotected DataCheckBox createCheckBox(java.lang.String lineLabel, java.lang.String checkLabel, java.lang.String columnName, java.lang.String trueString, java.lang.String falseString)
protected DataTextCheck createTextCheck(java.lang.String lineLabel, java.lang.String columnName, java.lang.String[] keys, java.lang.String[] meaning)
label
- the label of the new linecolumnName
- the name of the column to connect tokeys
- the keys as to be used in the database tablesmeaning
- the meanings of these keys to be presented for the userprotected DataTextCheck createTextCheck(java.lang.String lineLabel, java.lang.String columnName, int[] keys, java.lang.String[] meaning)
label
- the label of the new linecolumnName
- the name of the column to connect tokeys
- the keys as to be used in the database tablesmeaning
- the meanings of these keys to be presented for the userpublic DataFileUploader createFileUploader(java.lang.String lineLabel, java.lang.String saveDirectory)
label
- the label of the new linesaveDirectory
- the directory to save the files toprotected void append(java.lang.String stringToAppend)
stringToAppend
- the string to addprotected void setRequired(boolean required)
required
- whether the component is mandatory or notpublic void init()
protected void setFrameTitleNew(java.lang.String frameTitleNew)
frameTitleNew
- the title for insert usageprotected void setFrameUpdateTitleField(DataTextField newFrameUpdateTitleField)
newFrameUpdateTitleField
- the field to determine the for update titleprotected void setFrameUpdateTitleField(DataTextField[] newFrameUpdateTitleFields)
newFrameUpdateTitleFields
- the fields to determine the for update titlepublic java.lang.String getTagSequence()
public java.lang.String getEntryDescription()
public boolean isCancelable()
isCancelable
in interface Invokable
isCancelable
in class Dialog
public void process(GeneralizedRequest request)
process
in interface Invokable
process
in class PropertyAdministration
the
- request to react topublic void newInput()
public void loadValues(int identifyValue)
identifyValue
- the primary key integer value.public void loadValues(Identifier identifier)
identifier
- the identifier (primary key).public void handleSaveRequest()
protected boolean isInputAccepted()
protected int getAdministrationMode()
MODE_VIRGIN
,
MODE_NEW
,
MODE_PROPERTY
or
MODE_COPY
protected boolean isModified()
protected void saveValues()
protected Identifier getLastAdministrationIdentifier()
public boolean hasUploadFunctionality()
public Submission getSubmission()
protected void free()
Dialog
free
in class Dialog
Dialog.destroy()
public boolean wantToBeFinalized()
wantToBeFinalized
in interface Invokable
wantToBeFinalized
in class PropertyAdministration
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de