Class: Toybox::WatchUi::MenuItem

Inherits:
Lang::Object show all

Overview

A representation of a menu item in a Menu2.

A MenuItem is a element of a Menu2 View that represents one of the options in the menu. A MenuItem can be added to a Menu2 using the addItem() method.

See Also:

Since:

  • 3.0.0

Constant Summary

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(label, subLabel, identifier, options) ⇒ MenuItem

Returns a new instance of MenuItem

Parameters:

Since:

  • 3.0.0


14586
14587
# File 'Monkeybrains.rb', line 14586

def initialize(label, subLabel, identifier, options)
end

Instance Method Details

getIdToybox::Lang::Symbol

Get a MenuItem identifier.

Returns:

Since:

  • 3.0.0


14618
14619
# File 'Monkeybrains.rb', line 14618

def getId()
end

getLabelToybox::Lang::String

Get a MenuItem label.

Returns:

Since:

  • 3.0.0


14598
14599
# File 'Monkeybrains.rb', line 14598

def getLabel()
end

getSubLabelToybox::Lang::String

Get a MenuItem substring label.

Returns:

Since:

  • 3.0.0


14612
14613
# File 'Monkeybrains.rb', line 14612

def getSubLabel()
end

setLabel(label) ⇒ Object

Set a MenuItem label.

Parameters:

Since:

  • 3.0.0


14592
14593
# File 'Monkeybrains.rb', line 14592

def setLabel(label)
end

setSubLabel(subLabel) ⇒ Object

Set a MenuItem substring label.

Parameters:

Since:

  • 3.0.0


14605
14606
# File 'Monkeybrains.rb', line 14605

def setSubLabel(subLabel)
end