/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | text_field_element.cpp | 47 if (textField) { in Update() 56 if (!textField) { in Update() 146 if (textField && textField->OnKeyEvent(keyEvent)) { in OnKeyEvent() 191 if (textField) { in OnFocus() 211 if (textField) { in OnBlur() 235 if (textField) { in CloseKeyboard() 250 if (textField) { in RequestKeyboard() 267 if (textField) { in ShowError() 275 if (!textField) { in Delete() 301 if (!textField) { in Insert() [all …]
|
H A D | text_field_controller.cpp | 24 auto textField = AceType::DynamicCast<TextFieldElement>(element_.Upgrade()); in Focus() local 25 if (!textField) { in Focus() 30 textField->RequestKeyboard(true); in Focus() 32 textField->CloseKeyboard(true); in Focus() 33 textField->LostSelfFocus(); in Focus() 40 if (!textField) { in ShowError() 43 textField->ShowError(errorText); in ShowError() 49 if (!textField) { in Delete() 52 textField->Delete(); in Delete() 69 if (!textField) { in Insert() [all …]
|
H A D | render_text_field.cpp | 180 if (!textField) { in Update() 309 if (textField) { in Update() 363 SetCallback(textField); in Update() 365 UpdateIcon(textField); in Update() 983 if (textField && textField->updateHandleDiameter_) { in InitAnimation() 993 if (textField && textField->updateHandleDiameterInner_) { in InitAnimation() 1061 if (textField) { in RegisterCallbacksToOverlay() 1926 if (!textField) { in UpdateIcon() 2619 if (textField) { in InitAccessibilityEventListener() 2627 if (textField) { in InitAccessibilityEventListener() [all …]
|
H A D | on_text_changed_listener_impl.cpp | 30 auto task = [textField = field_, text] { in InsertText() 31 auto client = textField.Upgrade(); in InsertText() 70 auto client = textField.Upgrade(); in DeleteForward() 94 auto client = textField.Upgrade(); in GetLeftTextOfCursor() 108 auto client = textField.Upgrade(); in GetRightTextOfCursor() 122 auto client = textField.Upgrade(); in GetTextIndexAtCursor() 140 auto client = textField.Upgrade(); in DeleteBackward() 163 auto client = textField.Upgrade(); in SetKeyboardStatus() 193 auto client = textField.Upgrade(); in HandleFunctionKey() 219 auto client = textField.Upgrade(); in MoveCursor() [all …]
|
H A D | render_text_field.h | 651 void SetCallback(const RefPtr<TextFieldComponent>& textField); 658 void UpdateObscure(const RefPtr<TextFieldComponent>& textField); 661 void UpdateIcon(const RefPtr<TextFieldComponent>& textField); 662 void UpdatePasswordIcon(const RefPtr<TextFieldComponent>& textField);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/text_field/ |
H A D | render_text_field_test.cpp | 174 textField->SetShowCursor(true); 181 renderTextField->Update(textField); 197 textField->SetShowCursor(true); 205 renderTextField->Update(textField); 228 renderTextField->Update(textField); 253 renderTextField->Update(textField); 277 renderTextField->Update(textField); 301 renderTextField->Update(textField); 324 renderTextField->Update(textField); 347 renderTextField->Update(textField); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/json/ |
H A D | text_field_creator.cpp | 35 auto textField = AceType::MakeRefPtr<TextFieldComponent>(); in CreateFromJson() local 38 textField->SetTextAlign(static_cast<TextAlign>(align)); in CreateFromJson() 43 textField->SetObscure(json.GetBool(OBSCURE_TEXT, false)); in CreateFromJson() 44 textField->SetEnabled(json.GetBool(TEXT_FIELD_ENABLED, true)); in CreateFromJson() 46 textField->SetTextMaxLines(json.GetUInt(TEXT_FIELD_MAX_LINES, 1)); in CreateFromJson() 50 textField->SetMaxLength(maxLength); in CreateFromJson() 52 textField->SetTextInputType( in CreateFromJson() 54 textField->SetAction( in CreateFromJson() 79 textField->SetExtend(json.GetBool(TEXT_FIELD_EXTEND, false)); in CreateFromJson() 80 textField->SetIconImage(json.GetString(TEXT_FIELD_ICON_IMAGE)); in CreateFromJson() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_search.cpp | 28 RefPtr<TextFieldComponent>& textField; member 163 holder.textField->SetTextColor(color); in SetSpecializedStyle() 164 holder.textField->SetFocusTextColor(color); in SetSpecializedStyle() 190 holder.textField->GetDecoration()->SetPadding(padding); in SetSpecializedStyle() 235 holder.textField->SetPlaceholderColor(color); in SetSpecializedStyle() 236 holder.textField->SetFocusPlaceholderColor(color); in SetSpecializedStyle() 243 .textField = textFieldComponent_, in SetSpecializedStyle() 265 textField->SetOnTap(eventMarker); in AddSpecializedEvent() 274 textField->SetOnTap(eventMarker); in AddSpecializedEvent() 308 if (!textField) { in CallSpecializedMethod() [all …]
|
H A D | dom_input.cpp | 141 if (!textField) { in CallSpecializedMethod() 144 auto controller = textField->GetTextFieldController(); in CallSpecializedMethod() 184 if (!textField) { in OnRequestFocus() 236 if (textField) { in PrepareSpecializedComponent() 237 textField->SetInputOptions(inputOptions_); in PrepareSpecializedComponent() 238 textField->SetImageFill(GetImageFill()); in PrepareSpecializedComponent() 372 if (textField) { in UpdateSpecializedComponentStyle() 373 textField->SetIsVisible(IsShow()); in UpdateSpecializedComponentStyle() 483 if (textField) { in OnReset() 484 textField->SetValue(GetOriginValue()); in OnReset() [all …]
|
H A D | dom_textarea.cpp | 291 auto textField = AceType::DynamicCast<TextFieldComponent>(textAreaChild_); in CallSpecializedMethod() local 292 if (!textField) { in CallSpecializedMethod() 295 auto controller = textField->GetTextFieldController(); in CallSpecializedMethod()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | on_text_changed_listener_impl.cpp | 87 auto task = [textField = pattern_, status] { in SetKeyboardStatus() 88 auto client = textField.Upgrade(); in SetKeyboardStatus() 101 auto client = textField.Upgrade(); in GetLeftTextOfCursor() 115 auto client = textField.Upgrade(); in GetRightTextOfCursor() 129 auto client = textField.Upgrade(); in GetTextIndexAtCursor() 152 auto client = textField.Upgrade(); in NotifyKeyboardHeight() 175 auto client = textField.Upgrade(); in HandleFunctionKey() 201 auto client = textField.Upgrade(); in MoveCursor() 230 auto client = textField.Upgrade(); in HandleSetSelection() 244 auto client = textField.Upgrade(); in HandleExtendAction() [all …]
|
H A D | content_controller.cpp | 45 auto textField = DynamicCast<TextFieldPattern>(pattern); in PreprocessString() local 46 CHECK_NULL_RETURN(textField, value); in PreprocessString() 47 if (textField->GetIsPreviewText()) { in PreprocessString() 121 auto textField = DynamicCast<TextFieldPattern>(pattern); in FilterTextInputStyle() local 122 CHECK_NULL_VOID(textField); in FilterTextInputStyle() 170 auto textField = DynamicCast<TextFieldPattern>(pattern); in FilterValue() local 171 CHECK_NULL_VOID(textField); in FilterValue() 172 if (textField->GetIsPreviewText()) { in FilterValue() 209 CHECK_NULL_VOID(textField); in FilterValueType() 335 CHECK_NULL_RETURN(textField, false); in FilterWithEvent() [all …]
|
H A D | text_field_manager.cpp | 89 CHECK_NULL_RETURN(textField, {}); in FindScrollableOfFocusedTextField() 90 auto parent = textField->GetAncestorNodeOfFrame(); in FindScrollableOfFocusedTextField() 306 void TextFieldManagerNG::AvoidKeyboardInSheet(const RefPtr<FrameNode>& textField) in AvoidKeyboardInSheet() argument 308 CHECK_NULL_VOID(textField); in AvoidKeyboardInSheet() 309 auto parent = textField->GetAncestorNodeOfFrame(); in AvoidKeyboardInSheet() 325 RefPtr<FrameNode> TextFieldManagerNG::FindNavNode(const RefPtr<FrameNode>& textField) in FindNavNode() argument 327 CHECK_NULL_RETURN(textField, nullptr); in FindNavNode() 328 auto parent = textField->GetAncestorNodeOfFrame(); in FindNavNode() 457 for (const auto& textField : innerTextFieldInfoMap) { in HasAutoFillPasswordNodeInContainer() local 458 auto textFieldId = textField.first; in HasAutoFillPasswordNodeInContainer() [all …]
|
H A D | text_select_controller.cpp | 206 auto textField = DynamicCast<TextFieldPattern>(pattern); in UpdateSelectByOffset() local 207 CHECK_NULL_VOID(textField); in UpdateSelectByOffset() 208 auto textRect = textField->GetTextRect(); in UpdateSelectByOffset() 210 if (textField->IsTextArea()) { in UpdateSelectByOffset() 785 auto textField = DynamicCast<TextFieldPattern>(pattern); in IsClickAtBoundary() local 786 CHECK_NULL_RETURN(textField, false); in IsClickAtBoundary() 787 auto textRect = textField->GetTextRect(); in IsClickAtBoundary() 805 CHECK_NULL_RETURN(textField, lastAiPosTimeStamp_); in GetLastClickTime() 806 return textField->GetLastClickTime(); in GetLastClickTime() 838 CHECK_NULL_VOID(textField); in UpdateSelectWithBlank() [all …]
|
H A D | text_field_manager.h | 65 void AvoidKeyboardInSheet(const RefPtr<FrameNode>& textField); 264 RefPtr<FrameNode> FindScrollableOfFocusedTextField(const RefPtr<FrameNode>& textField); 282 RefPtr<FrameNode> FindNavNode(const RefPtr<FrameNode>& textField);
|
H A D | text_field_content_modifier.cpp | 81 auto textField = textFieldPattern->IsTextArea() ? "TextArea" : "TextInput"; in onDraw() local 82 …ACE_LAYOUT_SCOPED_TRACE("[%s][id:%d] [Rect:%s]", textField, frameNode->GetId(), contentRect.ToStri… in onDraw()
|
H A D | text_field_pattern.cpp | 2985 auto textField = weak.Upgrade(); in TriggerAvoidWhenCaretGoesDown() local 2986 CHECK_NULL_VOID(textField); in TriggerAvoidWhenCaretGoesDown() 5099 auto textField = weak.Upgrade(); in RequestKeyboardByFocusSwitch() local 5100 CHECK_NULL_VOID(textField); in RequestKeyboardByFocusSwitch() 5111 if (!textField->RequestKeyboard(false, true, textField->needToRequestKeyboardOnFocus_)) { in RequestKeyboardByFocusSwitch() 5114 textField->NotifyOnEditChanged(true); in RequestKeyboardByFocusSwitch() 7924 auto textField = weak.Upgrade(); in OnBackPressed() local 7925 CHECK_NULL_VOID(textField); in OnBackPressed() 7929 textField->parentGlobalOffset_ = textField->GetPaintRectGlobalOffset(); in OnBackPressed() 7930 textField->UpdateTextFieldManager(Offset(textField->parentGlobalOffset_.GetX(), in OnBackPressed() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/search/ |
H A D | search_element.cpp | 45 … const auto& textField = AceType::DynamicCast<TextFieldElement>(GetChildren().front()); in OnKeyEvent() local 46 if (textField) { in OnKeyEvent() 47 return textField->OnKeyEvent(keyEvent); in OnKeyEvent()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/ |
H A D | search_pattern.h | 55 auto textField = textField_.Upgrade(); in NeedToRequestKeyboardOnFocus() local 56 CHECK_NULL_RETURN(textField, false); in NeedToRequestKeyboardOnFocus() 57 auto pattern = textField->GetPattern(); in NeedToRequestKeyboardOnFocus() 137 void SetTextFieldNode(const RefPtr<FrameNode>& textField) in SetTextFieldNode() argument 139 textField_ = AceType::WeakClaim(AceType::RawPtr(textField)); in SetTextFieldNode()
|
H A D | search_model_ng.cpp | 1059 … auto textField = FrameNode::GetFrameNode(V2::SEARCH_Field_ETS_TAG, searchNode->GetTextFieldId()); in SetTextValue() local 1060 CHECK_NULL_VOID(textField); in SetTextValue() 1061 auto textFieldLayoutProperty = textField->GetLayoutProperty<TextFieldLayoutProperty>(); in SetTextValue() 1062 auto pattern = textField->GetPattern<TextFieldPattern>(); in SetTextValue() 1087 … auto textField = FrameNode::GetFrameNode(V2::SEARCH_Field_ETS_TAG, searchNode->GetTextFieldId()); in SetPlaceholder() local 1088 CHECK_NULL_VOID(textField); in SetPlaceholder() 1089 auto textFieldLayoutProperty = textField->GetLayoutProperty<TextFieldLayoutProperty>(); in SetPlaceholder()
|
H A D | search_pattern.cpp | 1650 auto textField = textField_.Upgrade(); in OnColorConfigurationUpdate() local 1651 if (textField) { in OnColorConfigurationUpdate() 1652 auto textFieldLayoutProperty = textField->GetLayoutProperty<TextFieldLayoutProperty>(); in OnColorConfigurationUpdate() 1656 textField->MarkModifyDone(); in OnColorConfigurationUpdate() 1657 textField->MarkDirtyNode(PROPERTY_UPDATE_MEASURE_SELF); in OnColorConfigurationUpdate()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | render_text_overlay.cpp | 876 auto textField = weakTextField_.Upgrade(); in HandleClick() local 877 if (textField) { in HandleClick() 878 textField->SetIsOverlayShowed(true, false); in HandleClick() 891 auto textField = weakTextField_.Upgrade(); in HandleDragStart() local 893 if (!textField && !text) { in HandleDragStart() 899 if (textField) { in HandleDragStart() 903 textField->SetInitIndex(endIndex_); in HandleDragStart() 905 textField->SetInitIndex(startIndex_); in HandleDragStart() 1197 auto textField = weakTextField_.Upgrade(); in PopOverlay() local 1198 if (!textField) { in PopOverlay() [all …]
|
H A D | rosen_render_text_overlay.cpp | 177 auto textField = weakTextField_.Upgrade(); in PaintMagnifier() local 178 auto rosenTextField = AceType::DynamicCast<RosenRenderTextField>(textField); in PaintMagnifier() 514 auto textField = weakTextField_.Upgrade(); in NeedAdjustEndHandle() local 515 auto rosenTextField = AceType::DynamicCast<RosenRenderTextField>(textField); in NeedAdjustEndHandle() 525 auto textField = weakTextField_.Upgrade(); in NeedAdjustStartHandle() local 526 auto rosenTextField = AceType::DynamicCast<RosenRenderTextField>(textField); in NeedAdjustStartHandle()
|
H A D | text_overlay_component.cpp | 442 const auto& textField = weakTextField_.Upgrade(); in GetSelectedText() local 443 if (textField) { in GetSelectedText() 444 return textField->GetEditingValue().GetSelectedText(); in GetSelectedText()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/search/ |
H A D | search_test_ng.cpp | 1528 auto textField = pattern->textField_.Upgrade(); variable 1529 ASSERT_NE(textField, nullptr); 1531 textField->GetLayoutProperty<TextFieldLayoutProperty>();
|