2018-04-22 23:13:59 -07:00
|
|
|
|
2019-07-24 06:59:24 -07:00
|
|
|
class @beta Efl.Ui.List_Default_Item extends Efl.Ui.Item implements
|
2018-04-22 23:13:59 -07:00
|
|
|
Efl.Text,
|
|
|
|
Efl.Text_Markup,
|
2019-01-18 05:22:23 -08:00
|
|
|
Efl.Content
|
2018-04-22 23:13:59 -07:00
|
|
|
{
|
|
|
|
[[List Default Item class.
|
|
|
|
This class need to be sub object of list widget.
|
|
|
|
text and contents can be appliable by efl_text,
|
|
|
|
efl_content or efl_part APIs.]]
|
|
|
|
data: null;
|
efl_ui : refactoring efl.part in item based classes.
Summary:
Most of item-based class will have similar efl.part such as text, icon, end.
creating this efl part per each class will be very hard to maintaining the class
and unnecessary eo generation.
so combine them in efl.parts of efl_ui_item.
sub item classes can use this efl.part by declairing ther own eo definition.
Reviewers: cedric, Jaehyun_Cho, segfaultxavi, eagleeye
Reviewed By: cedric, eagleeye
Subscribers: herb, woohyun, q66, lauromoura, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8582
2019-05-29 21:22:03 -07:00
|
|
|
parts {
|
|
|
|
text: Efl.Ui.Item_Part_Text; [[The text part for list default item.]]
|
|
|
|
icon: Efl.Ui.Item_Part_Icon; [[The icon content part for list default item.
|
|
|
|
icon part is the left-side content of list item.]]
|
|
|
|
extra: Efl.Ui.Item_Part_Extra; [[The extra content part for list default item.
|
|
|
|
extra part is the right-side content of list item.]]
|
|
|
|
}
|
2018-04-22 23:13:59 -07:00
|
|
|
implements {
|
|
|
|
//Efl.Object
|
|
|
|
Efl.Object.finalize;
|
|
|
|
Efl.Object.destructor;
|
|
|
|
Efl.Text.text { get; set; }
|
|
|
|
Efl.Text_Markup.markup { get; set; }
|
2018-12-21 14:46:10 -08:00
|
|
|
Efl.Ui.L10n.l10n_text { get; set; }
|
2018-04-22 23:13:59 -07:00
|
|
|
Efl.Content.content { get; set; }
|
|
|
|
Efl.Content.content_unset;
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2018-04-22 23:13:59 -07:00
|
|
|
}
|
|
|
|
}
|