|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.output.VariableManager
While compiling this class makes sure we keep names unique and we have a full list of all the widgets to 'define' as class variables.
Field Summary | |
static int |
METHOD
|
static int |
VARIABLE
|
Constructor Summary | |
VariableManager()
|
Method Summary | |
void |
add(String type,
String name)
Convenience method to add a variable. |
void |
add(String type,
String name,
String initValue)
Add a variable to the global list of variables. |
static String |
correctName(String in)
|
String |
getUnique(int type,
String base)
Create a variable name that has not been used before starting with the base name. |
String |
getUnique(String name)
Convenience method to get a variable name. |
String |
getVariableLine(String key)
Retrieve the contents of one line from the list of variables. |
Enumeration |
getVariableLineKeys()
return an emumeraion for all java widget names defined as class members. |
boolean |
isUnique(int type,
String name)
Checks if a name has allready been taken. |
boolean |
isUnique(String name)
Convenience method to check a variable. |
void |
registerName(int type,
String name)
Registers the name to be in use |
void |
registerName(String name)
Convenience method to register a variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int METHOD
public static final int VARIABLE
Constructor Detail |
public VariableManager()
Method Detail |
public void add(String type, String name, String initValue)
type
- The type in the form of the classname. JLabel, Checkbox etc .name
- the name of the variable. myBytton for example. (does auto registering!)initValue
- is the initialising stuff for the variable.public void add(String type, String name)
public void registerName(int type, String name)
public void registerName(String name)
public boolean isUnique(int type, String name)
public boolean isUnique(String name)
public String getUnique(int type, String base)
type
- The type of a variable, a method or variable.base
- The starting part of the name. A number will be appended to this.
public String getUnique(String name)
public String getVariableLine(String key)
key
- is the type of java widget to get the line from.
public Enumeration getVariableLineKeys()
public static String correctName(String in)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |