public class HTMLCheckbox
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
additionalTagFragments |
protected java.lang.String |
checkText |
protected boolean |
editable |
protected boolean |
enabled |
Constructor and Description |
---|
HTMLCheckbox(java.lang.String checkText)
Constructs a new check box with the check text as specified.
|
HTMLCheckbox(java.lang.String name,
java.lang.String checkText)
Constructs a new check box with the specified name and check text.
|
Modifier and Type | Method and Description |
---|---|
void |
fetchYourValueFromRequest(GeneralizedRequest request)
Causes the component to read user input by calling request.getParameter and
update the internal mirrored value.
|
java.lang.String |
getCreationTag()
Returns the tag sequence that's needed to show this object in the user
interface.
|
boolean |
isModified()
Returns true if the component's value differs from its initial value.
|
boolean |
isSelected()
Returns true if the checkbox is selected.
|
void |
resetModifiedStatus()
Resets the modified status by setting the editBeginValue to the current value.
|
void |
setAdditionalTagFragments(java.lang.String additionalTagFragments)
Sets the component's additional tag fragments.
|
static void |
setDefaultAdditionalTagFragments(java.lang.String newDefaultAdditionalTagFragments)
Sets the component's default additional tag fragments.
|
void |
setEditable(boolean editable)
Sets the specified boolean to indicate whether or not this component
should be editable.
|
void |
setEnabled(boolean enabled)
Sets the specified boolean to indicate whether or not this component
is enabled.
|
void |
setOnClickScript(java.lang.String newOnClickScript)
Sets the component's javascript function for the onClick event.
|
void |
setSelected(boolean selected)
Sets the checkbox state as specified.
|
protected java.lang.String checkText
protected java.lang.String additionalTagFragments
protected boolean editable
protected boolean enabled
public HTMLCheckbox(java.lang.String checkText)
checkText
- the check box' textpublic HTMLCheckbox(java.lang.String name, java.lang.String checkText)
name
- the name of the check boxcheckText
- the check box' textpublic void setOnClickScript(java.lang.String newOnClickScript)
newOnClick
- the component's javascript function for the onClick eventpublic static void setDefaultAdditionalTagFragments(java.lang.String newDefaultAdditionalTagFragments)
newDefaultClassName
- the component's default additional tag fragments.public void setAdditionalTagFragments(java.lang.String additionalTagFragments)
newDefaultClassName
- the component's additional tag fragments.public void setEditable(boolean editable)
editable
- indicates whether or not this component is editablepublic void setEnabled(boolean enabled)
enabled
- indicates whether or not this component is enabledpublic java.lang.String getCreationTag()
public void fetchYourValueFromRequest(GeneralizedRequest request)
request
- the current requestpublic boolean isSelected()
public void setSelected(boolean selected)
selected
- indicates whether the check box is to be selected.public boolean isModified()
public void resetModifiedStatus()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de