|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.CheckBox
public class CheckBox
The class CheckBox is the GWT wrapper
for the Phoenix control: sap.ui.commons.CheckBox.
Provides a flaggable box and a label. A checkbox can either stand alone, or in a group with other checkboxes. As an option, the boxes can initially be set to status Not Editable.
| Constructor Summary | |
|---|---|
protected |
CheckBox()
constructs the class CheckBoxhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
CheckBox |
attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is triggered when the control status is changed by the user. |
CheckBox |
bindChecked(String path)
Binder for property checked. |
CheckBox |
bindChecked(String path,
com.sap.ui.core.client.Formatter formatter)
Binder for property checked. |
static CheckBox |
create()
creates a new instance of the class CheckBox |
static CheckBox |
create(String idOrConfig)
creates a new instance of the class CheckBox |
static CheckBox |
create(String id,
String config)
creates a new instance of the class CheckBox |
CheckBox |
detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is triggered when the control status is changed by the user. |
String |
getText()
Getter for property text
Defines the text displayed next to the checkbox. |
com.sap.ui.core.client.TextDirection |
getTextDirection()
Getter for property textDirection
Inherits the text direction from its parent control/container. |
com.sap.ui.core.client.ValueState |
getValueState()
Getter for property valueState
Accepts the core enumeration "ValueState.type" that supports "None", "Error", "Warning" and "Success". |
String |
getWidth()
Getter for property width
Control width results from the text length. |
boolean |
isChecked()
Getter for property checked
Checks the state of the control. |
boolean |
isEditable()
Getter for property editable
Specifies whether or not the user can flag/unflag the checkbox. |
boolean |
isEnabled()
Getter for property enabled
Disabled controls are displayed in other colors, depending on user settings. |
boolean |
isVisible()
Getter for property visible
Invisible controls are not rendered. |
CheckBox |
setChecked(boolean value)
Setter for property checkedDefault value is: false |
CheckBox |
setEditable(boolean value)
Setter for property editableDefault value is: true |
CheckBox |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
CheckBox |
setText(String value)
Setter for property text |
CheckBox |
setTextDirection(com.sap.ui.core.client.TextDirection value)
Setter for property textDirectionDefault value is: Inherit |
CheckBox |
setValueState(com.sap.ui.core.client.ValueState value)
Setter for property valueStateDefault value is: None |
CheckBox |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
CheckBox |
setWidth(String value)
Setter for property width |
void |
toggle()
Inverts the current value of the control. |
CheckBox |
unbindChecked()
Unbinder for property checked. |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected CheckBox()
CheckBoxJavaScriptObject restriction
| Method Detail |
|---|
public static CheckBox create()
CheckBox
public static CheckBox create(String idOrConfig)
CheckBox
id - id of the CheckBox or configuration JSON string
public static CheckBox create(String id,
String config)
CheckBox
id - id of the CheckBoxconfig - configuration JSON stringpublic final boolean isChecked()
checked
Checks the state of the control.
public final CheckBox setChecked(boolean value)
checkedfalse
value - boolean
this to allow method chainingpublic final CheckBox bindChecked(String path)
checked.
path - path to a property in the model
this to allow method chaining
public final CheckBox bindChecked(String path,
com.sap.ui.core.client.Formatter formatter)
checked.
path - path to a property in the modelformatter - an optional Formatter function for the value
this to allow method chainingpublic final CheckBox unbindChecked()
checked.
this to allow method chainingpublic final String getText()
text
Defines the text displayed next to the checkbox.
public final CheckBox setText(String value)
text
value - String
this to allow method chainingpublic final boolean isVisible()
visible
Invisible controls are not rendered.
public final CheckBox setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final boolean isEnabled()
enabled
Disabled controls are displayed in other colors, depending on user settings.
public final CheckBox setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isEditable()
editable
Specifies whether or not the user can flag/unflag the checkbox.
public final CheckBox setEditable(boolean value)
editabletrue
value - boolean
this to allow method chainingpublic final com.sap.ui.core.client.ValueState getValueState()
valueState
Accepts the core enumeration "ValueState.type" that supports "None", "Error", "Warning" and "Success".
public final CheckBox setValueState(com.sap.ui.core.client.ValueState value)
valueStateNone
value - com.sap.ui.core.client.ValueState
this to allow method chainingpublic final String getWidth()
width
Control width results from the text length. Alternatively, the width can be set to an absolute value.
public final CheckBox setWidth(String value)
width
value - String
this to allow method chainingpublic final com.sap.ui.core.client.TextDirection getTextDirection()
textDirection
Inherits the text direction from its parent control/container. Alternatively, the value can be set to LTR or RTL.
public final CheckBox setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionInherit
value - com.sap.ui.core.client.TextDirection
this to allow method chainingpublic final CheckBox attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is triggered when the control status is changed by the user.
listener - reference to the EventListener
this to allow method chainingpublic final CheckBox detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is triggered when the control status is changed by the user.
listener - reference to the EventListener
this to allow method chainingpublic final void toggle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||