12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- = password
- :author:
- :revnumber:
- :revdate: 2016/03/17 20:48
- :relfileprefix: ../../../
- :imagesdir: ../../..
- ifdef::env-github,env-browser[:outfilesuffix: .adoc]
- == Password Class
- The password class extends TextField and adds the ability to set a mask character.
- It uses the standard 3 constructors as shown in the <<jme3/contributions/tonegodgui/quickstart#,Quick Start Guide>>.
- *Constructor 1:*
- [source,java]
- ----
- /** Parameters:
- * Screen screen,
- * String UID,
- * Vector2f position
- */
-
- Password pw = new Password(screen, “password”, new Vector2f(15, 15));
- ----
- *Constructor 2:*
- [source,java]
- ----
- /** Additional Parameter:
- * Vector2f dimensions */
-
- Password pw = new Password(screen, “password”, new Vector2f(15, 15),
- new Vector2f(150, 25)
- );
- ----
- *Constructor 3:*
- [source,java]
- ----
- /** Additional Parameters:
- * Vector4f resizeBorders,
- * String defaultImg
- */
-
- Password pw = new Password(screen, “password”, new Vector2f(15, 15), new Vector2f(150, 25),
- new Vector4f(3,3,3,3),
- “tonegod/gui/style/def/TextField/text_field_x.png”
- );
- ----
- === Password specific methods:
- [source,java]
- ----
- pw.setMask(char mask);
- pw.getMask(); // Returns mask character as a String
- ----
|