Properties and messages for list boxes. More...
#include <kanzi/ui/node/concept/list_box.hpp>
Classes | |
class | ItemHiddenMessageArguments |
Message arguments for the messages about item hiding in a List Box node. More... | |
class | ItemMessageArguments |
Base class for item-related message arguments. More... | |
class | ItemSelectedMessageArguments |
Message arguments for the messages about the item selected event in a List Box node. More... | |
class | ItemVisibleMessageArguments |
Message arguments for the messages about the new visible item in a List Box node. More... | |
Public Types | |
enum | SelectionBehavior { SelectionBehaviorNone, SelectionBehaviorBringToCenter } |
Behaviors for the List Box when an item in the List Box is selected. More... | |
Public Member Functions | |
virtual void | notifyItemAdded (size_t index)=0 |
Virtual functions for notifying item changes to list. More... | |
virtual void | notifyItemCountChanged ()=0 |
virtual void | notifyItemRemoved (size_t index)=0 |
virtual void | notifyItemReplaced (size_t index)=0 |
Public Member Functions inherited from kanzi::ContentItemCollectionModel | |
virtual bool | addContentItem (NodeSharedPtr abstractItem)=0 |
virtual NodeSharedPtr | getContentItem (size_t index)=0 |
virtual size_t | getContentItemCount ()=0 |
virtual void | removeAllContentItems ()=0 |
virtual bool | removeContentItem (NodeSharedPtr abstractItem)=0 |
virtual | ~ContentItemCollectionModel () |
Static Public Member Functions | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Attributes | |
static MessageType< ItemHiddenMessageArguments > | ItemHiddenMessage |
List Box node dispatches this message whenever the List Box hides one of its items. More... | |
static MessageType< ItemSelectedMessageArguments > | ItemSelectedMessage |
List Box node dispatches this message whenever an item in the List Box is selected. More... | |
static MessageType< ItemVisibleMessageArguments > | ItemVisibleMessage |
List Box node dispatches this message whenever the List Box brings one of its items visible. More... | |
Properties | |
static PropertyType< int > | ItemCountProperty |
Reports the number of items in a List Box, including virtual items. More... | |
static PropertyType< int > | KeepAliveItemCountProperty |
Sets the size of the buffer for invisible List Box items. More... | |
static PropertyType< ListBoxConcept::SelectionBehavior > | SelectionBehaviorProperty |
Sets how a List Box node behaves when the user selects an item. More... | |
static PropertyType< string > | ItemGeneratorTypeNameProperty |
Sets the name of the item generator type to use to provide items dynamically for a List Box node. More... | |
static PropertyType< string > | ItemContainerGeneratorTypeNameProperty |
Sets the name of the item container generator type to use to provide item containers dynamically for a List Box node. More... | |
static PropertyType< ResourceSharedPtr > | ItemTemplateProperty |
Sets the prefab template to use for the List Box items. More... | |
static PropertyType< ResourceSharedPtr > | ItemContainerTemplateProperty |
Sets the ListBoxItemContainer prefab that sets the appearance and behavior of the List Box items. More... | |
static PropertyType< int > | SelectedItemIndexProperty |
Sets and reports the index of the item that is currently selected in a List Box node. More... | |
Properties and messages for list boxes.
|
pure virtual |
Virtual functions for notifying item changes to list.
Implemented in kanzi::ListBoxConceptImpl< TBaseClass, TDerivedClass, ListBoxTraits >, kanzi::ListBoxConceptImpl< Node3D, GridListBox3D, GridListBox3DTraits >, kanzi::ListBoxConceptImpl< Node3D, TrajectoryListBox3D, TrajectoryListBox3DTraits >, and kanzi::ListBoxConceptImpl< Node2D, GridListBox2D, GridListBox2DTraits >.
|
pure virtual |
Implemented in kanzi::ListBoxConceptImpl< TBaseClass, TDerivedClass, ListBoxTraits >, kanzi::ListBoxConceptImpl< Node3D, GridListBox3D, GridListBox3DTraits >, kanzi::ListBoxConceptImpl< Node3D, TrajectoryListBox3D, TrajectoryListBox3DTraits >, and kanzi::ListBoxConceptImpl< Node2D, GridListBox2D, GridListBox2DTraits >.
|
pure virtual |
Implemented in kanzi::ListBoxConceptImpl< TBaseClass, TDerivedClass, ListBoxTraits >, kanzi::ListBoxConceptImpl< Node3D, GridListBox3D, GridListBox3DTraits >, kanzi::ListBoxConceptImpl< Node3D, TrajectoryListBox3D, TrajectoryListBox3DTraits >, and kanzi::ListBoxConceptImpl< Node2D, GridListBox2D, GridListBox2DTraits >.
|
pure virtual |
Implemented in kanzi::ListBoxConceptImpl< TBaseClass, TDerivedClass, ListBoxTraits >, kanzi::ListBoxConceptImpl< Node3D, GridListBox3D, GridListBox3DTraits >, kanzi::ListBoxConceptImpl< Node3D, TrajectoryListBox3D, TrajectoryListBox3DTraits >, and kanzi::ListBoxConceptImpl< Node2D, GridListBox2D, GridListBox2DTraits >.
|
static |
|
static |
Reports the number of items in a List Box, including virtual items.
This property is read-only.
The default value is 0.
|
static |
Sets the size of the buffer for invisible List Box items.
Kanzi returns to the item generator those invisible items that do not fit in the buffer.
The default value is 20000000.
|
static |
Sets how a List Box node behaves when the user selects an item.
ListBoxConcept::SelectionBehaviorBringToCenter sets the List Box to bring an item to the center of the List Box area when the user selects that item.
The default value is ListBoxConcept::SelectionBehaviorNone.
|
static |
Sets the name of the item generator type to use to provide items dynamically for a List Box node.
The default value is "".
|
static |
Sets the name of the item container generator type to use to provide item containers dynamically for a List Box node.
The default value is "".
|
static |
Sets the prefab template to use for the List Box items.
The default value is ResourceSharedPtr().
|
static |
Sets the ListBoxItemContainer prefab that sets the appearance and behavior of the List Box items.
The default value is ResourceSharedPtr().
|
static |
Sets and reports the index of the item that is currently selected in a List Box node.
A List Box node updates this property when the user browses that List Box node. By setting the value of this property to the index of the item that you want to select in a List Box, you can select that item.
Kanzi overrides any value source binding that targets this property.
The default value is -1.
|
static |
List Box node dispatches this message whenever an item in the List Box is selected.
This message type contains the selected item index and previously selected item index.
|
static |
List Box node dispatches this message whenever the List Box brings one of its items visible.
This message type contains the item index and the pointer to the visible item.
|
static |
List Box node dispatches this message whenever the List Box hides one of its items.
This message type contains the item index and the pointer to the hidden item.