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
Type | Name | Description |
---|---|---|
System.String | itemID | Item id |
System.Object | currentValue | Current value |
ParseValue(object)
Parse value
View Source
Declaration
protected abstract void ParseValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Value to parse |
Init(ITextDisplay)
Initialize the input
View Source
Declaration
public void Init(ITextDisplay display)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Peripherals.Displays.ITextDisplay | display | The display to show the input item |
UpdateInputLine(string)
Update the input line on the display
View Source
Declaration
protected void UpdateInputLine(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The 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