toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.external
/
TelemetryMenu
/
MenuElement
Menu
Element
open
class
MenuElement
:
TelemetryMenu.Element
An element of
TelemetryMenu
, representing a "page" in the overall menu display.
Members
Constructors
Menu
Element
Link copied to clipboard
constructor
(
@
NonNull
name
:
String
,
isRoot
:
Boolean
)
Create a new MenuElement; may either be the root menu, or a submenu (set isRoot accordingly)
Functions
add
Child
Link copied to clipboard
open
fun
addChild
(
@
NonNull
child
:
TelemetryMenu.Element
)
Add a child element to this menu (may either be an Option or another menu)
add
Children
Link copied to clipboard
open
fun
addChildren
(
@
NonNull
childrenElems
:
Array
<
TelemetryMenu.Element
>
)
Add multiple child elements to this menu (may either be option, or another menu)
get
Display
Text
Link copied to clipboard
@
NonNull
protected
open
fun
getDisplayText
(
)
:
String
Inherited functions
parent
Link copied to clipboard
@
NonNull
protected
open
fun
parent
(
)
:
TelemetryMenu.MenuElement
set
Parent
Link copied to clipboard
protected
open
fun
setParent
(
@
NonNull
parent
:
TelemetryMenu.MenuElement
)