2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.Collections.Generic;
21 namespace ElmSharp.Wearable
24 /// The MoreOptionItem is an item of the MoreOption widget.
26 /// <since_tizen> preview </since_tizen>
27 [Obsolete("This has been deprecated in API12")]
28 public class MoreOptionItem
30 const string MainTextPartName = "selector,main_text";
31 const string SubTextPartName = "selector,sub_text";
32 const string IconPartName = "item,icon";
40 /// Sets or gets the more option item handle.
42 /// <since_tizen> preview </since_tizen>
43 [Obsolete("This has been deprecated in API12")]
52 if (_handle == value) return;
54 if (_mainText != null)
55 Interop.Eext.eext_more_option_item_part_text_set(Handle, MainTextPartName, _mainText);
57 Interop.Eext.eext_more_option_item_part_text_set(Handle, SubTextPartName, _subText);
59 Interop.Eext.eext_more_option_item_part_content_set(Handle, IconPartName, _icon);
64 /// Creates and initializes a new instance of the MoreOptionItem class.
66 /// <since_tizen> preview </since_tizen>
67 [Obsolete("This has been deprecated in API12")]
68 public MoreOptionItem()
74 /// Sets or gets the main text of the more option object.
76 /// <since_tizen> preview </since_tizen>
77 [Obsolete("This has been deprecated in API12")]
78 public string MainText
82 if (_mainText == value) return;
84 if (Handle != IntPtr.Zero)
86 Interop.Eext.eext_more_option_item_part_text_set(Handle, MainTextPartName, _mainText);
97 /// Sets or gets the subtext of the more option object.
99 /// <since_tizen> preview </since_tizen>
100 [Obsolete("This has been deprecated in API12")]
101 public string SubText
105 if (_subText == value) return;
107 if (Handle != IntPtr.Zero)
109 Interop.Eext.eext_more_option_item_part_text_set(Handle, SubTextPartName, _subText);
120 /// Sets or gets the icon image.
122 /// <since_tizen> preview </since_tizen>
123 [Obsolete("This has been deprecated in API12")]
128 if (_icon == value) return;
130 if (Handle != IntPtr.Zero)
132 Interop.Eext.eext_more_option_item_part_content_set(Handle, IconPartName, _icon);