Class ListBase
Text display menu base List input type
Assembly: TextDisplayMenu.dll
View Source
public abstract class ListBase : InputBase, IMenuInputItem, IPage
Inheritance: System.Object
-> Meadow.Foundation.Displays.UI.InputTypes.InputBase
Derived:
Meadow.Foundation.Displays.UI.InputTypes.Boolean, Meadow.Foundation.Displays.UI.InputTypes.OnOff
Implements:
Meadow.Foundation.Displays.UI.IMenuInputItem, Meadow.Foundation.Displays.UI.IPage
Properties
OutputDisplay
The output display text
View Source
protected string OutputDisplay { get; }
Fields
choices
List of choices for the input
View Source
protected string[] choices
selectedIndex
Selected index in the list
View Source
protected int selectedIndex
Methods
GetInput(string, object)
Get the input
View Source
public override void GetInput(string itemID, object currentValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemID | Item ID |
System.Object | currentValue | Current value |
Exceptions
System.InvalidOperationException
Throw if not initialized
Next()
Scroll to the next item in the list
View Source
public override bool Next()
Returns
System.Boolean
: true### Select()
Select the current item in the list
View Source
public override bool Select()
Returns
System.Boolean
: true### Back()
Select the current item in the list
View Source
public override bool Back()
Returns
System.Boolean
: true### Previous()
Scroll to the previous item in the list
View Source
public override bool Previous()
Returns
System.Boolean
: true### ParseValue(object)
Parse a value for the item
View Source
protected override void ParseValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The string value as an object |
Events
ValueChanged
The value changed event handler
View Source
public override event ValueChangedHandler ValueChanged
Event Type
Meadow.Foundation.Displays.UI.ValueChangedHandler