X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp.Wearable%2FElmSharp.Wearable%2FRotarySelector.cs;h=48a2c80521c83a81e9399f4251d849e3592244d0;hb=e6ed1095b750c1caaf59b9e697c408d6e185bccb;hp=eb0181c368c31da4bc251f4fd5408751f19c76f8;hpb=4dc9f4e0a8e68182227a7946fd5d97e2f6188e65;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs
index eb0181c..48a2c80 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs
@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
using System;
using System.Collections.Generic;
using System.Linq;
@@ -5,6 +21,11 @@ using System.Text;
namespace ElmSharp.Wearable
{
+ ///
+ /// The Rotary Selector is a widget to display a selector and multiple items surrounding the selector.
+ /// And an item can be selected by rotary event or user item click.
+ /// Inherits .
+ ///
public class RotarySelector : Layout
{
const string IconPartName = "selector,icon";
@@ -14,15 +35,29 @@ namespace ElmSharp.Wearable
const string ItemSelectedEventName = "item,selected";
const string ItemClickedEventName = "item,clicked";
+ ///
+ /// Selected will be triggered when selected an item.
+ ///
public event EventHandler Selected;
+
+ ///
+ /// Clicked will be triggered when selecting again the alredy selected item or selecting a selector.
+ ///
public event EventHandler Clicked;
SmartEvent _selectedEvent;
SmartEvent _clickedEvent;
Image _normalBgImage;
+ ///
+ /// Gets the rotary selector item list of a rotary selector object.
+ ///
public IList Items { get; private set; }
+ ///
+ /// Creates and initializes a new instance of the Rotary Selector class.
+ ///
+ /// The parent of new Rotary Selector instance
public RotarySelector(EvasObject parent) : base(parent)
{
Items = new RotarySelectorList(this);
@@ -42,6 +77,9 @@ namespace ElmSharp.Wearable
};
}
+ ///
+ /// Sets or gets the selected item of a rotary selector object.
+ ///
public RotarySelectorItem SelectedItem
{
get
@@ -77,6 +115,9 @@ namespace ElmSharp.Wearable
}
}
+ ///
+ /// Sets or gets the background image of a rotary selector object.
+ ///
public Image BackgroundImage { set => setPart(ref _normalBgImage, BgPartName, State.Normal, value); get => _normalBgImage; }
protected override IntPtr CreateHandle(EvasObject parent)