public class PropertyManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static PropertyManager |
get()
Singleton pattern getter
|
Property |
getProperty(int id)
Return a
Property , given its ID. |
Property |
getProperty(java.lang.String name)
Return a
Property , given its name. |
int |
getPropertyIDByName(java.lang.String name)
Return a
Property ID, given its name. |
java.lang.String |
getPropertyTypeString(java.lang.String name)
Returns the type, with the first letter capitalised (for instance, "Int")
of the property, given its name.
|
public static PropertyManager get()
public java.lang.String getPropertyTypeString(java.lang.String name)
name
- public Property getProperty(int id)
Property
, given its ID. This performs the search between all existing GUIelement
s registered in the initialize()
function.
Then returns the first found
.
This method can be used to determine whether one of the existing GUIelement
s even has a Property
with this ID,
which type of element it is, and what is its name.public Property getProperty(java.lang.String name)
Property
, given its name. This performs the search between all existing GUIelement
s registered in the initialize()
function.
Then returns the first found
.
This method can be used to determine whether one of the existing GUIelement
s even has a Property
with this name,
which type of element it is, and what is its ID.public int getPropertyIDByName(java.lang.String name)
Property
ID, given its name. This performs the search between all existing GUIelement
s registered in the initialize()
function.
Then returns the ID of the first matching found
.