|
@@ -23,12 +23,14 @@ Textfields are single line text input fields, that provide the following functio
|
|
|
|
|
|
|
|
* Cut & Paste
|
|
* Cut & Paste
|
|
|
|
|
|
|
|
-*NOTE:*+
|
|
|
|
|
-This control is still a work in progress and will be updated as either time permits or issues arise. There is a known issue with the Cut & Paste function as of right now and it has been disabled.+
|
|
|
|
|
-+
|
|
|
|
|
-TextFields provide the standard 3 constructors as shown in the <<jme3/contributions/tonegodgui/quickstart#,Quick Start Guide>>.+
|
|
|
|
|
-+
|
|
|
|
|
-*Constructor 1:*+
|
|
|
|
|
|
|
+[NOTE]
|
|
|
|
|
+====
|
|
|
|
|
+This control is still a work in progress and will be updated as either time permits or issues arise. There is a known issue with the Cut & Paste function as of right now and it has been disabled.
|
|
|
|
|
+====
|
|
|
|
|
+
|
|
|
|
|
+TextFields provide the standard 3 constructors as shown in the <<jme3/contributions/tonegodgui/quickstart#,Quick Start Guide>>.
|
|
|
|
|
+
|
|
|
|
|
+*Constructor 1:*
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -43,7 +45,7 @@ TextField text = new TextField(screen, “text”, new Vector2f(15, 15));
|
|
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
-*Constructor 2:*+
|
|
|
|
|
|
|
+*Constructor 2:*
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -57,7 +59,7 @@ TextField text = new TextField(screen, “text”, new Vector2f(15, 15),
|
|
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
-*Constructor 3:*+
|
|
|
|
|
|
|
+*Constructor 3:*
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -75,6 +77,7 @@ TextField text = new TextField(screen, “text”, new Vector2f(15, 15), new Vec
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Validations & Rules
|
|
=== Validations & Rules
|
|
|
|
|
|
|
|
TextFields can be set to a specific Type using:
|
|
TextFields can be set to a specific Type using:
|
|
@@ -149,6 +152,7 @@ text.setForceLowerCase(boolean forceLowerCase);
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Methods specific to the TextField class:
|
|
=== Methods specific to the TextField class:
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
@@ -169,6 +173,7 @@ text.parseLong();
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Hooks:
|
|
=== Hooks:
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|