Package com.helger.photon.core.form
Class RequestFieldBoolean
java.lang.Object
com.helger.web.scope.util.AbstractRequestFieldData
com.helger.web.scope.util.RequestFieldData
com.helger.photon.core.form.RequestField
com.helger.photon.core.form.RequestFieldBoolean
- All Implemented Interfaces:
com.helger.html.request.IHCBaseRequestField
,com.helger.html.request.IHCRequestField
,com.helger.html.request.IHCRequestFieldBoolean
public class RequestFieldBoolean
extends RequestField
implements com.helger.html.request.IHCRequestFieldBoolean
Special request field specially for check boxes with a fixed value.
- Author:
- Philip Helger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRequestFieldBoolean
(String sFieldName, boolean bDefaultValue) Constructor using eitherVALUE_CHECKED
orVALUE_UNCHECKED
. -
Method Summary
Methods inherited from class com.helger.web.scope.util.RequestFieldData
getDefaultValue, getRequestValue, getRequestValueWithoutDefault, hasRequestValue
Methods inherited from class com.helger.web.scope.util.AbstractRequestFieldData
getFieldName, getParams
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.helger.html.request.IHCBaseRequestField
getFieldName
Methods inherited from interface com.helger.html.request.IHCRequestField
getDefaultValue, getRequestValue
-
Field Details
-
VALUE_CHECKED
-
VALUE_UNCHECKED
-
-
Constructor Details
-
RequestFieldBoolean
Constructor using eitherVALUE_CHECKED
orVALUE_UNCHECKED
.- Parameters:
sFieldName
- Name of the field.bDefaultValue
- The status to be returned, if no request value is present.
-
-
Method Details
-
getStringValue
- Parameters:
bValue
- the boolean value- Returns:
- The string parameter value to be used for the passed parameter.
Neither
null
nor empty.
-
isChecked
-
isChecked
public boolean isChecked()- Specified by:
isChecked
in interfacecom.helger.html.request.IHCRequestFieldBoolean
-
equals
- Overrides:
equals
in classcom.helger.web.scope.util.RequestFieldData
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.helger.web.scope.util.RequestFieldData
-
toString
- Overrides:
toString
in classcom.helger.web.scope.util.RequestFieldData
-