Implementation of base List Box Item Container class for List Box. More...
#include <kanzi/ui/node/list_box_item_container.hpp>
Public Types | |
using | ItemBaseType |
using | ItemBaseTypeSharedPtr |
using | ItemLayoutSharedPtr |
Public Member Functions | |
void | attachItem (ItemBaseTypeSharedPtr item) |
Attaches a List Box item to the List Box Item Container. | |
void | detachItem () |
Detaches current List Box item from the List Box Item Container. | |
auto | getItem () const |
Returns the List Box item that is attached to the List Box Item Container. | |
optional< size_t > | getItemIndex () const |
Returns the index of the item held by the List Box Item Container. | |
optional< size_t > | getPresenterIndex () const |
Returns a List Box Presenter item index. | |
bool | isSelected () const |
Returns the value of SelectedProperty. | |
void | setPresenterIndex (optional< size_t > itemIndex) |
Sets the List Box Presenter item index. | |
void | setSelected (bool value) |
Sets the value of SelectedProperty. | |
Public Member Functions inherited from kanzi::ClickConceptImpl< TBaseClass, TDerivedClass > | |
bool | isDoubleClickEnabled () const |
Gets the value of DoubleClickEnabledProperty. | |
void | setDoubleClickEnabled (bool value) |
Sets the value of DoubleClickEnabledProperty. | |
Static Protected Member Functions | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Protected Attributes | |
BindingRuntimeHandle | m_focusOrderBinding |
ItemBaseTypeSharedPtr | m_item |
Protected Attributes inherited from kanzi::ClickConcept | |
ClickManipulatorSharedPtr | m_clickManipulator |
The ClickManipulator. | |
MultiClickManipulatorSharedPtr | m_multiClickManipulator |
Multi-Click manipulator. | |
Additional Inherited Members | |
Static Public Member Functions inherited from kanzi::ClickConceptImpl< TBaseClass, TDerivedClass > | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Member Functions inherited from kanzi::ClickConcept | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Member Functions inherited from kanzi::ListBoxItemContainer | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Attributes inherited from kanzi::ClickConcept | |
static PropertyType< bool > | DoubleClickEnabledProperty |
Enables the double-click gesture for a node. | |
Static Public Attributes inherited from kanzi::ListBoxItemContainer | |
static PropertyType< int > | ItemIndexProperty |
Reports the index of the item held by the List Box Item Container. | |
static PropertyType< bool > | SelectedProperty |
Indicates whether a List Box item held by this List Box Item Container is selected. | |
Implementation of base List Box Item Container class for List Box.
TItemLayoutClass | Type of the layout node that you use together with the "$layout" alias to set the placement of the List Box item inside the List Box Item Container prefab. |
using kanzi::ListBoxItemContainerImpl< TBaseClass, TDerivedClass, TItemLayoutClass >::ItemBaseType |
using kanzi::ListBoxItemContainerImpl< TBaseClass, TDerivedClass, TItemLayoutClass >::ItemBaseTypeSharedPtr |
using kanzi::ListBoxItemContainerImpl< TBaseClass, TDerivedClass, TItemLayoutClass >::ItemLayoutSharedPtr |
|
inlineexplicitprotected |
|
inline |
Returns the index of the item held by the List Box Item Container.
|
inline |
Returns the value of SelectedProperty.
|
inline |
Sets the value of SelectedProperty.
value | True if a List Box item is selected. |
|
inline |
Returns a List Box Presenter item index.
|
inline |
Sets the List Box Presenter item index.
itemIndex | Presenter item index to set for the List Box Item Container. |
|
inline |
Attaches a List Box item to the List Box Item Container.
If the "$layout" alias is specified and it points to a Content Layout node, List Box Item Container adds the List Box item in that Content Layout node. Otherwise, List Box Item Container adds the List Box item as the last child of the List Box Item Container node.
item | List Box item that is attached to the List Box Item Container. |
|
inline |
Detaches current List Box item from the List Box Item Container.
|
inline |
Returns the List Box item that is attached to the List Box Item Container.
|
inlineprotected |
|
inlineoverrideprotected |
|
inlinestaticprotected |
|
protected |
|
protected |