From 1986b6e0df64b33e54ffc0e560103bc76963acfc Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Fri, 10 Sep 2021 14:52:57 +0900 Subject: [PATCH] [NUI] Open Text InputFilter APIs Signed-off-by: Bowon Ryu --- src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs | 4 +--- src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs | 4 ++-- src/Tizen.NUI/src/public/BaseComponents/TextEditorEvent.cs | 2 +- src/Tizen.NUI/src/public/BaseComponents/TextEvent.cs | 4 ++-- src/Tizen.NUI/src/public/BaseComponents/TextField.cs | 4 ++-- src/Tizen.NUI/src/public/BaseComponents/TextFieldEvent.cs | 2 +- src/Tizen.NUI/src/public/Common/NUIConstants.cs | 4 +--- 7 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs b/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs index 47bad7ae1..755d7d605 100644 --- a/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs @@ -33,19 +33,17 @@ namespace Tizen.NUI.Text /// The InputFilter struct is used as an argument to SetInputFilter and GetInputFilter methods.
/// See , , and .
/// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public struct InputFilter { /// /// A regular expression in the set of characters to be accepted by the inputFilter. /// - [EditorBrowsable(EditorBrowsableState.Never)] public string Accepted { get; set; } /// /// A regular expression in the set of characters to be rejected by the inputFilter. /// - [EditorBrowsable(EditorBrowsableState.Never)] public string Rejected { get; set; } } diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index 7c8200c89..a3fae2d8a 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -1670,7 +1670,7 @@ namespace Tizen.NUI.BaseComponents /// editor.SetInputFilter(inputFilter); // acceptable inputs are 4, 5, 6, 7, 8, 9 /// /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public void SetInputFilter(InputFilter inputFilter) { SetProperty(TextEditor.Property.InputFilter, new PropertyValue(TextMapHelper.GetInputFilterMap(inputFilter))); @@ -1683,7 +1683,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public InputFilter GetInputFilter() { var map = new PropertyMap(); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditorEvent.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditorEvent.cs index bff88a3d5..45f5cc47f 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditorEvent.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditorEvent.cs @@ -275,7 +275,7 @@ namespace Tizen.NUI.BaseComponents /// }; /// /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public event EventHandler InputFiltered { add diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEvent.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEvent.cs index 7aa5e996e..f63d48575 100644 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEvent.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEvent.cs @@ -36,7 +36,7 @@ namespace Tizen.NUI.BaseComponents /// /// InputFilteredEventArgs is a class to record input filter event arguments which will be sent to user. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public class InputFilteredEventArgs : EventArgs { /// @@ -44,7 +44,7 @@ namespace Tizen.NUI.BaseComponents /// If the input is filtered by the Accepted Regex of the InputFilter, the Accept type is stored.
/// If the input is filtered by the Rejected Regex of the InputFilter, the Reject type is stored.
///
- [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public InputFilterType Type { get; set; } } } \ No newline at end of file diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index 4d742a079..5a8acc03b 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -1828,7 +1828,7 @@ namespace Tizen.NUI.BaseComponents /// field.SetInputFilter(inputFilter); // acceptable inputs are 4, 5, 6, 7, 8, 9 /// /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public void SetInputFilter(InputFilter inputFilter) { SetProperty(TextField.Property.InputFilter, new PropertyValue(TextMapHelper.GetInputFilterMap(inputFilter))); @@ -1841,7 +1841,7 @@ namespace Tizen.NUI.BaseComponents /// /// /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public InputFilter GetInputFilter() { var map = new PropertyMap(); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextFieldEvent.cs b/src/Tizen.NUI/src/public/BaseComponents/TextFieldEvent.cs index 088d9cd66..347110529 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextFieldEvent.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextFieldEvent.cs @@ -237,7 +237,7 @@ namespace Tizen.NUI.BaseComponents /// }; /// /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public event EventHandler InputFiltered { add diff --git a/src/Tizen.NUI/src/public/Common/NUIConstants.cs b/src/Tizen.NUI/src/public/Common/NUIConstants.cs index 5353b9ba1..c99806ff8 100755 --- a/src/Tizen.NUI/src/public/Common/NUIConstants.cs +++ b/src/Tizen.NUI/src/public/Common/NUIConstants.cs @@ -1988,19 +1988,17 @@ namespace Tizen.NUI /// /// The type of InputFilter that is stored in the when the input is filtered.
///
- [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public enum InputFilterType { /// /// The type of InputFilter is Accept. /// - [EditorBrowsable(EditorBrowsableState.Never)] Accept, /// /// The type of InputFilter is Reject. /// - [EditorBrowsable(EditorBrowsableState.Never)] Reject } -- 2.34.1