|
@@ -1,10 +1,6 @@
|
|
= textfield
|
|
= textfield
|
|
-:author:
|
|
|
|
-:revnumber:
|
|
|
|
-:revdate: 2016/03/17 20:48
|
|
|
|
-:relfileprefix: ../../../
|
|
|
|
-:imagesdir: ../../..
|
|
|
|
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
+:revnumber: 2.0
|
|
|
|
+:revdate: 2020/07/25
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -28,7 +24,7 @@ Textfields are single line text input fields, that provide the following functio
|
|
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.
|
|
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>>.
|
|
|
|
|
|
+TextFields provide the standard 3 constructors as shown in the xref:gui/tonegodgui/quickstart.adoc[Quick Start Guide].
|
|
|
|
|
|
*Constructor 1:*
|
|
*Constructor 1:*
|
|
|
|
|
|
@@ -40,8 +36,8 @@ TextFields provide the standard 3 constructors as shown in the <<jme3/contributi
|
|
* String UID,
|
|
* String UID,
|
|
* Vector2f position
|
|
* Vector2f position
|
|
*/
|
|
*/
|
|
-
|
|
|
|
-TextField text = new TextField(screen, “text”, new Vector2f(15, 15));
|
|
|
|
|
|
+
|
|
|
|
+TextField text = new TextField(screen, "text", new Vector2f(15, 15));
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
@@ -52,8 +48,8 @@ TextField text = new TextField(screen, “text”, new Vector2f(15, 15));
|
|
|
|
|
|
/** Additional Parameter:
|
|
/** Additional Parameter:
|
|
* Vector2f dimensions */
|
|
* Vector2f dimensions */
|
|
-
|
|
|
|
-TextField text = new TextField(screen, “text”, new Vector2f(15, 15),
|
|
|
|
|
|
+
|
|
|
|
+TextField text = new TextField(screen, "text", new Vector2f(15, 15),
|
|
new Vector2f(150, 25)
|
|
new Vector2f(150, 25)
|
|
);
|
|
);
|
|
|
|
|
|
@@ -68,10 +64,10 @@ TextField text = new TextField(screen, “text”, new Vector2f(15, 15),
|
|
* Vector4f resizeBorders,
|
|
* Vector4f resizeBorders,
|
|
* String defaultImg
|
|
* String defaultImg
|
|
*/
|
|
*/
|
|
-
|
|
|
|
-TextField text = new TextField(screen, “text”, new Vector2f(15, 15), new Vector2f(150, 25),
|
|
|
|
|
|
+
|
|
|
|
+TextField text = new TextField(screen, "text", new Vector2f(15, 15), new Vector2f(150, 25),
|
|
new Vector4f(3,3,3,3),
|
|
new Vector4f(3,3,3,3),
|
|
- “tonegod/gui/style/def/TextField/text_field_x.png”
|
|
|
|
|
|
+ "tonegod/gui/style/def/TextField/text_field_x.png"
|
|
);
|
|
);
|
|
|
|
|
|
----
|
|
----
|
|
@@ -91,35 +87,35 @@ text.setType(TextField.Type type);
|
|
[cols="2", options="header"]
|
|
[cols="2", options="header"]
|
|
|===
|
|
|===
|
|
|
|
|
|
-a| Rule
|
|
|
|
-a| Description
|
|
|
|
|
|
+a| Rule
|
|
|
|
+a| Description
|
|
|
|
|
|
-a| Type.DEFAULT
|
|
|
|
-a| Accept all characters
|
|
|
|
|
|
+a| Type.DEFAULT
|
|
|
|
+a| Accept all characters
|
|
|
|
|
|
-a| Type.ALPHA
|
|
|
|
-a| Accept only lower case, uppercase alpha character + spacebar
|
|
|
|
|
|
+a| Type.ALPHA
|
|
|
|
+a| Accept only lower case, uppercase alpha character + spacebar
|
|
|
|
|
|
-a| Type.ALPHA_NOSPACE
|
|
|
|
-a| Accept only lower case, uppercase alpha character - no spacebar
|
|
|
|
|
|
+a| Type.ALPHA_NOSPACE
|
|
|
|
+a| Accept only lower case, uppercase alpha character - no spacebar
|
|
|
|
|
|
-a| Type.NUMERIC
|
|
|
|
-a| Accept only numeric values + decimal
|
|
|
|
|
|
+a| Type.NUMERIC
|
|
|
|
+a| Accept only numeric values + decimal
|
|
|
|
|
|
-a| Type.ALPHANUMERIC
|
|
|
|
-a| Apply both ALPHA and NUMERIC rules
|
|
|
|
|
|
+a| Type.ALPHANUMERIC
|
|
|
|
+a| Apply both ALPHA and NUMERIC rules
|
|
|
|
|
|
-a| Type.ALPHANUMERIC_NOSPACE
|
|
|
|
-a| Apply both ALPHA_NOSPACE and NUMERIC rules
|
|
|
|
|
|
+a| Type.ALPHANUMERIC_NOSPACE
|
|
|
|
+a| Apply both ALPHA_NOSPACE and NUMERIC rules
|
|
|
|
|
|
-a| Type.EXCLUDE_SPECIAL
|
|
|
|
-a| Exclude all spacial characters
|
|
|
|
|
|
+a| Type.EXCLUDE_SPECIAL
|
|
|
|
+a| Exclude all spacial characters
|
|
|
|
|
|
-a| Type.EXCLUDE_CUSTOM
|
|
|
|
-a| Exclude all user defined character (see below)
|
|
|
|
|
|
+a| Type.EXCLUDE_CUSTOM
|
|
|
|
+a| Exclude all user defined character (see below)
|
|
|
|
|
|
-a| Type.INCLUDE_CUSTOM
|
|
|
|
-a| Accept only user defined characters (see below)
|
|
|
|
|
|
+a| Type.INCLUDE_CUSTOM
|
|
|
|
+a| Accept only user defined characters (see below)
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|