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