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