21 #ifndef __ANTARES_TOOLBOX_COMPONENT_HTMLLISTBOX_COMPONENT_HXX__
22 #define __ANTARES_TOOLBOX_COMPONENT_HTMLLISTBOX_COMPONENT_HXX__
24 namespace Antares::Component::HTMLListbox
42 internalAddDatasource(d);
43 if (!pCurrentDatasource)
45 pCurrentDatasource = d;
52 return pCurrentDatasource;
57 return pItems.empty();
60 inline uint Component::size()
const
62 return (uint)pItems.size();
Listbox with HTML content.
Definition: component.h:46
Datasource::IDatasource * datasource()
Get the current datasource.
Definition: component.hxx:50
D * addDatasource()
Add a datasource.
Definition: component.hxx:39
bool empty() const
Get if the container is empty.
Definition: component.hxx:55
Component & operator+=(Item::IItem::Ptr it)
Operator +=.
Definition: component.hxx:26
void add(Item::IItem::Ptr it)
Add an item.
Definition: component.cpp:145
Component & operator<<(Item::IItem::Ptr it)
Operator <<.
Definition: component.hxx:32
Datasource for HTMLListbox::Component.
Definition: datasource.h:41
std::shared_ptr< IItem > Ptr
The most suitable smartptr for this class.
Definition: item.h:47