Skip to main content

Class InputBase

Represents a base input menu item

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

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

Implements:
Meadow.Foundation.Displays.UI.IMenuInputItem

Fields

display

The ITextDisplay object

View Source
Declaration
protected ITextDisplay display

isInitialized

Is the item initialized

View Source
Declaration
protected bool isInitialized

itemID

The item id

View Source
Declaration
protected string itemID

Methods

GetInput(string, object)

Get input

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

ParseValue(object)

Parse value

View Source
Declaration
protected abstract void ParseValue(object value)
Parameters
TypeNameDescription
System.ObjectvalueValue to parse

Init(ITextDisplay)

Initialize the input

View Source
Declaration
public void Init(ITextDisplay display)
Parameters
TypeNameDescription
Meadow.Peripherals.Displays.ITextDisplaydisplayThe display to show the input item

UpdateInputLine(string)

Update the input line on the display

View Source
Declaration
protected void UpdateInputLine(string text)
Parameters
TypeNameDescription
System.StringtextThe new text to display

Previous()

Previous input

View Source
Declaration
public abstract bool Previous()
Returns

System.Boolean: True if successful### Next() Next input

View Source
Declaration
public abstract bool Next()
Returns

System.Boolean: True if successful### Select() Select input

View Source
Declaration
public abstract bool Select()
Returns

System.Boolean: True if successful### Back() Back input

View Source
Declaration
public abstract bool Back()
Returns

System.Boolean: True if successful## Events

ValueChanged

The event raised when the menu item value changes

View Source
Declaration
public abstract event ValueChangedHandler ValueChanged
Event Type

Meadow.Foundation.Displays.UI.ValueChangedHandler

Implements