G4P GUI Builder  4.4
Visual GUI designer for the G4P v4.3.1 library
 All Classes Namespaces Functions Variables
g4p.tool.controls.NameGen Class Reference

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
 

Detailed Description

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.

Author
Peter Lager

Member Function Documentation

String g4p.tool.controls.NameGen.getNext ( String  name)

Get the next available name-number combination and add it to the reserved list.

Parameters
name
Returns
boolean g4p.tool.controls.NameGen.used ( String  name)

See if a name is reserved

Parameters
name
Returns

The documentation for this class was generated from the following file: