Skip to main content

Class ListBase

Text display menu base List input type

Assembly: TextDisplayMenu.dll
View Source
Declaration
public abstract class ListBase : InputBase, IMenuInputItem, IPage

Inheritance: System.Object -> Meadow.Foundation.Displays.UI.InputTypes.InputBase

Derived:
Meadow.Foundation.Displays.UI.InputTypes.Boolean

Implements:
Meadow.Foundation.Displays.UI.IMenuInputItem

Properties

OutputDisplay

The output display text

View Source
Declaration
protected string OutputDisplay { get; }

Fields

choices

List of choices for the input

View Source
Declaration
protected string[] choices

selectedIndex

Selected index in the list

View Source
Declaration
protected int selectedIndex

Methods

GetInput(string, object)

Get the input

View Source
Declaration
public override void GetInput(string itemID, object currentValue)
Parameters
TypeNameDescription
System.StringitemIDItem ID
System.ObjectcurrentValueCurrent value
Exceptions

System.InvalidOperationException
Throw if not initialized

Next()

Scroll to the next item in the list

View Source
Declaration
public override bool Next()
Returns

System.Boolean: true### Select() Select the current item in the list

View Source
Declaration
public override bool Select()
Returns

System.Boolean: true### Back() Select the current item in the list

View Source
Declaration
public override bool Back()
Returns

System.Boolean: true### Previous() Scroll to the previous item in the list

View Source
Declaration
public override bool Previous()
Returns

System.Boolean: true### ParseValue(object) Parse a value for the item

View Source
Declaration
protected override void ParseValue(object value)
Parameters
TypeNameDescription
System.ObjectvalueThe string value as an object

Events

ValueChanged

The value changed event handler

View Source
Declaration
public override event ValueChangedHandler ValueChanged
Event Type

Meadow.Foundation.Displays.UI.ValueChangedHandler

Implements