public class HTMLCheckBox extends HTMLFormComponent implements HandlesMouseEvents, HTMLReadOnlyToggle, HandlesSingleClick
STYLE_STS_FIELD, STYLE_STS_FIELD_IN_TABLE, STYLE_STS_FIELD_PRINTOUTalignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX| Constructor and Description | 
|---|
HTMLCheckBox(java.lang.String name)  | 
HTMLCheckBox(java.lang.String name,
            boolean checked)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addMouseEvent(HTMLMouseEvent me)
add a mouse event to this component 
 | 
void | 
addOnChangeEvent(java.lang.String call)  | 
void | 
addOnChangeEvent(java.lang.String call,
                java.lang.String script)  | 
void | 
cancelClickBubble()
Prevent the click of the mouse from propagation up the dom and kicking off other things. 
 | 
java.lang.String | 
getName()  | 
java.lang.String | 
getValue()  | 
protected void | 
iGenerate(ClientBrowser browser,
         java.lang.StringBuilder buffer)
generate the raw HTML for this component. 
 | 
boolean | 
isChecked()  | 
boolean | 
isDisabled()
Is this is Disabled 
 | 
boolean | 
isReadOnly()
Is this is ReadOnly 
 | 
void | 
setChecked(boolean checked)  | 
void | 
setDisabled(boolean flag)
Disables this input. 
 | 
void | 
setReadOnly(boolean flag)
Sets the field to READONLY 
 | 
void | 
setToolTip(java.lang.String toolTip)  | 
void | 
setValue(java.lang.String value)  | 
void | 
setWritable(boolean forceWritable)
Sets the field to writable state. 
 | 
addJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, compile, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getId, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, makeListOfEvents, monitorPage, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setParent, setStyleProperty, setTabIndex, touchpublic HTMLCheckBox(java.lang.String name)
name - public HTMLCheckBox(java.lang.String name,
                    boolean checked)
name - checked - public void cancelClickBubble()
cancelClickBubble in interface HandlesSingleClickpublic void setToolTip(java.lang.String toolTip)
toolTip - public void setChecked(boolean checked)
checked - public void addOnChangeEvent(java.lang.String call)
addOnChangeEvent in class HTMLFormComponentcall - public void addOnChangeEvent(java.lang.String call,
                             java.lang.String script)
addOnChangeEvent in class HTMLFormComponentcall - script - protected void iGenerate(ClientBrowser browser, java.lang.StringBuilder buffer)
iGenerate in class HTMLComponentbrowser - The target browserbuffer - The generate HTMLpublic java.lang.String getName()
getName in class HTMLFormComponentpublic java.lang.String getValue()
getValue in class HTMLFormComponentpublic boolean isChecked()
public void setValue(java.lang.String value)
setValue in class HTMLFormComponentvalue - the valuepublic void addMouseEvent(HTMLMouseEvent me)
addMouseEvent in interface HandlesMouseEventsme - The mouse eventpublic void setDisabled(boolean flag)
setDisabled in interface HTMLReadOnlyToggleflag - public void setReadOnly(boolean flag)
setReadOnly in interface HTMLReadOnlyToggleflag - public boolean isDisabled()
isDisabled in interface HTMLReadOnlypublic boolean isReadOnly()
isReadOnly in interface HTMLReadOnlypublic void setWritable(boolean forceWritable)
forceWritable - stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.