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


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

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

Instance Method Details

getIdToybox::Lang::Symbol

Get a MenuItem identifier.

Returns:

Since:

  • 3.0.0


14645
14646
# File 'Monkeybrains.rb', line 14645

def getId()
end

getLabelToybox::Lang::String

Get a MenuItem label.

Returns:

Since:

  • 3.0.0


14625
14626
# File 'Monkeybrains.rb', line 14625

def getLabel()
end

getSubLabelToybox::Lang::String

Get a MenuItem substring label.

Returns:

Since:

  • 3.0.0


14639
14640
# File 'Monkeybrains.rb', line 14639

def getSubLabel()
end

setLabel(label) ⇒ Object

Set a MenuItem label.

Parameters:

Since:

  • 3.0.0


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

def setLabel(label)
end

setSubLabel(subLabel) ⇒ Object

Set a MenuItem substring label.

Parameters:

Since:

  • 3.0.0


14632
14633
# File 'Monkeybrains.rb', line 14632

def setSubLabel(subLabel)
end