Show TOC Start of Content Area

Object documentation TriStateCheckBox This graphic is explained in the accompanying text  Locate the document in its SAP Library structure

A TriStateCheckBox is an extension of a checkbox which can have the values true and false and also the state undecided. The UI element consists of a graphic with text. The checkmark in the box indicates that the option is selected and the value is set to true, and an asterisk indicates the status undecided, as the following graphic illustrates:

This graphic is explained in the accompanying text

Definition

The Web Dynpro class TriStateCheckbox which implements the IWDTriStateCheckBox interface is the base class of checkboxes which can have three different statuses.

Description of UI Element Properties

      explanation

specifies the explanation text. explanation is maintained by the documentation developer in the Web Dynpro Authoring environment.

      state

Describes the status of the TriStateCheckBox. Checked is represented by the enumeration type WDTriState and can have the following values:

       true

       undecided

       false

      readOnly

Specifies whether or not the user can check the checkbox.

      state

The data type of this property corresponds to the enumeration type WDState. You can use the following values in the application:

normal

Describes the default state of the UI element.

required

Specifies whether the entered value is required. A red asterisk appears next to the text.

      text

Specifies the text that is associated with the checkbox graphic and displayed to the right of the box.

      textDirection

Specifies the text direction and allows you to read texts in languages which require a specific text direction. The textDirection property can be filled with the following values and is represented by the enumeration type WDTextDirection.

inherit

The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element.

ltr

The text runs from left to right.

rtl

The text runs from right to left.

The default value for this property is inherit.

Properties Overview

Name

Interface

Type

Initial Value

Bindable

checked

IWDTriStateCheckBox

WDTriState

false

bindable_mandatory

enabled

IWDUIElement

boolean

true

bindable

explanation

IWDTriStateCheckBox

String

 

not_bindable

readOnly

IWDTriStateCheckBox

boolean

false

bindable

state

IWDTriStateCheckBox

WDState

normal

bindable

text

IWDTriStateCheckBox

String (TranslatableText)

 

bindable

textDirection

IWDTriStateCheckBox

WDTextDirection

inherit

bindable

tooltip

IWDUIElement

String (TranslatableText)

 

bindable

visible

IWDUIElement

WDVisibility

visible

bindable

Events

      onToggle (WDTriState newChecked, WDTriState oldChecked)

The onToggle event is triggered when the user clicks the TriStateCheckBox. The parameters are the old and the new status.

End of Content Area