public class RadioButtonPanel extends MustInputField implements ActionInterpreter
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
defaultValue |
protected java.lang.String |
editBeginValue |
protected java.lang.String[] |
keys |
protected java.lang.String[] |
labels |
protected boolean |
required |
protected java.lang.String |
value |
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
RadioButtonPanel(SessionData sessionData,
KeyValuePair[] content) |
RadioButtonPanel(SessionData sessionData,
java.lang.String[] keys,
java.lang.String[] labels) |
Modifier and Type | Method and Description |
---|---|
void |
addItemListener(RemoteItemListener l)
Sets the item listener (unique).
|
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
void |
destroy()
Don't wait until garbage collector removed weak reference.
|
void |
fetchValuesFromRequest(GeneralizedRequest request) |
int |
getSelectedItem() |
java.lang.String |
getSelectedKey() |
boolean |
isContentValid()
Indicates whether the component's value is valid.
|
boolean |
isFilled()
Indicates whether the component has a value.
|
boolean |
isModified() |
boolean |
isRequirementUnfulfilled()
Indicates whether the component's value is mandatory but not filled.
|
boolean |
isValid() |
boolean |
perform(java.lang.String action)
Performs this action if the passed action ID is equal to the action ID
of the class that implements this interface.
|
void |
requestFocusInWindow()
Set focus on the receiving component if isRequestFocusEnabled returns true.
|
void |
selectAll()
Selects all input of the component, if it is supported - e.g. in JTextField.
|
void |
setSelectedItem(int index) |
void |
setSelectedKey(java.lang.String key) |
void |
setSelectedKeyAsEditBeginValue(java.lang.String key) |
void |
setValues(ToAppletWriter out) |
beginAction, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, resetLastStatus, setEditable, setEnabled, setToolTipText, setVisible
protected java.lang.String[] keys
protected java.lang.String[] labels
protected java.lang.String defaultValue
protected boolean required
protected java.lang.String value
protected java.lang.String editBeginValue
public RadioButtonPanel(SessionData sessionData, java.lang.String[] keys, java.lang.String[] labels)
public RadioButtonPanel(SessionData sessionData, KeyValuePair[] content)
public void addItemListener(RemoteItemListener l)
l
- the item listenerpublic void setSelectedItem(int index)
public int getSelectedItem()
public void setSelectedKeyAsEditBeginValue(java.lang.String key)
public void setSelectedKey(java.lang.String key)
public java.lang.String getSelectedKey()
public void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Remotable
public void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
buildRemoteView
in class RemoteElement
out
- the writer which will be read by the appletpublic void setValues(ToAppletWriter out)
setValues
in interface RemoteContent
setValues
in class RemoteElement
public boolean perform(java.lang.String action)
ActionInterpreter
perform
in interface ActionInterpreter
action
- the action to performpublic void destroy()
Remotable
destroy
in interface Remotable
destroy
in class MustInputField
public boolean isFilled()
public boolean isModified()
public boolean isValid()
public boolean isContentValid()
public boolean isRequirementUnfulfilled()
public void selectAll()
RemoteContent
selectAll
in interface RemoteContent
selectAll
in class RemoteElement
public void requestFocusInWindow()
RemoteContent
requestFocusInWindow
in interface RemoteContent
requestFocusInWindow
in class RemoteElement
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de