#include <YMultiSelectionBox.h>
Inheritance diagram for YMultiSelectionBox:

Public Member Functions | |
| YMultiSelectionBox (const YWidgetOpt &opt, YCPString label) | |
| virtual char * | widgetClass () |
| YCPValue | changeWidget (const YCPSymbol &property, const YCPValue &newvalue) |
| YCPValue | queryWidget (const YCPSymbol &property) |
Protected Member Functions | |
| virtual bool | itemIsSelected (int index)=0 |
| virtual void | selectItem (int index)=0 |
| virtual void | deselectAllItems ()=0 |
| virtual int | getCurrentItem ()=0 |
| virtual void | setCurrentItem (int index)=0 |
Private Member Functions | |
| virtual void | saveUserInput (YMacroRecorder *macroRecorder) |
MultiSelectionBox
The MultiSelectionBox displays a ( scrollable ) list of items from which any number (even nothing!) can be selected. Use the MultiSelectionBox's SelectedItems property to find out which.
Each item can be specified either as a simple string or as `item( ... ) which includes an ( optional ) ID and an (optional) 'selected' flag that specifies the initial selected state ('not selected', i.e. 'false', is default).
|
||||||||||||
|
Constructor
|
|
||||||||||||
|
Implements the ui command changeWidget. Reimplemented from YWidget. |
|
|
Deselect all items. Reimplement this in derived classes! |
|
|
Returns the index of the item that currently has the keyboard focus. Reimplement this in derived classes! |
|
|
Check whether or not item index is selected. Reimplement this in derived classes! |
|
|
Implements the ui command queryWidget Reimplemented from YWidget. |
|
|
Save the widget's user input to a macro recorder. Intentionally declared as "private" so all macro recording internals are handled by the abstract libyui level, not by a specific UI. Reimplemented from YWidget. |
|
|
Select item index. Reimplement this in derived classes! |
|
|
Set the keyboard focus to one item. Reimplement this in derived classes! |
|
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YSelectionWidget. |
1.4.4