|
G4P GUI Builder
4.4
Visual GUI designer for the G4P v4.3.1 library
|
Public Member Functions | |
| boolean | used (String name) |
| void | add (String name) |
| void | remove (String name) |
| void | reset () |
| String | getNext (String name) |
Static Public Member Functions | |
| static NameGen | instance () |
Private Member Functions | |
| void | addReservedWords () |
Private Attributes | |
| Set< String > | words |
Static Private Attributes | |
| static NameGen | instance |
Singleton class used to create unique names for variables and event handlers.
Prevents the use of Java keywords and many of the methods defined by Processing.
| String g4p.tool.controls.NameGen.getNext | ( | String | name | ) |
Get the next available name-number combination and add it to the reserved list.
| name |
| boolean g4p.tool.controls.NameGen.used | ( | String | name | ) |
See if a name is reserved
| name |