org.wings.template
Interface PropertyManager

All Known Implementing Classes:
DefaultPropertyManager, SAbstractButtonPropertyManager, SAbstractIconTextCompoundPropertyManager, SComponentPropertyManager, SFileChooserPropertyManager, SLabelPropertyManager, SListPropertyManager, STablePropertyManager, STextAreaPropertyManager, STextFieldPropertyManager

public interface PropertyManager

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 STemplateLayouts. 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

Method Summary
 Class[] getSupportedClasses()
          Describe getSupportedClasses method here.
 void setProperty(SComponent comp, String name, String value)
          Describe setProperty method here.
 

Method Detail

setProperty

void setProperty(SComponent comp,
                 String name,
                 String value)
Describe setProperty method here.

Parameters:
comp - a SComponent value
name - a String value
value - a String value

getSupportedClasses

Class[] getSupportedClasses()
Describe getSupportedClasses method here.

Returns:
a Class[] value


wingS Swings ;-)