Skip to main content

Class TextDisplayMenu

TextDisplayMenu TextDisplayMenu class

Assembly: TextDisplayMenu.dll
View Source
Declaration
public class TextDisplayMenu

Properties

IsEnabled

Is the menu enabled

View Source
Declaration
public bool IsEnabled { get; protected set; }

Methods

Enable()

Enable the menu

View Source
Declaration
public void Enable()

Disable()

Disable the menu

View Source
Declaration
public void Disable()

CreateMenuPage(MenuItem[], bool)

Create a TextDisplayMenu page

View Source
Declaration
protected MenuPage CreateMenuPage(MenuItem[] items, bool addBack)
Returns

Meadow.Foundation.Displays.UI.MenuPage: The new MenuPage object

Parameters
TypeNameDescription
Meadow.Foundation.Displays.UI.MenuItem[]itemsItems to populate page
System.BooleanaddBackTrue to add a back item

ShowCurrentPage()

Show the current page

View Source
Declaration
protected void ShowCurrentPage()

GetItemText(MenuItem, bool)

Get the text for a menu item

View Source
Declaration
protected string GetItemText(MenuItem item, bool isSelected)
Returns

System.String: The item text

Parameters
TypeNameDescription
Meadow.Foundation.Displays.UI.MenuItemitemThe menu item
System.BooleanisSelectedIs the menu selected

UpdateCurrentMenuPage()

Updates the currentMenuPage based on the current navigation depth

View Source
Declaration
protected void UpdateCurrentMenuPage()

Next()

Next input - navigates down/forward in the list of items

View Source
Declaration
public bool Next()
Returns

System.Boolean: True if successful, false in menu is disabled### Previous() Previous input - navigates up/back in the list of items

View Source
Declaration
public bool Previous()
Returns

System.Boolean: True if successful, false in menu is disabled### Back() Back input - navigates back in the navigation stack

View Source
Declaration
public bool Back()
Returns

System.Boolean: True if successful, false in menu is disabled### Select() Select input - selects the current item

View Source
Declaration
public bool Select()
Returns

System.Boolean: True if successful, false in menu is disabled### Refresh() Refresh / redraw the menu

View Source
Declaration
public void Refresh()

UpdateItemValue(string, object)

Update menu item value

View Source
Declaration
public void UpdateItemValue(string id, object value)
Parameters
TypeNameDescription
System.StringidItem id
System.ObjectvalueNew value

UpdateItemValue(Hashtable)

Update menu item value

View Source
Declaration
public void UpdateItemValue(Hashtable values)
Parameters
TypeNameDescription
System.Collections.HashtablevaluesValues for all items

Events

Selected

Raised when the menu receives a selected input

View Source
Declaration
public event MenuSelectedHandler Selected
Event Type

Meadow.Foundation.Displays.UI.MenuSelectedHandler

ValueChanged

Raised when a value changes

View Source
Declaration
public event ValueChangedHandler ValueChanged
Event Type

Meadow.Foundation.Displays.UI.ValueChangedHandler

Exited

Raised when the user exits the menu

View Source
Declaration
public event EventHandler? Exited
Event Type

System.EventHandler