|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.inet.html.css.ClassIDGenerator
public class ClassIDGenerator
This class generates and supervises artificial class IDs. The generated class IDs will get their string value at the first time toString is called.
Nested Class Summary | |
---|---|
class |
ClassIDGenerator.ClassID
This class represents an artificial class ID |
Field Summary | |
---|---|
static java.lang.String |
WEBENGINE_PREFIX
the prefix of auto-generated classes of JWebEngine. |
static java.util.regex.Pattern |
WEBENGINE_PREFIX_PATTERN
The matcher to find JWebEngine auto generated Styles on load |
Constructor Summary | |
---|---|
ClassIDGenerator()
|
Method Summary | |
---|---|
void |
generateID(ClassIDGenerator.ClassID classID)
Generates and sets an ID value on a given class ID object |
ClassIDGenerator.ClassID |
getClassID(boolean preset)
Creates a class ID object |
void |
register(int id)
Registers an numeric ID |
void |
register(java.lang.String id)
Registers a new ID. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WEBENGINE_PREFIX
public static final java.util.regex.Pattern WEBENGINE_PREFIX_PATTERN
Constructor Detail |
---|
public ClassIDGenerator()
Method Detail |
---|
public void register(java.lang.String id)
id
- the id to registerpublic void register(int id)
id
- the numeric idpublic void generateID(ClassIDGenerator.ClassID classID)
classID
- the class ID to modifypublic ClassIDGenerator.ClassID getClassID(boolean preset)
preset
- if true, it ID of the classID will be set and fixed, if false the ID will be generated
at the first time toString is called on the ClassID
ClassIDGenerator.ClassID
object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |