X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FGenListItem.cs;h=1b1bef97fd421e99ad436feddd8bd628c817b887;hb=HEAD;hp=d1f7a854b56443cc1e5527a3eb0ff564d9cf8e52;hpb=a7e38f13f1f0c03b037c4173a7e985846f3e05ad;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/ElmSharp/ElmSharp/GenListItem.cs b/src/ElmSharp/ElmSharp/GenListItem.cs
index d1f7a85..1b1bef9 100644
--- a/src/ElmSharp/ElmSharp/GenListItem.cs
+++ b/src/ElmSharp/ElmSharp/GenListItem.cs
@@ -20,8 +20,9 @@ using System.ComponentModel;
namespace ElmSharp
{
///
- /// The type of item's part type.
+ /// The type of the item's part types.
///
+ /// preview
[Flags]
public enum GenListItemFieldType
{
@@ -31,7 +32,7 @@ namespace ElmSharp
All = 0,
///
- /// The text part type.
+ /// The Text part type.
///
Text = (1 << 0),
@@ -41,7 +42,7 @@ namespace ElmSharp
Content = (1 << 1),
///
- /// The state of part.
+ /// The State part type.
///
State = (1 << 2),
@@ -53,18 +54,24 @@ namespace ElmSharp
///
/// It inherits .
- /// A instance to the genlist item added.
- /// It contains Update() method to update a genlist item which is given.
+ /// A instance to the genlist item is added.
+ /// It contains the Update() method to update a genlist item which is given.
///
+ /// preview
public class GenListItem : GenItem
{
internal GenListItem(object data, GenItemClass itemClass) : base(data, itemClass)
{
}
+ internal GenListItem(object data, GenItemClass itemClass, EvasObject parent) : base(data, itemClass, parent)
+ {
+ }
+
///
/// Gets or sets whether a given genlist item is selected.
///
+ /// preview
public override bool IsSelected
{
get
@@ -80,6 +87,7 @@ namespace ElmSharp
///
/// Gets or sets whether a given genlist item is expanded.
///
+ /// preview
public bool IsExpanded
{
get
@@ -94,11 +102,12 @@ namespace ElmSharp
///
/// Updates the content of an item.
- /// This updates an item by calling all the again to get the content, text, and states.
+ /// This updates an item by calling all again to get the content, text, and states.
/// Use this when the original item data has changed and the changes are desired to reflect.
- /// To update already realized items, use .
+ /// To update the already realized items, use .
///
///
+ /// preview
public override void Update()
{
Interop.Elementary.elm_genlist_item_update(Handle);
@@ -106,22 +115,23 @@ namespace ElmSharp
///
/// Updates the part of an item.
- /// This updates an item's part by calling item's fetching functions again to get the contents, texts and states.
+ /// This updates an item's part by calling the item's fetching functions again to get the contents, texts, and states.
/// Use this when the original item data has changed and the changes are desired to be reflected.
/// To update an item's all property, use .
///
- /// The part could be "elm.text", "elm.swalllow.icon", "elm.swallow.end", "elm.swallow.content" and so on. It is also used for globbing to match '*', '?', and '.'. It can be used at updating multi fields.
- /// The type of item's part type.
+ /// The part could be "elm.text", "elm.swalllow.icon", "elm.swallow.end", "elm.swallow.content", and so on. It is also used for globbing to match '*', '?', and '.'. It can be used for updating multi-fields.
+ /// The type of the item's part type.
///
+ /// preview
public void UpdateField(string part, GenListItemFieldType type)
{
Interop.Elementary.elm_genlist_item_fields_update(Handle, part, (uint)type);
}
///
- /// Demote an item to the end of the list.
+ /// Demotes an item to the end of the list.
///
- /// The genlistitem object
+ /// preview
public void DemoteItem()
{
Interop.Elementary.elm_genlist_item_demote(Handle);
@@ -130,6 +140,7 @@ namespace ElmSharp
///
/// Gets or sets the genlist item's select mode.
///
+ /// preview
public override GenItemSelectionMode SelectionMode
{
get
@@ -146,6 +157,7 @@ namespace ElmSharp
/// Gets the next item in a genlist widget's internal list of items.
///
///
+ /// preview
public GenListItem Next
{
get
@@ -159,9 +171,10 @@ namespace ElmSharp
}
///
- /// Get the previous item in a genlist widget's internal list of items.
+ /// Gets the previous item in a genlist widget's internal list of items.
///
///
+ /// preview
public GenListItem Previous
{
get
@@ -174,6 +187,10 @@ namespace ElmSharp
}
}
+ ///
+ /// Sets or gets the content to be shown in the tooltip item.
+ ///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public override string Cursor
{
@@ -194,6 +211,10 @@ namespace ElmSharp
}
}
+ ///
+ /// Sets or gets the style for this item cursor.
+ ///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public override string CursorStyle
{
@@ -207,6 +228,10 @@ namespace ElmSharp
}
}
+ ///
+ /// Sets or gets the cursor engine only usage for this item cursor.
+ ///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool IsUseEngineCursor
{
@@ -220,19 +245,29 @@ namespace ElmSharp
}
}
+ ///
+ /// Sets the text to be shown in the genlist item.
+ ///
+ /// The text to set in the content.
+ /// preview
public override void SetTooltipText(string tooltip)
{
Interop.Elementary.elm_genlist_item_tooltip_text_set(Handle, tooltip);
}
+ ///
+ /// Unsets the tooltip from the item.
+ ///
+ /// preview
public override void UnsetTooltip()
{
Interop.Elementary.elm_genlist_item_tooltip_unset(Handle);
}
///
- /// Gets or sets the style of given genlist item's tooltip.
+ /// Gets or sets the style of the given genlist item's tooltip.
///
+ /// preview
public override string TooltipStyle
{
get
@@ -246,8 +281,9 @@ namespace ElmSharp
}
///
- /// Gets or sets whether disable size restrictions on an object's tooltip.
+ /// Gets or sets the disable size restrictions on an object's tooltip.
///
+ /// preview
public bool IsTooltipWindowMode
{
get
@@ -261,8 +297,9 @@ namespace ElmSharp
}
///
- /// Gets the index of the item. It is only valid once displayed.
+ /// Gets the index of the item. It is only valid, once displayed.
///
+ /// preview
public int Index
{
get
@@ -272,8 +309,9 @@ namespace ElmSharp
}
///
- /// Gets the depth of expanded item.
+ /// Gets the depth of the expanded item.
///
+ /// preview
public int ExpandedItemDepth
{
get
@@ -283,22 +321,24 @@ namespace ElmSharp
}
///
- /// Remove all sub-items (children) of the given item.
+ /// Remove all the subitems (children) of the given item.
///
- ///
- /// This removes all items that are children (and their descendants) of the given item it.
- ///
+ ///
+ /// This removes the items that are the children (and their descendants) of the given item.
+ ///
+ /// preview
public void ClearSubitems()
{
Interop.Elementary.elm_genlist_item_subitems_clear(Handle);
}
///
- /// Update the item class of an item.
+ /// Updates the item class of the item.
/// This sets another class of the item, changing the way that it is displayed. After changing the item class, is called on the item.
///
/// The item class for the item.
/// The data for the item.
+ /// preview
public void UpdateItemClass(GenItemClass itemClass, object data)
{
Data = data;
@@ -306,6 +346,10 @@ namespace ElmSharp
Interop.Elementary.elm_genlist_item_item_class_update((IntPtr)Handle, itemClass.UnmanagedPtr);
}
+ ///
+ /// Sets the content to be shown in the tooltip item.
+ ///
+ /// preview
protected override void UpdateTooltipDelegate()
{
Interop.Elementary.elm_genlist_item_tooltip_content_cb_set(Handle,
@@ -314,4 +358,4 @@ namespace ElmSharp
null);
}
}
-}
+}
\ No newline at end of file