Home
last modified time | relevance | path

Searched refs:optionComponent (Results 1 - 8 of 8) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/
H A Dtext_overlay_component.cpp278 auto optionComponent = BuildMenuOption( in BuildMenuForDeclative() local
280 optionComponent->SetClickEvent(cutButtonMarker_); in BuildMenuForDeclative()
281 menu_->AppendSelectOption(optionComponent); in BuildMenuForDeclative()
284 auto optionComponent = BuildMenuOption( in BuildMenuForDeclative() local
286 optionComponent->SetClickEvent(copyButtonMarker_); in BuildMenuForDeclative()
287 menu_->AppendSelectOption(optionComponent); in BuildMenuForDeclative()
291 auto optionComponent = BuildMenuOption( in BuildMenuForDeclative() local
293 optionComponent->SetClickEvent(pasteButtonMarker_); in BuildMenuForDeclative()
294 menu_->AppendSelectOption(optionComponent); in BuildMenuForDeclative()
297 auto optionComponent in BuildMenuForDeclative() local
314 auto optionComponent = BuildMenuOption("", InternalResource::ResourceId::SHARE_SVG, BuildMenu() local
328 auto optionComponent = BuildMenuOption("", InternalResource::ResourceId::SEARCH_SVG, BuildMenu() local
358 auto optionComponent = BuildMenuOption(option.image, InternalResource::ResourceId::NO_ID, option.text, false); AddOptionForMenu() local
373 auto optionComponent = AceType::MakeRefPtr<OptionComponent>(); BuildMenuOption() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Drender_select.cpp69 auto optionComponent = data_->GetSelectOption(index); in ProvideRestoreInfo() local
70 if (optionComponent->GetSelected()) { in ProvideRestoreInfo()
87 auto optionComponent = data_->GetSelectOption(index_); in ApplyRestoreInfo() local
88 optionComponent->SetSelected(true); in ApplyRestoreInfo()
90 auto optionText = optionComponent->GetText(); in ApplyRestoreInfo()
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_select.cpp174 auto optionComponent = AceType::DynamicCast<OptionComponent>(option->GetSpecializedComponent()); in OnChildNodeAdded() local
175 if (!optionComponent) { in OnChildNodeAdded()
178 if (!selectComponent_->GetSelectOptionCount() || optionComponent->GetSelected()) { in OnChildNodeAdded()
179 auto text = optionComponent->GetText(); in OnChildNodeAdded()
187 selectComponent_->AppendSelectOption(optionComponent); in OnChildNodeAdded()
189 selectComponent_->InsertSelectOption(optionComponent, static_cast<uint32_t>(slot)); in OnChildNodeAdded()
H A Ddom_tool_bar_item.cpp258 RefPtr<OptionComponent> optionComponent; in BuildOptionComponent() local
261 if (!optionComponent) { in BuildOptionComponent()
262 optionComponent = AceType::MakeRefPtr<OptionComponent>(); in BuildOptionComponent()
264 optionComponent->SetText(textComponent); in BuildOptionComponent()
265 optionComponent->SetValue(value_); in BuildOptionComponent()
266 optionComponent->SetClickEventForToolBarItem(clickEventId_); in BuildOptionComponent()
268 return optionComponent; in BuildOptionComponent()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dselect_model_impl.cpp40 auto optionComponent = AceType::MakeRefPtr<OHOS::Ace::OptionComponent>(optionTheme); in Create() local
43 optionComponent->SetIcon(AceType::MakeRefPtr<OHOS::Ace::ImageComponent>(params[i].icon)); in Create()
45 optionComponent->SetTheme(optionTheme); in Create()
46 optionComponent->SetText(textComponent); in Create()
47 optionComponent->SetTextStyle(optionTheme->GetTitleStyle()); in Create()
48 optionComponent->SetSelectedTextStyle(optionTheme->GetTitleStyle()); in Create()
49 optionComponent->SetSelectedBackgroundColor(optionTheme->GetSelectedColor()); in Create()
50 optionComponent->SetValue(params[i].text); in Create()
51 selectComponent->AppendSelectOption(optionComponent); in Create()
71 auto optionComponent in SetSelected() local
[all...]
H A Dview_abstract_model_impl.cpp1462 auto optionComponent = AceType::MakeRefPtr<OHOS::Ace::OptionComponent>(optionTheme); in CreateMenuEventWithParams() local
1465 optionComponent->SetTextStyle(optionTheme->GetOptionTextStyle()); in CreateMenuEventWithParams()
1466 optionComponent->SetTheme(optionTheme); in CreateMenuEventWithParams()
1467 optionComponent->SetText(textComponent); in CreateMenuEventWithParams()
1468 optionComponent->SetValue(param.value); in CreateMenuEventWithParams()
1469 optionComponent->SetCustomizedCallback(param.action); in CreateMenuEventWithParams()
1470 optionComponent->SetSelectedBackgroundColor(optionTheme->GetSelectedColor()); in CreateMenuEventWithParams()
1471 menuComponent->AppendOption(optionComponent); in CreateMenuEventWithParams()
1496 auto optionComponent = AceType::MakeRefPtr<OHOS::Ace::OptionComponent>(optionTheme); in ExecMenuBuilder() local
1499 optionComponent in ExecMenuBuilder()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Dnavigation_bar_component_v2.cpp246 auto optionComponent = AceType::MakeRefPtr<OptionComponent>(); in AddOption() local
251 optionComponent->InitTheme(themeManager); in AddOption()
254 optionComponent->SetText(AceType::MakeRefPtr<TextComponent>(menuItem->value)); in AddOption()
255 optionComponent->SetValue(menuItem->value); in AddOption()
256 optionComponent->SetIcon(AceType::MakeRefPtr<ImageComponent>(menuItem->icon)); in AddOption()
257 optionComponent->SetClickEvent(menuItem->action); in AddOption()
258 menu_->AppendOption(optionComponent); in AddOption()
/foundation/arkui/ace_engine/frameworks/core/components/web/
H A Drender_web.cpp1266 auto optionComponent = AceType::MakeRefPtr<OptionComponent>(); in BuildSelectMenu() local
1267 if (!optionComponent) { in BuildSelectMenu()
1270 optionComponent->SetNeedDrawDividerLine(false); in BuildSelectMenu()
1272 optionComponent->SetText(textComponent); in BuildSelectMenu()
1273 optionComponent->SetValue(value); in BuildSelectMenu()
1274 optionComponent->InitTheme(themeManager_); in BuildSelectMenu()
1275 optionComponent->Initialize(accessibilityManager_); in BuildSelectMenu()
1276 return optionComponent; in BuildSelectMenu()

Completed in 10 milliseconds