|
@@ -10,10 +10,10 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
== Menu Class
|
|
== Menu Class
|
|
|
|
|
|
|
|
-The Menu class extends ScrollArea as Menu’s can be resizable and scrollable if the behaviors are enabled.+
|
|
|
|
|
-+
|
|
|
|
|
-Menus contain a list of MenuItems, which provide mapping for sub-menus. This implementation of menu’s negates the need for any form of Menu Manager as the Screen, by default, handles delegating Mouse Events and therefore is (in a sense) a Menu Manager. Menus utilize a single text element with separate highlight element, to keep the rendered meshes to count of 3 for any length menu.+
|
|
|
|
|
-+
|
|
|
|
|
|
|
+The Menu class extends ScrollArea as Menu’s can be resizable and scrollable if the behaviors are enabled.
|
|
|
|
|
+
|
|
|
|
|
+Menus contain a list of MenuItems, which provide mapping for sub-menus. This implementation of menu’s negates the need for any form of Menu Manager as the Screen, by default, handles delegating Mouse Events and therefore is (in a sense) a Menu Manager. Menus utilize a single text element with separate highlight element, to keep the rendered meshes to count of 3 for any length menu.
|
|
|
|
|
+
|
|
|
Features:
|
|
Features:
|
|
|
|
|
|
|
|
* Unlimited menu item list
|
|
* Unlimited menu item list
|
|
@@ -25,6 +25,7 @@ Menu utilizes the standard 3 constructors as shown in the <<jme3/contributions/t
|
|
|
* isScrollable – appended to the end of the parameter list in each constructor
|
|
* isScrollable – appended to the end of the parameter list in each constructor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Abstract Event Methods:
|
|
=== Abstract Event Methods:
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
@@ -35,6 +36,7 @@ public void onMenuItemClicked(int index, Object value);
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Methods specific to the Menu Class:
|
|
=== Methods specific to the Menu Class:
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|