Details
-
Type:
Enhancement
-
Status: Open
-
Priority:
P5
-
Resolution: Unresolved
-
Affects Version/s: 5.0
-
Fix Version/s: None
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
CPU:x86
-
OS:windows_2000
Description
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.