public class MustCheckBox extends RemoteElement implements ActionInterpreter
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
label |
protected boolean |
value |
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
MustCheckBox(SessionData sessionData,
java.lang.String label) |
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) |
java.lang.String |
getText()
Returns the label of the check box.
|
boolean |
isSelected() |
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 |
setEditable(boolean editable)
Sets the flag that determines whether or not this component is editable.
|
void |
setSelected(boolean selected) |
void |
setValues(ToAppletWriter out) |
beginAction, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, resetLastStatus, setEnabled, setToolTipText, setVisible
public MustCheckBox(SessionData sessionData, java.lang.String label)
public void addItemListener(RemoteItemListener l)
l
- the item listenerpublic void setEditable(boolean editable)
setEditable
in class RemoteElement
editable
- a flag indicating whether this component should be user editable#setEditableForUserTyping
public void setSelected(boolean selected)
public void setValues(ToAppletWriter out)
setValues
in interface RemoteContent
setValues
in class RemoteElement
public java.lang.String getText()
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 fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Remotable
public boolean perform(java.lang.String action)
ActionInterpreter
perform
in interface ActionInterpreter
action
- the action to performpublic boolean isSelected()
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