-
Enhancement
-
Resolution: Unresolved
-
P5
-
None
-
5.0
-
x86
-
windows_2000
A DESCRIPTION OF THE REQUEST :
Synth has an excellent descriptive way to generate L&F. It would be good if there was a way to refer to custom properties set in the component using JComponent->putClient Property. e.g., a REQUIRED property in a textfield can be used to decorated the component by coloring the background to a different color. This is similar to per instance states like ENABLED, SELECTED etc.
JUSTIFICATION :
I feel, this would add to the value of the Synth module.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Some where in code: mytextfield.putClientProperty("REQUIRED", true);
Synth L&F supports either a state of property based style which is automatically used as the new style for this textfield.
ACTUAL -
There is no way to use custom properties in Synth's XML.
CUSTOMER SUBMITTED WORKAROUND :
Implement the L&F using code.
Synth has an excellent descriptive way to generate L&F. It would be good if there was a way to refer to custom properties set in the component using JComponent->putClient Property. e.g., a REQUIRED property in a textfield can be used to decorated the component by coloring the background to a different color. This is similar to per instance states like ENABLED, SELECTED etc.
JUSTIFICATION :
I feel, this would add to the value of the Synth module.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Some where in code: mytextfield.putClientProperty("REQUIRED", true);
Synth L&F supports either a state of property based style which is automatically used as the new style for this textfield.
ACTUAL -
There is no way to use custom properties in Synth's XML.
CUSTOMER SUBMITTED WORKAROUND :
Implement the L&F using code.