|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.EventValidationComponent
com.sapportals.htmlb.StatefulButtonBase
com.sapportals.htmlb.Checkbox
Basic Checkbox Control.
Copyright 2004 SAP AG
| Field Summary | |
static String |
UI_ID
|
| Fields inherited from class com.sapportals.htmlb.StatefulButtonBase |
VAR_CONTENT, VAR_CONTENTFORGROUP, VAR_ELEMENT, VAR_ELEMENTFORGROUP |
| Constructor Summary | |
protected |
Checkbox()
Create Checkbox. |
|
Checkbox(String key)
create Checkbox with key |
| Method Summary | |
String |
getOnClick()
get the event name |
String |
getOnClientClick()
get a Javascript fragment that is executed when the user clicks on this button |
ForcedTextDirection |
getTextDirection()
Gets the text direction for the component |
String |
getUI()
Get String identifier for this component. |
AbstractDataType |
getValueAsDataType()
Get select state as AbstractDataType |
protected void |
initFromPageContext(IPageContext pc,
String baseId)
internal method to set users selection to the appropriate properties of the checkbox |
boolean |
isChecked()
Check select state. |
boolean |
isLabeled()
checks if a label has been assigned to this component. |
void |
render(int selector,
IPageContext rendererContext)
render an aspect of the component using the current context. |
void |
setChecked(boolean checked)
Set select state. |
void |
setKey(String key)
Deprecated. Use Component.setId(String). You should not use setKey on a Checkbox since it is basically the same as setId() |
void |
setLabeled(boolean isLabeled)
notify the component that a label has been assigned to it. |
void |
setOnClick(String onClick)
set the event name that is fired when the user clicks on this button |
void |
setOnClientClick(String onClientClick)
set a Javascript fragment that is executed when the user clicks on this button |
void |
setTextDirection(ForcedTextDirection textDirection)
Sets the text direction for the component |
| Methods inherited from class com.sapportals.htmlb.StatefulButtonBase |
getElement, getKey, getText, getTooltip, hasValidTooltip, isEncode, setElement, setEncode, setText, setTooltip, toString |
| Methods inherited from class com.sapportals.htmlb.EventValidationComponent |
getAllValidators, getClientEvent, getClientEventMap, getErrorText, getServerEvent, getServerEventMap, getValidator, isDisabled, isEnabled, isRequiresValidation, renderJavascriptInterface, setClientEvent, setDisabled, setEnabled, setErrorText, setRequiresValidation, setServerEvent, setValidator |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String UI_ID
| Constructor Detail |
public Checkbox(String key)
key - the key/id/name for the checkboxprotected Checkbox()
| Method Detail |
public void setKey(String key)
Component.setId(String). You should not use setKey on a Checkbox since it is basically the same as setId()
setKey in class StatefulButtonBasekey - new key and namepublic boolean isChecked()
public void setChecked(boolean checked)
checked - boolean specifying select state
protected void initFromPageContext(IPageContext pc,
String baseId)
initFromPageContext in class Componentpc - the pagecontext from which to read the databaseId - the prefix for the parameter keyspublic AbstractDataType getValueAsDataType()
getValueAsDataType in interface IUserDataComponentpublic String getOnClick()
public void setOnClick(String onClick)
onClick - the name of the eventpublic String getOnClientClick()
public void setOnClientClick(String onClientClick)
onClientClick - the Javascriptpublic String getUI()
getUI in class Component
public void render(int selector,
IPageContext rendererContext)
selector - the aspect to render.rendererContext - the context in which to render.public void setLabeled(boolean isLabeled)
LabeledComponent
setLabeled in interface LabeledComponentpublic boolean isLabeled()
LabeledComponent
isLabeled in interface LabeledComponentpublic ForcedTextDirection getTextDirection()
public void setTextDirection(ForcedTextDirection textDirection)
textDirection - com.sapportals.htmlb.enum.ForcedTextDirection
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||