[ACR-564] deprecate unused API
[platform/core/csapi/tizenfx.git] / src / ElmSharp / ElmSharp / MultiButtonEntryItem.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 using System;
18
19 namespace ElmSharp
20 {
21     /// <summary>
22     /// It inherits <see cref="ItemObject"/>.
23     /// MutltiButtonEntryItem is an item, which is added to MultiButtonEntry.
24     /// It contains Next and Prev properties to get the next and previous item.
25     /// </summary>
26     /// <since_tizen> preview </since_tizen>
27     [Obsolete("This has been deprecated in API12")]
28     public class MultiButtonEntryItem : ItemObject
29     {
30         /// <summary>
31         /// Creates and initializes a new instance of the MultiButtonEntryItem class.
32         /// </summary>
33         /// <param name="text">The text of the MultiButtonEntryItem's label name.</param>
34         /// <since_tizen> preview </since_tizen>
35         [Obsolete("This has been deprecated in API12")]
36         public MultiButtonEntryItem(string text) : base(IntPtr.Zero)
37         {
38             Label = text;
39         }
40
41         internal MultiButtonEntryItem(IntPtr handle) : base(handle)
42         {
43             Label = Interop.Elementary.elm_object_item_part_text_get(handle, null);
44         }
45
46         internal MultiButtonEntryItem(IntPtr handle, EvasObject parent) : base(handle, parent)
47         {
48             Label = Interop.Elementary.elm_object_item_part_text_get(handle, null);
49         }
50
51         /// <summary>
52         /// Gets the label of this item.
53         /// </summary>
54         /// <since_tizen> preview </since_tizen>
55         [Obsolete("This has been deprecated in API12")]
56         public string Label { get; private set; }
57
58         /// <summary>
59         /// Gets or sets the selected state of an item.
60         /// </summary>
61         /// <since_tizen> preview </since_tizen>
62         [Obsolete("This has been deprecated in API12")]
63         public bool IsSelected
64         {
65             get
66             {
67                 return Interop.Elementary.elm_multibuttonentry_item_selected_get(Handle);
68             }
69             set
70             {
71                 Interop.Elementary.elm_multibuttonentry_item_selected_set(Handle, value);
72             }
73         }
74
75         /// <summary>
76         /// Get the next item in the MultiButtonEntry.
77         /// </summary>
78         /// <since_tizen> preview </since_tizen>
79         [Obsolete("This has been deprecated in API12")]
80         public MultiButtonEntryItem Next
81         {
82             get
83             {
84                 var next = Interop.Elementary.elm_multibuttonentry_item_next_get(Handle);
85                 return ItemObject.GetItemByHandle(next) as MultiButtonEntryItem;
86             }
87         }
88
89         /// <summary>
90         /// Get the previous item in the MultiButtonEntry.
91         /// </summary>
92         /// <since_tizen> preview </since_tizen>
93         [Obsolete("This has been deprecated in API12")]
94         public MultiButtonEntryItem Prev
95         {
96             get
97             {
98                 var prev = Interop.Elementary.elm_multibuttonentry_item_prev_get(Handle);
99                 return ItemObject.GetItemByHandle(prev) as MultiButtonEntryItem;
100             }
101         }
102     }
103 }