From: Bowon Ryu Date: Mon, 13 Jun 2022 05:04:08 +0000 (+0900) Subject: [NUI] Open Text InputFilter APIs X-Git-Tag: submit/tizen_6.5/20220614.151059~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b4a334136ed858316ffd4c1941dd5b2c8269b45;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Open Text InputFilter APIs Signed-off-by: Bowon Ryu --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index 6873541..a696853 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -1535,20 +1535,13 @@ namespace Tizen.NUI.BaseComponents } /// - /// Set InputFilter to TextEditor.
+ /// Set InputFilter to TextEditor. ///
/// The InputFilter /// /// filters input based on regular expressions.
- /// Users can set the Accepted or Rejected regular expression set, or both.
- /// If both are used, Rejected has higher priority.
- /// The character set must follow the regular expression rules.
- /// Behaviour can not be guaranteed for incorrect grammars.
- /// Refer the link below for detailed rules.
- /// The functions in std::regex library use the ECMAScript grammar:
- /// http://cplusplus.com/reference/regex/ECMAScript/
/// InputFiltered signal is emitted when the input is filtered by InputFilter
- /// See , and for a detailed description.
+ /// See , and for a detailed description. ///
/// /// The following example demonstrates how to use the SetInputFilter method. @@ -1559,7 +1552,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(TextUtils.GetInputFilterMap(inputFilter))); @@ -1572,7 +1565,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 da02aec..d52381c 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 7aa5e99..6319d95 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,6 @@ 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)] 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 1d4d1ae..a7d5a81 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -1717,20 +1717,13 @@ namespace Tizen.NUI.BaseComponents } /// - /// Set InputFilter to TextField.
+ /// Set InputFilter to TextField. ///
/// The InputFilter /// /// filters input based on regular expressions.
- /// Users can set the Accepted or Rejected regular expression set, or both.
- /// If both are used, Rejected has higher priority.
- /// The character set must follow the regular expression rules.
- /// Behaviour can not be guaranteed for incorrect grammars.
- /// Refer the link below for detailed rules.
- /// The functions in std::regex library use the ECMAScript grammar:
- /// http://cplusplus.com/reference/regex/ECMAScript/
/// InputFiltered signal is emitted when the input is filtered by InputFilter
- /// See , and for a detailed description.
+ /// See , and for a detailed description. ///
/// /// The following example demonstrates how to use the SetInputFilter method. @@ -1741,20 +1734,20 @@ 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(TextUtils.GetInputFilterMap(inputFilter))); } /// - /// Get InputFilter from TextField.
+ /// Get InputFilter from TextField. ///
/// The InputFilter /// /// /// - [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 9d0b9bd..2310524 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 1976c75..6695c9b 100755 --- a/src/Tizen.NUI/src/public/Common/NUIConstants.cs +++ b/src/Tizen.NUI/src/public/Common/NUIConstants.cs @@ -1986,24 +1986,22 @@ namespace Tizen.NUI } /// - /// Enumeration for the type of InputFilter.
+ /// Enumeration for the type of InputFilter. ///
/// - /// The type of InputFilter that is stored in the when the input is filtered.
+ /// 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 } @@ -2046,19 +2044,17 @@ namespace Tizen.NUI /// 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; } }