public class GroupOfMarkupables
extends java.lang.Object
Markupable
Modifier and Type | Field and Description |
---|---|
protected SessionData |
sessionData |
Constructor and Description |
---|
GroupOfMarkupables(SessionData sessionData)
Constructs a group of max. 50 markupables.
|
GroupOfMarkupables(SessionData sessionData,
int maxItems)
Constructs a new group of markupables.
|
Modifier and Type | Method and Description |
---|---|
BackButton |
createBackButton(SessionData sessionData)
Creates a back button and registers it as markupable.
|
MustButton |
createButton(java.lang.String label,
java.lang.String name)
Creates a button and registers it as markupable.
|
MustButton |
createButton(java.lang.String label,
java.lang.String name,
java.lang.String onClickScriptlet)
Creates a button and registers it as markupable.
|
CancelButton |
createCancelButton(SessionData sessionData)
Creates an cancel button and registers it as markupable.
|
MustCheckBox |
createCheckBox(java.lang.String checkText)
Creates a check box and registers it as markupable.
|
MustCheckBox |
createCheckBoxWithExplicitName(java.lang.String checkText,
java.lang.String name)
Creates a check box and registers it as markupable.
|
VariableChoice |
createChoice()
Creates combo box without any intitial content.
|
VariableChoiceNumKey |
createChoice(KeyValuePairNum[] content)
Creates a database connected variable choice with numeric key
|
VariableChoice |
createChoice(java.lang.String[] content)
Creates combo box with static choice.
|
VariableChoice |
createChoice(java.lang.String[][] content)
Creates a combo box with static choice.
|
HalfDataComboBox |
createComboBox(SessionData sessionData,
DataObject contentDataObject,
java.lang.String visibleColumn)
Creates a combo box.
|
HalfDataComboBox |
createComboBox(SessionData sessionData,
DataObject contentDataObject,
java.lang.String visibleColumn,
java.lang.String orderByColumn,
java.lang.String nameForNoChoice)
Creates a combo box.
|
MustDateField |
createDateField()
Creates a date input field and registers it as markupable.
|
MustDatePresenter |
createDatePresenter()
Creates a date presenter and registers it as markupable.
|
MustDecimalField |
createDecimalField()
Creates a decimal input field and registers it as markupable.
|
MustDecimalPresenter |
createDecimalPresenter()
Creates a decimal presenter and registers it as markupable.
|
FileUploader |
createFileUploader(java.lang.String saveDirectory)
Creates a file uploader.
|
HiddenField |
createHiddenField()
Creates a hidden field and registers it as markupable.
|
HiddenField |
createHiddenField(java.lang.String name)
Creates a hidden field and registers it as markupable.
|
MustIntField |
createIntField()
Creates a integer input field and registers it as markupable.
|
OkButton |
createOkButton(SessionData sessionData)
Creates an OK button and registers it as markupable.
|
MustPasswordField |
createPasswordField(int size)
Creates a password field and registers it as markupable.
|
RadioButtonGroup |
createRadioButtonGroup(java.lang.String[] checkLabels,
java.lang.String[] values)
Creates a radio button group with static choice.
|
MustReferencePresenter |
createReferencePresenter(java.lang.String[][] content)
Creates a reference presenter with static choice.
|
SearchButton |
createSearchButton(SessionData sessionData)
Creates a search button and registers it as markupable.
|
MustTextArea |
createTextArea()
Creates a text area field and registers it as markupable.
|
MustTextField |
createTextField(int size)
Creates a text input field and registers it as markupable.
|
MustTextField |
createTextField(int size,
int maxlength)
Creates a text input field and registers it as markupable.
|
MustTextPresenter |
createTextPresenter()
Creates a text presenter.
|
MustTimeField |
createTimeField()
Creates a time input field and registers it as markupable.
|
MustTimestampPresenter |
createTimestampPresenter()
Creates a timestamp presenter and registers it as markupable.
|
void |
fetchValuesFromRequest(GeneralizedRequest request)
Synchronizes user input and internal mirrored values by delegating to each
markupable of this group to fetch its value from the request.
|
void |
init() |
protected void |
registerMarkupable(Markupable markupable)
Registers a markupable to be handled in this group.
|
void |
setToolTipText(java.lang.String toolTipText)
Sets the tool tip text of the last created markupable.
|
protected SessionData sessionData
public GroupOfMarkupables(SessionData sessionData)
mainDataObject
- the data object that is to be used mainlysessionData
- the session's public datapublic GroupOfMarkupables(SessionData sessionData, int maxItems)
sessionData
- the session's public datapublic MustTextArea createTextArea()
public MustTextField createTextField(int size)
size
- the size of the fieldpublic MustTextField createTextField(int size, int maxlength)
size
- rendering relevant size of the text fieldmaxlength
- input control relevant max length of the text fieldpublic MustPasswordField createPasswordField(int size)
size
- the size of the fieldpublic MustDateField createDateField()
public MustDatePresenter createDatePresenter()
public MustTimestampPresenter createTimestampPresenter()
public MustTimeField createTimeField()
public MustIntField createIntField()
public MustDecimalField createDecimalField()
public MustDecimalPresenter createDecimalPresenter()
public MustCheckBox createCheckBox(java.lang.String checkText)
checkText
- the text to be displayedpublic MustCheckBox createCheckBoxWithExplicitName(java.lang.String checkText, java.lang.String name)
name
- the name of the checkboxcheckText
- the text to be displayedpublic HalfDataComboBox createComboBox(SessionData sessionData, DataObject contentDataObject, java.lang.String visibleColumn)
sessionData
- the session's public datacontentDataObject
- 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 HalfDataComboBox createComboBox(SessionData sessionData, DataObject contentDataObject, java.lang.String visibleColumn, java.lang.String orderByColumn, java.lang.String nameForNoChoice)
sessionData
- the session's public datacontentDataObject
- 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 VariableChoice createChoice()
public VariableChoice createChoice(java.lang.String[] content)
content
- the wished content of the combo boxpublic VariableChoice createChoice(java.lang.String[][] content)
content
- the wished content of the combo boxpublic VariableChoiceNumKey createChoice(KeyValuePairNum[] content)
content
- the static conent of the variable choicepublic MustReferencePresenter createReferencePresenter(java.lang.String[][] content)
content
- alt the values possibly shownpublic MustTextPresenter createTextPresenter()
public RadioButtonGroup createRadioButtonGroup(java.lang.String[] checkLabels, java.lang.String[] values)
content
- the wished content of the radio button grouppublic FileUploader createFileUploader(java.lang.String saveDirectory)
saveDirectory
- the directory to save the files topublic HiddenField createHiddenField()
public HiddenField createHiddenField(java.lang.String name)
name
- the name of the hidden fieldpublic OkButton createOkButton(SessionData sessionData)
sessionData
- the session's public datapublic CancelButton createCancelButton(SessionData sessionData)
sessionData
- the session's public datapublic BackButton createBackButton(SessionData sessionData)
sessionData
- the session's public datapublic SearchButton createSearchButton(SessionData sessionData)
sessionData
- the session's public datapublic MustButton createButton(java.lang.String label, java.lang.String name)
label
- the labe to be seen by the username
- the name of the buttonpublic MustButton createButton(java.lang.String label, java.lang.String name, java.lang.String onClickScriptlet)
label
- the labe to be seen by the username
- the name of the buttononClickScriptlet
- the scriptlet to be executed (JavaScript) - if
this parameter is not null, the button type is 'button', not 'submit'.protected void registerMarkupable(Markupable markupable)
markupable
- the markupable to registerpublic void setToolTipText(java.lang.String toolTipText)
public void init()
public void fetchValuesFromRequest(GeneralizedRequest request)
request
- the current requestCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de