public class PropertyTemplate extends java.lang.Object implements HasProperties
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ACTIVE |
static double |
DEFAULT_SCALE |
static java.lang.String |
DEFAULT_TEXT |
static PropertyList |
myProps |
Constructor and Description |
---|
PropertyTemplate() |
Modifier and Type | Method and Description |
---|---|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
Property |
getProperty(java.lang.String name)
Returns a property associated with a specified path name.
|
double |
getScale() |
PropertyMode |
getScaleMode() |
int |
getStatus() |
java.lang.String |
getText() |
boolean |
isActive() |
static void |
main(java.lang.String[] args) |
void |
setActive(boolean active) |
void |
setScale(double scale) |
void |
setScaleMode(PropertyMode mode) |
void |
setText(java.lang.String text) |
public static final java.lang.String DEFAULT_TEXT
public static final boolean DEFAULT_ACTIVE
public static final double DEFAULT_SCALE
public static PropertyList myProps
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public Property getProperty(java.lang.String name)
HasProperties
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.getProperty
in interface HasProperties
name
- name of the desired property or sub-propertypublic int getStatus()
public java.lang.String getText()
public void setText(java.lang.String text)
public boolean isActive()
public void setActive(boolean active)
public double getScale()
public void setScale(double scale)
public PropertyMode getScaleMode()
public void setScaleMode(PropertyMode mode)
public static void main(java.lang.String[] args)