| org.wings.template.PropertyManager
All known Subclasses: org.wings.template.propertymanagers.DefaultPropertyManager,
PropertyManager | public interface PropertyManager (Code) | | Property Manager responsible to handle inline attributes in template layouts for specific component classes.
Besides the dyanmic layout managers components can also be layouted inside the
org.wings.STemplateLayout s.
In your template files you can use the <object name="aConstraintName"></object>
to place specific components inside this template i.e. like panel.add(new SLabel("a label"), "aConstraintName")); .
The template layout mechanism is able to inline set properties of the arranged component inside the template.
This feature can be very useful if i.e. a web developer is soley responsible for the whole application Look & Feel.
Depending on the type of the arranged component he can modify different visual properties (i.e. background color,
display text, etc.) just by modifying the template file.
I.e. let's assume you are placing the mentioned label oject in you template file. The the web designer can
overwrite the components background, display text, etc. by modifying his object inclusion tag to
<object name="aConstraintName" background="#ff0000" text="new text"></object>
author: Armin Haaf |
getSupportedClasses | public Class[] getSupportedClasses()(Code) | | Describe getSupportedClasses method here.
a Class[] value |
setProperty | public void setProperty(SComponent comp, String name, String value)(Code) | | Describe setProperty method here.
Parameters: comp - a SComponent value Parameters: name - a String value Parameters: value - a String value |
|
|