public class DataRadioButtons extends RadioButtonPanel implements Storable
defaultValue, editBeginValue, keys, labels, required, value
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
DataRadioButtons(SessionData sessionData,
DataObject dO,
java.lang.String columnName,
DataObject sourceDataObject,
java.lang.String keyColumnName,
java.lang.String visibleColumnName) |
DataRadioButtons(SessionData sessionData,
DataObject dO,
java.lang.String columnName,
int[] keys,
java.lang.String[] meaning)
Constructs a new group of radio buttons.
|
DataRadioButtons(SessionData sessionData,
DataObject dO,
java.lang.String columnName,
KeyValuePair[] content)
Constructs a new group of radio buttons.
|
DataRadioButtons(SessionData sessionData,
DataObject dO,
java.lang.String columnName,
java.lang.String[] keys,
java.lang.String[] meaning)
Constructs a new group of radio buttons.
|
Modifier and Type | Method and Description |
---|---|
void |
free()
Releases external resources.
|
DataObject |
getAssignedDataObject()
Returns the assigned data object.
|
void |
loadValue()
Loads the component's database stored value.
|
void |
saveValue()
Stores the component's value.
|
void |
selectAll()
Selects all input of the component, if it is supported - e.g. in JTextField.
|
void |
setRequired(boolean required)
Determines whether input is required (mandatory).
|
addItemListener, buildRemoteView, destroy, fetchValuesFromRequest, getSelectedItem, getSelectedKey, isContentValid, isFilled, isModified, isRequirementUnfulfilled, isValid, perform, requestFocusInWindow, setSelectedItem, setSelectedKey, setSelectedKeyAsEditBeginValue, setValues
beginAction, endAction, getContext, getName, getTranslation, isEnabled, isVisible, register, resetLastStatus, setEditable, setEnabled, setToolTipText, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFilled, isModified, isRequirementUnfulfilled, isValid
requestFocusInWindow, setValues
destroy, fetchValuesFromRequest, setToolTipText
buildRemoteView
public DataRadioButtons(SessionData sessionData, DataObject dO, java.lang.String columnName, int[] keys, java.lang.String[] meaning)
dO
- the data object to assign tocolumnName
- the name of the column the text field is to assign tokeys
- the valid keys to be stored in the assigned tablemeaning
- the meaning of the keys to be displayed as check textpublic DataRadioButtons(SessionData sessionData, DataObject dO, java.lang.String columnName, java.lang.String[] keys, java.lang.String[] meaning)
dO
- the data object to assign tocolumnName
- the name of the column the text field is to assign tokeys
- the valid keys to be stored in the assigned tablemeaning
- the meaning of the keys to be displayed as check textpublic DataRadioButtons(SessionData sessionData, DataObject dO, java.lang.String columnName, KeyValuePair[] content)
dO
- the data object to assign tocolumnName
- the name of the column the text field is to assign tocontent
- the content described by an array of KeyValuePairpublic DataRadioButtons(SessionData sessionData, DataObject dO, java.lang.String columnName, DataObject sourceDataObject, java.lang.String keyColumnName, java.lang.String visibleColumnName)
public DataObject getAssignedDataObject()
getAssignedDataObject
in interface Storable
public void setRequired(boolean required)
setRequired
in interface Storable
required
- if true, input is mandatory; otherwise, input is not mandatorypublic void selectAll()
selectAll
in interface RemoteContent
selectAll
in class RadioButtonPanel
public void loadValue()
public void saveValue()
public void free()
free
in interface Exemptible
free
in interface ExemptibleManager
free
in class RemoteElement
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de