|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.CheckBoxWidget
public class CheckBoxWidget
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
CheckBoxWidget()
constructs the class CheckBoxWidget |
protected |
CheckBoxWidget(CheckBox control)
constructs the class CheckBoxWidget |
|
CheckBoxWidget(String id)
constructs the class CheckBoxWidget |
| Method Summary | |
|---|---|
void |
attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is triggered when the control status is changed by the user. |
void |
bindChecked(String path)
Binder for property checked. |
void |
bindChecked(String path,
com.sap.ui.core.client.Formatter formatter)
Binder for property checked. |
void |
detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is triggered when the control status is changed by the user. |
CheckBox |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
setChecked(boolean value)
Setter for property checkedDefault value is: false |
void |
setEditable(boolean value)
Setter for property editableDefault value is: true |
void |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
void |
setText(String value)
Setter for property text |
void |
setTextDirection(com.sap.ui.core.client.TextDirection value)
Setter for property textDirectionDefault value is: Inherit |
void |
setValueState(com.sap.ui.core.client.ValueState value)
Setter for property valueStateDefault value is: None |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property width |
void |
toggle()
Inverts the current value of the control. |
void |
unbindChecked()
Unbinder for property checked. |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CheckBoxWidget()
CheckBoxWidget
public CheckBoxWidget(String id)
CheckBoxWidget
id - id of the CheckBoxWidgetprotected CheckBoxWidget(CheckBox control)
CheckBoxWidget
control - reference to an existing CheckBox| Method Detail |
|---|
public CheckBox getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic boolean isChecked()
checked
Checks the state of the control.
public void setChecked(boolean value)
checkedfalse
value - booleanpublic final void bindChecked(String path)
checked.
path - path to a property in the model
public final void 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 valuepublic final void unbindChecked()
checked.
public String getText()
text
Defines the text displayed next to the checkbox.
public void setText(String value)
text
value - Stringpublic boolean isVisible()
visible
Invisible controls are not rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic boolean isEnabled()
enabled
Disabled controls are displayed in other colors, depending on user settings.
public void setEnabled(boolean value)
enabledtrue
value - booleanpublic boolean isEditable()
editable
Specifies whether or not the user can flag/unflag the checkbox.
public void setEditable(boolean value)
editabletrue
value - booleanpublic com.sap.ui.core.client.ValueState getValueState()
valueState
Accepts the core enumeration "ValueState.type" that supports "None", "Error", "Warning" and "Success".
public void setValueState(com.sap.ui.core.client.ValueState value)
valueStateNone
value - com.sap.ui.core.client.ValueStatepublic String getWidth()
width
Control width results from the text length. Alternatively, the width can be set to an absolute value.
public void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic 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 void setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionInherit
value - com.sap.ui.core.client.TextDirectionpublic void 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 EventListenerpublic void 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 EventListenerpublic void toggle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||