Home
last modified time | relevance | path

Searched refs:textField (Results 1 - 25 of 26) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Dtext_field_element.cpp43 auto textField = weak.Upgrade(); in Update()
44 if (textField) { in Update()
46 textField->RequestKeyboard(true); in Update()
52 auto textField = AceType::DynamicCast<TextFieldComponent>(component_); in Update() local
53 if (!textField) { in Update()
57 if (textField->GetTextFieldController()) { in Update()
58 textField->GetTextFieldController()->SetHandler(AceType::WeakClaim(this)); in Update()
60 enabled_ = textField->IsEnabled(); in Update()
63 if (textField->GetAutoFocus() && isFirstLoad_) { in Update()
74 auto textField in Update()
142 auto textField = DynamicCast<RenderTextField>(renderNode_); OnKeyEvent() local
187 auto textField = DynamicCast<RenderTextField>(renderNode_); OnFocus() local
207 auto textField = DynamicCast<RenderTextField>(renderNode_); OnBlur() local
231 auto textField = DynamicCast<RenderTextField>(renderNode_); CloseKeyboard() local
246 auto textField = DynamicCast<RenderTextField>(renderNode_); RequestKeyboard() local
263 auto textField = DynamicCast<RenderTextField>(renderNode_); ShowError() local
271 auto textField = DynamicCast<RenderTextField>(renderNode_); Delete() local
297 auto textField = DynamicCast<RenderTextField>(renderNode_); Insert() local
[all...]
H A Dtext_field_controller.cpp24 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()
39 auto textField = AceType::DynamicCast<TextFieldElement>(element_.Upgrade()); in ShowError() local
40 if (!textField) { in ShowError()
43 textField->ShowError(errorText); in ShowError()
48 auto textField = AceType::DynamicCast<TextFieldElement>(element_.Upgrade()); in Delete() local
49 if (!textField) { in Delete()
68 auto textField = AceType::DynamicCast<TextFieldElement>(element_.Upgrade()); Insert() local
[all...]
H A Don_text_changed_listener_impl.cpp28 auto task = [textField = field_, text] { in InsertText()
29 auto client = textField.Upgrade(); in InsertText()
67 auto task = [textField = field_, length] { in DeleteForward()
68 auto client = textField.Upgrade(); in DeleteForward()
91 auto task = [textField = field_, &leftResult, number] { in GetLeftTextOfCursor()
92 auto client = textField.Upgrade(); in GetLeftTextOfCursor()
105 auto task = [textField = field_, &rightResult, number] { in GetRightTextOfCursor()
106 auto client = textField.Upgrade(); in GetRightTextOfCursor()
119 auto task = [textField = field_, &index] { in GetTextIndexAtCursor()
120 auto client = textField in GetTextIndexAtCursor()
[all...]
H A Drender_text_field.cpp166 const RefPtr<TextFieldComponent> textField = AceType::DynamicCast<TextFieldComponent>(component); in Update() local
167 if (!textField) { in Update()
174 if (textField->IsTextLengthLimited()) { in Update()
175 maxLength_ = textField->GetMaxLength(); in Update()
178 copyOption_ = textField->GetCopyOption(); in Update()
179 selection_ = textField->GetSelection(); in Update()
180 placeholder_ = textField->GetPlaceholder(); in Update()
181 maxLines_ = textField->GetTextMaxLines(); in Update()
182 overflowX_ = textField->GetOverflowX(); in Update()
186 InitScrollBar(textField); in Update()
412 SetCallback(const RefPtr<TextFieldComponent>& textField) SetCallback() argument
1530 UpdateObscure(const RefPtr<TextFieldComponent>& textField) UpdateObscure() argument
2029 UpdateIcon(const RefPtr<TextFieldComponent>& textField) UpdateIcon() argument
2071 UpdatePasswordIcon(const RefPtr<TextFieldComponent>& textField) UpdatePasswordIcon() argument
[all...]
H A Dtext_field_scroll_bar_controller.cpp40 auto textField = AceType::DynamicCast<RenderTextField>(scroll_.Upgrade()); in UpdateScrollPosition() local
41 if (!textField) { in UpdateScrollPosition()
44 double height = textField->GetLayoutSize().Width(); in UpdateScrollPosition()
45 double estimateHeight = textField->GetEstimatedHeight(); in UpdateScrollPosition()
H A Drender_text_field.h681 void SetCallback(const RefPtr<TextFieldComponent>& textField);
688 void UpdateObscure(const RefPtr<TextFieldComponent>& textField);
691 void UpdateIcon(const RefPtr<TextFieldComponent>& textField);
692 void UpdatePasswordIcon(const RefPtr<TextFieldComponent>& textField);
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_search.cpp28 RefPtr<TextFieldComponent>& textField; member
152 holder.textField->SetBgColor(holder.node.ParseColor(val)); in SetSpecializedStyle()
153 holder.textField->SetFocusBgColor(holder.node.ParseColor(val)); in SetSpecializedStyle()
157 holder.textField->SetCursorColor(holder.node.ParseColor(val)); in SetSpecializedStyle()
163 holder.textField->SetTextColor(color); in SetSpecializedStyle()
164 holder.textField->SetFocusTextColor(color); in SetSpecializedStyle()
182 holder.textField->GetDecoration()->SetPadding(padding); in SetSpecializedStyle()
188 auto padding = holder.textField->GetDecoration()->GetPadding(); in SetSpecializedStyle()
190 holder.textField->GetDecoration()->SetPadding(padding); in SetSpecializedStyle()
195 auto padding = holder.textField in SetSpecializedStyle()
307 auto textField = AceType::DynamicCast<TextFieldComponent>(textFieldComponent_); CallSpecializedMethod() local
[all...]
H A Ddom_input.cpp140 auto textField = AceType::DynamicCast<TextFieldComponent>(inputChild_); in CallSpecializedMethod() local
141 if (!textField) { in CallSpecializedMethod()
144 auto controller = textField->GetTextFieldController(); in CallSpecializedMethod()
183 auto textField = AceType::DynamicCast<TextFieldComponent>(inputChild_); in OnRequestFocus() local
184 if (!textField) { in OnRequestFocus()
187 auto textFieldController = textField->GetTextFieldController(); in OnRequestFocus()
235 auto textField = AceType::DynamicCast<TextFieldComponent>(inputChild_); in PrepareSpecializedComponent() local
236 if (textField) { in PrepareSpecializedComponent()
237 textField->SetInputOptions(inputOptions_); in PrepareSpecializedComponent()
238 textField in PrepareSpecializedComponent()
371 auto textField = DynamicCast<TextFieldComponent>(inputChild_); UpdateSpecializedComponentStyle() local
482 auto textField = DynamicCast<TextFieldComponent>(inputChild_); OnReset() local
514 auto textField = DynamicCast<TextFieldComponent>(inputChild_); SetFormValueListener() local
[all...]
H A Ddom_textarea.cpp297 auto textField = AceType::DynamicCast<TextFieldComponent>(textAreaChild_); in CallSpecializedMethod() local
298 if (!textField) { in CallSpecializedMethod()
301 auto controller = textField->GetTextFieldController(); in CallSpecializedMethod()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dcontent_controller.cpp45 auto textField = DynamicCast<TextFieldPattern>(pattern); in PreprocessString() local
46 CHECK_NULL_RETURN(textField, value); in PreprocessString()
47 if (textField->GetIsPreviewText()) { in PreprocessString()
50 auto property = textField->GetLayoutProperty<TextFieldLayoutProperty>(); in PreprocessString()
67 auto maxLength = static_cast<uint32_t>(textField->GetMaxLength()); in PreprocessString()
125 auto textField = DynamicCast<TextFieldPattern>(pattern); in FilterTextInputStyle() local
126 CHECK_NULL_VOID(textField); in FilterTextInputStyle()
127 auto property = textField->GetLayoutProperty<TextFieldLayoutProperty>(); in FilterTextInputStyle()
175 auto textField = DynamicCast<TextFieldPattern>(pattern); in FilterValue() local
176 CHECK_NULL_VOID(textField); in FilterValue()
212 auto textField = DynamicCast<TextFieldPattern>(pattern); FilterValueType() local
338 auto textField = DynamicCast<TextFieldPattern>(pattern); FilterWithEvent() local
[all...]
H A Don_text_changed_listener_impl.cpp82 auto task = [textField = pattern_, status] { in SetKeyboardStatus()
83 auto client = textField.Upgrade(); in SetKeyboardStatus()
98 auto task = [textField = pattern_, &leftResult, number] { in GetLeftTextOfCursor()
99 auto client = textField.Upgrade(); in GetLeftTextOfCursor()
112 auto task = [textField = pattern_, &rightResult, number] { in GetRightTextOfCursor()
113 auto client = textField.Upgrade(); in GetRightTextOfCursor()
126 auto task = [textField = pattern_, &index] { in GetTextIndexAtCursor()
127 auto client = textField.Upgrade(); in GetTextIndexAtCursor()
148 auto task = [textField = pattern_, height] { in NotifyKeyboardHeight()
150 auto client = textField in NotifyKeyboardHeight()
[all...]
H A Dtext_field_manager.cpp87 RefPtr<FrameNode> TextFieldManagerNG::FindScrollableOfFocusedTextField(const RefPtr<FrameNode>& textField) in FindScrollableOfFocusedTextField() argument
89 CHECK_NULL_RETURN(textField, {}); in FindScrollableOfFocusedTextField()
90 auto parent = textField->GetAncestorNodeOfFrame(); in FindScrollableOfFocusedTextField()
287 void TextFieldManagerNG::AvoidKeyboardInSheet(const RefPtr<FrameNode>& textField) in AvoidKeyboardInSheet() argument
289 CHECK_NULL_VOID(textField); in AvoidKeyboardInSheet()
290 auto parent = textField->GetAncestorNodeOfFrame(); in AvoidKeyboardInSheet()
306 RefPtr<FrameNode> TextFieldManagerNG::FindNavNode(const RefPtr<FrameNode>& textField) in FindNavNode() argument
308 CHECK_NULL_RETURN(textField, nullptr); in FindNavNode()
309 auto parent = textField->GetAncestorNodeOfFrame(); in FindNavNode()
438 for (const auto& textField in HasAutoFillPasswordNodeInContainer()
[all...]
H A Dtext_select_controller.cpp212 auto textField = DynamicCast<TextFieldPattern>(pattern); in UpdateSelectByOffset() local
213 CHECK_NULL_VOID(textField); in UpdateSelectByOffset()
214 auto textRect = textField->GetTextRect(); in UpdateSelectByOffset()
215 auto contentRect = textField->GetTextContentRect(); in UpdateSelectByOffset()
217 if (textField->IsTextArea() && GreatNotEqual(touchLocalOffset.GetY(), textRect.Bottom())) { in UpdateSelectByOffset()
219 touchLocalOffset.SetX(textField->IsLTRLayout() ? contentRect.Right() : textRect.Left()); in UpdateSelectByOffset()
814 auto textField = DynamicCast<TextFieldPattern>(pattern); in IsClickAtBoundary() local
815 CHECK_NULL_RETURN(textField, false); in IsClickAtBoundary()
816 auto textRect = textField->GetTextRect(); in IsClickAtBoundary()
833 auto textField in GetLastClickTime() local
866 auto textField = DynamicCast<TextFieldPattern>(pattern); UpdateSelectWithBlank() local
[all...]
H A Dtext_field_manager.h64 void AvoidKeyboardInSheet(const RefPtr<FrameNode>& textField);
259 RefPtr<FrameNode> FindScrollableOfFocusedTextField(const RefPtr<FrameNode>& textField);
277 RefPtr<FrameNode> FindNavNode(const RefPtr<FrameNode>& textField);
H A Dtext_field_pattern.cpp2432 // emulate clicking bottom of the textField in HandleSingleClickEvent()
3017 auto textField = weak.Upgrade(); in TriggerAvoidWhenCaretGoesDown()
3018 CHECK_NULL_VOID(textField); in TriggerAvoidWhenCaretGoesDown()
3022 if (caretPos > textField->GetLastCaretPos()) { in TriggerAvoidWhenCaretGoesDown()
3024 textField->TriggerAvoidOnCaretChange(); in TriggerAvoidWhenCaretGoesDown()
5061 auto textField = weak.Upgrade(); in RequestKeyboardByFocusSwitch()
5062 CHECK_NULL_VOID(textField); in RequestKeyboardByFocusSwitch()
5069 if (!textField->needToRequestKeyboardInner_) { in RequestKeyboardByFocusSwitch()
5073 if (!textField->RequestKeyboard(false, true, textField in RequestKeyboardByFocusSwitch()
[all...]
H A Dtext_field_content_modifier.cpp110 auto textField = textFieldPattern->IsTextArea() ? "TextArea" : "TextInput"; in onDraw() local
111 ACE_LAYOUT_SCOPED_TRACE("[%s][id:%d] [Rect:%s]", textField, frameNode->GetId(), contentRect.ToString().c_str()); in onDraw()
/foundation/arkui/ace_engine/frameworks/core/components/search/
H A Dsearch_element.cpp45 const auto& textField = AceType::DynamicCast<TextFieldElement>(GetChildren().front()); in OnKeyEvent() local
46 if (textField) { in OnKeyEvent()
47 return textField->OnKeyEvent(keyEvent); in OnKeyEvent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_pattern.h55 auto textField = textField_.Upgrade(); variable
56 CHECK_NULL_RETURN(textField, false);
57 auto pattern = textField->GetPattern();
137 void SetTextFieldNode(const RefPtr<FrameNode>& textField) in SetTextFieldNode() argument
139 textField_ = AceType::WeakClaim(AceType::RawPtr(textField)); in SetTextFieldNode()
H A Dsearch_model_ng.cpp1056 auto textField = FrameNode::GetFrameNode(V2::SEARCH_Field_ETS_TAG, searchNode->GetTextFieldId()); in SetTextValue() local
1057 CHECK_NULL_VOID(textField); in SetTextValue()
1058 auto textFieldLayoutProperty = textField->GetLayoutProperty<TextFieldLayoutProperty>(); in SetTextValue()
1059 auto pattern = textField->GetPattern<TextFieldPattern>(); in SetTextValue()
1084 auto textField = FrameNode::GetFrameNode(V2::SEARCH_Field_ETS_TAG, searchNode->GetTextFieldId()); in SetPlaceholder() local
1085 CHECK_NULL_VOID(textField); in SetPlaceholder()
1086 auto textFieldLayoutProperty = textField->GetLayoutProperty<TextFieldLayoutProperty>(); in SetPlaceholder()
H A Dsearch_pattern.cpp1620 auto textField = textField_.Upgrade(); in OnColorConfigurationUpdate() local
1621 if (textField) { in OnColorConfigurationUpdate()
1622 auto textFieldLayoutProperty = textField->GetLayoutProperty<TextFieldLayoutProperty>(); in OnColorConfigurationUpdate()
1626 textField->MarkModifyDone(); in OnColorConfigurationUpdate()
1627 textField->MarkDirtyNode(PROPERTY_UPDATE_MEASURE_SELF); in OnColorConfigurationUpdate()
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/
H A Drosen_render_text_overlay.cpp177 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 Drender_text_overlay.cpp875 auto textField = weakTextField_.Upgrade(); in HandleClick() local
876 if (textField) { in HandleClick()
877 textField->SetIsOverlayShowed(true, false); in HandleClick()
890 auto textField = weakTextField_.Upgrade(); in HandleDragStart() local
892 if (!textField && !text) { in HandleDragStart()
898 if (textField) { in HandleDragStart()
899 startIndex_ = textField->GetEditingValue().selection.GetStart(); in HandleDragStart()
900 endIndex_ = textField->GetEditingValue().selection.GetEnd(); in HandleDragStart()
902 textField->SetInitIndex(endIndex_); in HandleDragStart()
904 textField in HandleDragStart()
1196 auto textField = weakTextField_.Upgrade(); PopOverlay() local
[all...]
H A Dtext_overlay_component.cpp436 const auto& textField = weakTextField_.Upgrade(); in GetSelectedText() local
437 if (textField) { in GetSelectedText()
438 return textField->GetEditingValue().GetSelectedText(); in GetSelectedText()
/foundation/arkui/ace_engine/test/unittest/core/pattern/search/
H A Dsearch_test_ng.cpp49 // textField Wrapper in HWTEST_F()
498 // textField Wrapper in HWTEST_F()
1527 auto textField = pattern->textField_.Upgrade(); in HWTEST_F() local
1528 ASSERT_NE(textField, nullptr); in HWTEST_F()
1530 textField->GetLayoutProperty<TextFieldLayoutProperty>(); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_layout_algorithm.cpp1552 // textField not in List in OnSurfaceChanged()
1560 // only when textField is onFocus in OnSurfaceChanged()
1561 auto textField = textFieldManager->GetOnFocusTextField().Upgrade(); in OnSurfaceChanged() local
1562 CHECK_NULL_VOID(textField); in OnSurfaceChanged()
1563 auto textFieldHost = textField->GetHost(); in OnSurfaceChanged()
1565 auto textBase = DynamicCast<TextBase>(textField); in OnSurfaceChanged()

Completed in 43 milliseconds

12