PAJES 3.0.21

org.pajes.html
Class InputCheckBox

java.lang.Object
  extended by org.pajes.html.Tag
      extended by org.pajes.html.Input
          extended by org.pajes.html.InputChecked
              extended by org.pajes.html.InputCheckBox
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HTML, InputValidation

public class InputCheckBox
extends InputChecked

This class builds the HTML checkbox tag.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pajes.html.Input
TYPE_ATTRIBUTE
 
Fields inherited from class org.pajes.html.Tag
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT
 
Constructor Summary
InputCheckBox(Form form, java.lang.String name, java.lang.String value, boolean isChecked)
          Create a Checkbox tag.
InputCheckBox(Form form, java.lang.String name, java.lang.String value, boolean isChecked, Span displayText, boolean textOnLeft)
          Create a Checkbox tag.
InputCheckBox(Form form, java.lang.String name, java.lang.String value, boolean isChecked, java.lang.String displayText, boolean textOnLeft)
          Create a Checkbox tag.
InputCheckBox(Form form, java.lang.String name, java.lang.String value, boolean isChecked, Text displayText, boolean textOnLeft)
          Create a Checkbox tag.
InputCheckBox(InputField source)
          Creates a check box from another input field.
 
Method Summary
 
Methods inherited from class org.pajes.html.InputChecked
isChecked, isMandatory, setChecked, setCheckedValue, setDisplayText, setDisplayText, setDisplayTextOnLeft, setMandatory, setMandatory, setValue, write
 
Methods inherited from class org.pajes.html.Input
addClientValidation, addContent, clone, getClientValidation, getClientValidation, getDOMReference, getFieldNameForErrorMessage, getForm, getInstance, getLabel, getName, getOnBlurHandler, getOnChangeHandler, getOnFocusHandler, getOnSelectHandler, getReadOnlyStyleSheetClass, getTabIndex, getType, getValue, isChangeFlagEnabled, isDisabled, isReadOnly, isRequiringValidation, logNoFormWarning, removeClientValidation, removeClientValidation, removeClientValidation, removeMandatoryClientValidation, setChanged, setChangedFlag, setContent, setDisabled, setFieldNameInErrorMessage, setFieldNameInErrorMessage, setForm, setId, setLabel, setName, setOnBlurHandler, setOnBlurValidation, setOnChangeHandler, setOnClickHandler, setOnFocusHandler, setOnSelectHandler, setReadOnly, setReadOnlyStyleSheetClass, setTabIndex, setTabIndex, setTabIndex
 
Methods inherited from class org.pajes.html.Tag
addAttribute, addAttributes, addAttributes, clearAttribute, clearAttributes, destroy, getAttribute, getAttributes, getAttributeSet, getContainer, getContent, getDocument, getId, getOnClickHandler, getOnDBLClickHandler, getOnKeyDownHandler, getOnKeyPressHandler, getOnKeyUpHandler, getOnMouseDownHandler, getOnMouseOutHandler, getOnMouseOverHandler, getOnMouseUpHandler, getParent, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, hasAttribute, init, initAttributes, isChildOf, isChildOf, isWritable, isWritable, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContainer, setContent, setOnDBLClickHandler, setOnKeyDownHandler, setOnKeyPressHandler, setOnKeyUpHandler, setOnMouseDownHandler, setOnMouseOutHandler, setOnMouseOverHandler, setOnMouseUpHandler, setParent, setStyle, setStyleSheetClass, setTagName, setTitle, setWritable, setWriteAttributes, setWriteEndTag, setWritelnAfter, setWritelnAfterContent, setWritelnBefore, setWritelnBeforeContent, setWritePermission, toString, writeContent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pajes.html.InputValidation
getClientValidation, getDOMReference, getName, isRequiringValidation, setOnBlurValidation
 

Constructor Detail

InputCheckBox

public InputCheckBox(Form form,
                     java.lang.String name,
                     java.lang.String value,
                     boolean isChecked)
Create a Checkbox tag.

Parameters:
form - the form on which this input field will appear. Note that the element must still be added to the form - this reference is used by the getDOMReference() method to determine the fully qualified element name.
name - the name to apply to the input object, so that it may be manipulated using client-side JavaScript.
value - the value returned if the checkbox is selected
isChecked - Set to true if you want the check box to have a check in it.

InputCheckBox

public InputCheckBox(Form form,
                     java.lang.String name,
                     java.lang.String value,
                     boolean isChecked,
                     Span displayText,
                     boolean textOnLeft)
Create a Checkbox tag.

Parameters:
form - the form on which this input field will appear. Note that the element must still be added to the form - this reference is used by the getDOMReference() method to determine the fully qualified element name.
name - the name to apply to the input object, so that it may be manipulated using client-side JavaScript.
value - the value returned if the checkbox is selected.
isChecked - Set to true if you want the check box to have a check in it.
displayText - the text to be displayed next to the check box.
textOnLeft - true if the text is to be displayed on the left of the check box, or false if it is to be displayed on the right.

InputCheckBox

public InputCheckBox(Form form,
                     java.lang.String name,
                     java.lang.String value,
                     boolean isChecked,
                     java.lang.String displayText,
                     boolean textOnLeft)
Create a Checkbox tag.

Parameters:
form - the form on which this input field will appear. Note that the element must still be added to the form - this reference is used by the getDOMReference() method to determine the fully qualified element name.
name - the name to apply to the input object, so that it may be manipulated using client-side JavaScript.
value - the value returned if the checkbox is selected.
isChecked - Set to true if you want the check box to have a check in it.
displayText - the text to be displayed next to the check box
textOnLeft - true if the text is to be displayed on the left of the check box, or false if it is to be displayed on the right.

InputCheckBox

public InputCheckBox(Form form,
                     java.lang.String name,
                     java.lang.String value,
                     boolean isChecked,
                     Text displayText,
                     boolean textOnLeft)
Create a Checkbox tag.

Parameters:
form - the form on which this input field will appear. Note that the element must still be added to the form - this reference is used by the getDOMReference() method to determine the fully qualified element name.
name - the name to apply to the input object, so that it may be manipulated using client-side JavaScript.
value - the value returned if the checkbox is selected.
isChecked - Set to true if you want the check box to have a check in it.
displayText - the text to be displayed next to the check box.
textOnLeft - true if the text is to be displayed on the left of the check box, or false if it is to be displayed on the right.

InputCheckBox

public InputCheckBox(InputField source)
Creates a check box from another input field.

Parameters:
source - the input field from which this check box will be created.

PAJES 3.0.21

Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.