org.apache.empire.struts2.jsp.controls
Class CheckboxInputControl

java.lang.Object
  extended by org.apache.empire.struts2.jsp.controls.InputControl
      extended by org.apache.empire.struts2.jsp.controls.CheckboxInputControl

public class CheckboxInputControl
extends InputControl


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.empire.struts2.jsp.controls.InputControl
InputControl.ControlInfo, InputControl.FieldValueError, InputControl.ValueInfo
 
Field Summary
 
Fields inherited from class org.apache.empire.struts2.jsp.controls.InputControl
CURRENCY_CODE_ATTRIBUTE, FILE_DATA_COLUMN_ATTRIBUTE, log, MAXVALUE_ATTRIBUTE, MINVALUE_ATTRIBUTE, NO_VALUE, NULL_VALUE, NUMBER_FORMAT_ATTRIBUTE, NUMBER_FRACTION_DIGITS, NUMBER_GROUPSEP_ATTRIBUTE
 
Constructor Summary
CheckboxInputControl()
           
 
Method Summary
 Object getFieldValue(String name, RequestParamProvider request, Locale locale, Column column)
          this method parses and validates the value of a particular column from the request
 void renderInput(HtmlWriter writer, InputControl.ControlInfo ci)
          this method renders a record value for input
 void renderText(HtmlWriter writer, InputControl.ValueInfo vi)
          this method renders a record value read only this can be either in a read only form or a table
 
Methods inherited from class org.apache.empire.struts2.jsp.controls.InputControl
error, error, formatValue, formatValue, getFormatOption, hasFormatOption, internalRenderText, parseValue, printText, useLabelId, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckboxInputControl

public CheckboxInputControl()
Method Detail

getFieldValue

public Object getFieldValue(String name,
                            RequestParamProvider request,
                            Locale locale,
                            Column column)
Description copied from class: InputControl
this method parses and validates the value of a particular column from the request

Overrides:
getFieldValue in class InputControl
Parameters:
name - the name under which the param is stored on the request
request - used to access the request Parameters
column - the column for which the value should be
Returns:
the parsed and validated record field value or a FieldValueError if an error occurred

renderText

public void renderText(HtmlWriter writer,
                       InputControl.ValueInfo vi)
Description copied from class: InputControl
this method renders a record value read only this can be either in a read only form or a table

Overrides:
renderText in class InputControl
Parameters:
writer - the HtmlWriter for html write-out
vi - Object holding the value and meta-information about the value

renderInput

public void renderInput(HtmlWriter writer,
                        InputControl.ControlInfo ci)
Description copied from class: InputControl
this method renders a record value for input

Specified by:
renderInput in class InputControl
Parameters:
writer - the HtmlWriter for html write-out
ci - Object holding the value and meta-information about the value and the control


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.