public class GroupOfStorables extends GroupOfMarkupables
Storable
Modifier and Type | Field and Description |
---|---|
static int |
MODE_COPY |
static int |
MODE_NEW |
static int |
MODE_PROPERTY |
static int |
MODE_VIRGIN |
sessionData
Constructor and Description |
---|
GroupOfStorables(DataObject mainDataObject,
SessionData sessionData)
Constructs a group of max. 50 storables.
|
GroupOfStorables(DataObject mainDataObject,
SessionData sessionData,
int maxItems)
Constructs a group of storables.
|
Modifier and Type | Method and Description |
---|---|
DataCheckBox |
createCheckBox(java.lang.String checkLabel,
java.lang.String columnName)
Creates a database connected check box.
|
DataVariableChoiceNumKey |
createChoice(KeyValuePairNum[] content,
java.lang.String columnName)
Creates a database connected variable choice with numeric key
|
DataVariableChoice |
createChoice(java.lang.String[][] content,
java.lang.String columnName)
Creates a database connected filled combo box with static choice.
|
DataVariableChoice |
createChoice(java.lang.String[] content,
java.lang.String columnName)
Creates a database connected filled combo box with static choice.
|
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.
|
DataComboBox |
createComboBox(SessionData sessionData,
java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String visibleColumn)
Creates a database connected and dynamically data filled combo box.
|
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.
|
DataFileUploader |
createDataFileUploader(java.lang.String saveDirectory)
Creates a database connected file uploader.
|
DataDateField |
createDateField(java.lang.String columnName)
Creates a database connected date input field.
|
DataDatePresenter |
createDatePresenter(java.lang.String columnName)
Creates a database connected date presenter field.
|
DataIntField |
createIntField(java.lang.String columnName)
Creates a database connected text input field for int values.
|
DataIntPresenter |
createIntPresenter(java.lang.String columnName)
Creates a database connected integer presenter field.
|
DataPasswordField |
createPasswordField(java.lang.String columnName)
Creates a database connected password input field.
|
DataTextArea |
createTextArea(java.lang.String columnName)
Creates a database connected text input area.
|
DataTextField |
createTextField(java.lang.String columnName)
Creates a database connected text input field.
|
DataTimeField |
createTimeField(java.lang.String columnName)
Creates a database connected time input field.
|
int |
getAdministrationMode()
Returns the administration mode.
|
boolean |
inputCheckOk()
Indicates whether user input is formally correct.
|
boolean |
inputCheckOk(JspButler jspButler)
Indicates whether user input is formally correct.
|
boolean |
isAutomaticIdentifierAllocation()
Returns the automaticIdentifierAllocation.
|
boolean |
isModified()
Indicates wether one or more components value have been changed.
|
void |
loadValues(Identifier identifier)
Loads an entity specified by a primary key integer value.
|
void |
loadValues(int identifyValue)
Loads an entity specified by a primary key integer value.
|
void |
newInput()
Prepares for inserting data.
|
void |
save()
Stores the component's values.
|
void |
setAutomaticIdentifierAllocation(boolean automaticIdentifierAllocation)
Sets the automaticIdentifierAllocation.
|
createBackButton, createButton, createButton, createCancelButton, createCheckBox, createCheckBoxWithExplicitName, createChoice, createChoice, createChoice, createChoice, createComboBox, createComboBox, createDateField, createDatePresenter, createDecimalField, createDecimalPresenter, createFileUploader, createHiddenField, createHiddenField, createIntField, createOkButton, createPasswordField, createRadioButtonGroup, createReferencePresenter, createSearchButton, createTextArea, createTextField, createTextField, createTextPresenter, createTimeField, createTimestampPresenter, fetchValuesFromRequest, init, registerMarkupable, setToolTipText
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 GroupOfStorables(DataObject mainDataObject, SessionData sessionData)
mainDataObject
- the data object that is to be used mainlysessionData
- the session's public datapublic GroupOfStorables(DataObject mainDataObject, SessionData sessionData, int maxItems)
mainDataObject
- the data object that is to be used mainlysessionData
- the session's public datamaxItems
- the maximum number of storable components used for array capacity aspectspublic boolean isAutomaticIdentifierAllocation()
public void setAutomaticIdentifierAllocation(boolean automaticIdentifierAllocation)
automaticIdentifierAllocation
- The automaticIdentifierAllocation to setpublic DataTextField createTextField(java.lang.String columnName)
columnName
- the name of the field = the column name of the database tablepublic DataPasswordField createPasswordField(java.lang.String columnName)
columnName
- the name of the field = the column name of the database tablepublic DataTextArea createTextArea(java.lang.String columnName)
label
- columnName
- the name of the field = the column name of the database tablepublic DataDateField createDateField(java.lang.String columnName)
columnName
- the name of the field = the column name of the database tablepublic DataDatePresenter createDatePresenter(java.lang.String columnName)
columnName
- the name of the field = the column name of the database tablepublic DataTimeField createTimeField(java.lang.String columnName)
columnName
- the name of the field = the column name of the database tablepublic DataIntField createIntField(java.lang.String columnName)
columnName
- the name of the field = the column name of the database tablepublic DataIntPresenter createIntPresenter(java.lang.String columnName)
columnName
- the name of the field = the column name of the database tablepublic 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 tablepublic DataComboBox createComboBox(SessionData sessionData, 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 objectpublic 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"public DataVariableChoice createChoice(java.lang.String[][] content, java.lang.String columnName)
content
- the wished content of the combo boxcolumnName
- the name of the field = the column name of the database tablepublic DataVariableChoice createChoice(java.lang.String[] content, java.lang.String columnName)
content
- the wished content of the combo boxcolumnName
- the name of the field = the column name of the database tablepublic DataVariableChoiceNumKey createChoice(KeyValuePairNum[] content, java.lang.String columnName)
content
- the static conent of the variable choicecolumnName
- the name of the column to connect topublic DataCheckBox createCheckBox(java.lang.String checkLabel, java.lang.String columnName)
checkLabel
- columnName
- the name of the field = the column name of the database tablepublic DataFileUploader createDataFileUploader(java.lang.String saveDirectory)
saveDirectory
- the directory to save the files topublic void newInput()
public void loadValues(int identifyValue)
identifyValue
- the primary key integer value.public void loadValues(Identifier identifier)
identifier
- the primary key.public int getAdministrationMode()
MODE_NEW
,
MODE_PROPERTY
public boolean inputCheckOk()
public boolean inputCheckOk(JspButler jspButler)
jspButler
- the JspButler to set message and focuspublic boolean isModified()
public void save()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de