public class HTMLCheckBox extends HTMLFormComponent implements HandlesMouseEvents, HTMLReadOnlyToggle, HandlesSingleClick
STYLE_STS_FIELD, STYLE_STS_FIELD_IN_TABLE, STYLE_STS_FIELD_PRINTOUT
alignment, 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, touch
public HTMLCheckBox(java.lang.String name)
name
- public HTMLCheckBox(java.lang.String name, boolean checked)
name
- checked
- public void cancelClickBubble()
cancelClickBubble
in interface HandlesSingleClick
public void setToolTip(java.lang.String toolTip)
toolTip
- public void setChecked(boolean checked)
checked
- public void addOnChangeEvent(java.lang.String call)
addOnChangeEvent
in class HTMLFormComponent
call
- public void addOnChangeEvent(java.lang.String call, java.lang.String script)
addOnChangeEvent
in class HTMLFormComponent
call
- script
- protected void iGenerate(ClientBrowser browser, java.lang.StringBuilder buffer)
iGenerate
in class HTMLComponent
browser
- The target browserbuffer
- The generate HTMLpublic java.lang.String getName()
getName
in class HTMLFormComponent
public java.lang.String getValue()
getValue
in class HTMLFormComponent
public boolean isChecked()
public void setValue(java.lang.String value)
setValue
in class HTMLFormComponent
value
- the valuepublic void addMouseEvent(HTMLMouseEvent me)
addMouseEvent
in interface HandlesMouseEvents
me
- The mouse eventpublic void setDisabled(boolean flag)
setDisabled
in interface HTMLReadOnlyToggle
flag
- public void setReadOnly(boolean flag)
setReadOnly
in interface HTMLReadOnlyToggle
flag
- public boolean isDisabled()
isDisabled
in interface HTMLReadOnly
public boolean isReadOnly()
isReadOnly
in interface HTMLReadOnly
public void setWritable(boolean forceWritable)
forceWritable
- stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.