Skip to main content

Class InputBase

Represents a base input menu item

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

Derived:
Meadow.Foundation.Displays.UI.InputTypes.Date, Meadow.Foundation.Displays.UI.InputTypes.ListBase, Meadow.Foundation.Displays.UI.InputTypes.NumericBase, Meadow.Foundation.Displays.UI.InputTypes.TimeBase

Implements:
Meadow.Foundation.Displays.UI.IMenuInputItem, Meadow.Foundation.Displays.UI.IPage

Fields

display

The ITextDisplay object

View Source
protected ITextDisplay display

isInitialized

Is the item initialized

View Source
protected bool isInitialized

itemID

The item id

View Source
protected string itemID

Methods

GetInput(string, object)

Get input

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

ParseValue(object)

Parse value

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

Init(ITextDisplay)

Initialize the input

View Source
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
protected void UpdateInputLine(string text)
Parameters
TypeNameDescription
System.StringtextThe new text to display

Previous()

Previous input

View Source
public abstract bool Previous()
Returns

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

View Source
public abstract bool Next()
Returns

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

View Source
public abstract bool Select()
Returns

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

View Source
public abstract bool Back()
Returns

System.Boolean: True if successful## Events

ValueChanged

The event raised when the menu item value changes

View Source
public abstract event ValueChangedHandler ValueChanged
Event Type

Meadow.Foundation.Displays.UI.ValueChangedHandler

Implements