toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.external
/
TelemetryMenu
/
EnumOption
Enum
Option
open
class
EnumOption
:
TelemetryMenu.OptionElement
A set of menu items that is backed by an Enum.
Members
Constructors
Enum
Option
Link copied to clipboard
constructor
(
@
NonNull
name
:
String
,
@
NonNull
e
:
Array
<
Enum
>
)
Create a new EnumOption.
constructor
(
@
NonNull
name
:
String
,
@
NonNull
e
:
Array
<
Enum
>
,
@
NonNull
def
:
Enum
)
Create a new EnumOption.
Properties
e
Link copied to clipboard
@
NonNull
protected
open
var
e
:
Array
<
Enum
>
idx
Link copied to clipboard
protected
open
var
idx
:
Int
name
Link copied to clipboard
@
NonNull
protected
open
var
name
:
String
Functions
get
Display
Text
Link copied to clipboard
@
NonNull
protected
open
fun
getDisplayText
(
)
:
String
get
Value
Link copied to clipboard
@
NonNull
open
fun
getValue
(
)
:
Enum
on
Click
Link copied to clipboard
open
fun
onClick
(
)
Override this to get notified when the element is clicked
on
Left
Input
Link copied to clipboard
open
fun
onLeftInput
(
)
Override this to get notified when the element gets a "left edit" input
on
Right
Input
Link copied to clipboard
open
fun
onRightInput
(
)
Override this to get notified when the element gets a "right edit" input
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
)