Home
last modified time | relevance | path

Searched refs:checkbox (Results 1 - 17 of 17) sorted by relevance

/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dinput_tdd_test.cpp41 * @tc.desc: test the attribute checked in checkbox is correct
47 * @tc.steps:step1.set the type checkbox and get the native element in HWTEST_F()
49 JerrySetStringProperty(attrsObj_, "type", "checkbox"); in HWTEST_F()
56 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); in HWTEST_F() local
57 EXPECT_TRUE((checkbox != nullptr) && (checkbox->GetState() == UICheckBox::UNSELECTED)); in HWTEST_F()
67 EXPECT_TRUE((checkbox != nullptr) && (checkbox->GetState() == UICheckBox::SELECTED)); in HWTEST_F()
76 EXPECT_TRUE((checkbox != nullptr) && (checkbox in HWTEST_F()
274 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); HWTEST_F() local
522 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); HWTEST_F() local
569 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); HWTEST_F() local
633 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); HWTEST_F() local
730 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); HWTEST_F() local
776 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); HWTEST_F() local
[all...]
H A Dinput_event_tdd_test.cpp175 " _c('input', {'attrs': {'type': 'checkbox', 'ref': 'checkbox',\n"
177 " 'staticClass': ['checkbox'],\n"
198 " checkbox: {\n"
233 " _c('input', {'attrs': {'type': 'checkbox', 'checked': function() {return _vm.checked;}, 'ref':'checkbox'},\n"
234 " 'staticClass': ['checkbox'],\n"
263 " checkbox: {\n"
308 " _c('input', {'attrs': {'type': 'checkbox', 'checked': function() {return _vm.checked;}, 'ref':'checkbox'},\
1012 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(GetComponent(page, "checkbox")); HWTEST_F() local
1055 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(GetComponent(page, "checkbox")); HWTEST_F() local
1106 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(GetComponent(page, "checkbox")); HWTEST_F() local
1244 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(GetComponent(page, "checkbox")); HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/checkable/
H A Drender_checkbox.cpp39 const auto& checkbox = AceType::DynamicCast<CheckboxComponent>(component); in Update() local
40 if (!checkbox) { in Update()
41 LOGE("cast to checkbox component failed"); in Update()
45 component_ = checkbox; in Update()
60 checkbox->SetGroupValueUpdateHandler([weak = AceType::WeakClaim(this)](CheckableStatus checked) { in Update()
66 checkbox->SetItemValueUpdateHandler([weak = AceType::WeakClaim(this)](bool checked) { in Update()
74 checkbox->GetOnGroupChange(), context_); in Update()
94 if (checkbox->GetUpdateType() == UpdateType::ALL) { in Update()
95 checked_ = checkbox->GetValue(); in Update()
/foundation/arkui/ace_engine/test/component_test/tools/middle_ground/public/
H A Dindex.js35 newElement.type = 'checkbox';
165 function changeHandler(componentMap, checkbox, event) {
166 const value = checkbox.id;
167 let checkboxData = JSON.parse(checkbox.value);
168 if ("Component Name" === JSON.parse(checkbox.value)[1]) {
169 let array = JSON.parse(checkbox.value)[2];
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dcheckboxgroup_model_impl.cpp80 auto checkbox = AceType::DynamicCast<CheckboxComponent>(ViewStackProcessor::GetInstance()->GetMainComponent()); in SetOnChange() local
81 checkbox->SetOnGroupChange(EventMarker(std::move(onChange))); in SetOnChange()
/foundation/arkui/ui_lite/test/uitest/test_button/
H A Dui_test_button.cpp236 label->SetText("checkbox功能"); in UIKitCheckBoxTest001()
308 label->SetText("checkbox SetImage功能"); in UIKitCheckBoxTest002()
311 UICheckBox* checkbox = new UICheckBox(); in UIKitCheckBoxTest002() local
312 checkbox->SetPosition(30, 430); // 30: x-coordinate, 430: y-coordinate in UIKitCheckBoxTest002()
313 checkbox->SetWidth(130); // 130: width in UIKitCheckBoxTest002()
314 checkbox->SetHeight(130); // 130: height in UIKitCheckBoxTest002()
315 checkbox->SetViewId(UI_TEST_CHECKBOX_SETIMAGE_1); in UIKitCheckBoxTest002()
316 checkbox->SetImages(BLUE_IMAGE_PATH, YELLOW_IMAGE_PATH); in UIKitCheckBoxTest002()
333 container_->Add(checkbox); in UIKitCheckBoxTest002()
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_input.cpp34 constexpr char INPUT_TYPE_CHECKBOX[] = "checkbox";
498 auto checkbox = DynamicCast<CheckboxComponent>(inputChild_); in OnReset() local
499 if (checkbox) { in OnReset()
500 checkbox->SetValue(IsOriginChecked()); in OnReset()
525 auto checkbox = DynamicCast<CheckboxComponent>(inputChild_); in SetFormValueListener() local
526 if (checkbox) { in SetFormValueListener()
527 auto& changeEvent = checkbox->GetChangeEvent(); in SetFormValueListener()
589 LOGW("fail to set child attr due to checkbox component is empty"); in HandlePadding()
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Devent_listener.h121 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(&view); variable
122 changeListener_->OnChange(checkbox->GetState());
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkbox/
H A Dcheckbox_pattern.cpp16 #include "core/components_ng/pattern/checkbox/checkbox_pattern.h"
187 TAG_LOGI(AceLogTag::ACE_SELECT_COMPONENT, "checkbox preventDefault successfully"); in InitClickEvent()
248 TAG_LOGI(AceLogTag::ACE_SELECT_COMPONENT, "checkbox on hover %{public}d", isHover); in HandleMouseEvent()
265 TAG_LOGI(AceLogTag::ACE_SELECT_COMPONENT, "checkbox onclick"); in OnClick()
285 TAG_LOGI(AceLogTag::ACE_SELECT_COMPONENT, "checkbox touch down %{public}d", isHover_); in OnTouchDown()
302 TAG_LOGI(AceLogTag::ACE_SELECT_COMPONENT, "checkbox touch up %{public}d", isHover_); in OnTouchUp()
328 TAG_LOGI(AceLogTag::ACE_SELECT_COMPONENT, "checkbox update status %{public}d", check); in UpdateUIStatus()
396 auto checkbox = weak.Upgrade(); in UpdateState()
397 if (checkbox) { in UpdateState()
398 checkbox in UpdateState()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_checkbox_bridge.cpp18 #include "core/components_ng/pattern/checkbox/checkbox_model_ng.h"
351 auto checkbox = panda::ObjectRef::NewWithNamedProperties(vm, in SetContentModifierBuilder()
353 checkbox->SetNativePointerFieldCount(vm, 1); in SetContentModifierBuilder()
354 checkbox->SetNativePointerField(vm, 0, static_cast<void*>(frameNode)); in SetContentModifierBuilder()
355 panda::Local<panda::JSValueRef> params[2] = { context, checkbox }; in SetContentModifierBuilder()
H A Darkts_native_api_impl_bridge.cpp2725 auto checkbox = panda::ObjectRef::New(vm); in RegisterCheckboxAttributes() local
2726 checkbox->Set(vm, panda::StringRef::NewFromUtf8(vm, "setMark"), in RegisterCheckboxAttributes()
2728 checkbox->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetMark"), in RegisterCheckboxAttributes()
2730 checkbox->Set(vm, panda::StringRef::NewFromUtf8(vm, "setUnSelectedColor"), in RegisterCheckboxAttributes()
2732 checkbox->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetUnSelectedColor"), in RegisterCheckboxAttributes()
2734 checkbox->Set(vm, panda::StringRef::NewFromUtf8(vm, "setSelect"), in RegisterCheckboxAttributes()
2736 checkbox->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetSelect"), in RegisterCheckboxAttributes()
2738 checkbox->Set(vm, panda::StringRef::NewFromUtf8(vm, "setSelectedColor"), in RegisterCheckboxAttributes()
2740 checkbox->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetSelectedColor"), in RegisterCheckboxAttributes()
2742 checkbox in RegisterCheckboxAttributes()
[all...]
/foundation/arkui/ui_lite/test/uitest/test_border_margin_padding/
H A Dui_test_border_margin_padding.cpp532 UICheckBox* checkbox = new UICheckBox(); in UIKitUITestBorderMarginPaddingTest008() local
533 checkbox->SetStyle(style_); in UIKitUITestBorderMarginPaddingTest008()
534 checkbox->SetPosition(200, 30, 50, 50); // 200: x-coordinate, 30: y-coordinate, 50: size in UIKitUITestBorderMarginPaddingTest008()
535 group->Add(checkbox); in UIKitUITestBorderMarginPaddingTest008()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_dialog_view.cpp27 #include "core/components_ng/pattern/checkbox/checkbox_pattern.h"
1243 auto checkbox = FrameNode::CreateFrameNode(
1245 CHECK_NULL_VOID(checkbox);
1246 auto eventHub = checkbox->GetEventHub<CheckBoxEventHub>();
1249 auto checkboxPaintProps = checkbox->GetPaintProperty<CheckBoxPaintProperty>();
1252 auto checkboxPattern = checkbox->GetPattern<CheckBoxPattern>();
1254 auto checkboxLayoutProps = checkbox->GetLayoutProperty<LayoutProperty>();
1261 checkbox->MarkModifyDone();
1262 checkbox->MountToParent(contentRow);
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dkeys.h55 KEYWORD(BACKGROUND_IMAGE, backgroundImage) // common style, but only button, checkbox, radio support
81 KEYWORD(CHECKED, checked) // the input and switch component of checkbox attribute
82 KEYWORD(CHECKBOX, checkbox) // the input component type value
/foundation/arkui/ace_engine/advanced_ui_component/composelistitem/interfaces/
H A Dcomposelistitem.js1849 checkBox: this.operateItem?.checkbox,
1871 checkBox: this.operateItem?.checkbox,
1894 checkBox: this.operateItem?.checkbox,
/foundation/arkui/ace_engine/test/unittest/core/pattern/picker/
H A Ddate_picker_test_one.cpp26 #include "core/components_ng/pattern/checkbox/checkbox_pattern.h"
915 auto checkbox = FrameNode::CreateFrameNode( in HWTEST_F() local
917 CHECK_NULL_VOID(checkbox); in HWTEST_F()
918 auto checkboxPaintProps = checkbox->GetPaintProperty<CheckBoxPaintProperty>(); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DarkComponent.js20255 getUINativeModule().checkbox.setContentModifierBuilder(this.nativePtr, false);
20264 getUINativeModule().checkbox.setContentModifierBuilder(this.nativePtr, this);
20288 getUINativeModule().checkbox.setCheckboxOptions(node, undefined, undefined);
20290 getUINativeModule().checkbox.setCheckboxOptions(node, this.value.name, this.value?.group);
20307 getUINativeModule().checkbox.resetCheckboxResponseRegion(node);
20325 getUINativeModule().checkbox.setCheckboxResponseRegion(node, responseRegion, responseRegion.length);
20373 getUINativeModule().checkbox.resetCheckboxShape(node);
20375 getUINativeModule().checkbox.setCheckboxShape(node, this.value);
20390 getUINativeModule().checkbox.resetCheckboxSize(node);
20393 getUINativeModule().checkbox
[all...]

Completed in 37 milliseconds