Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6358062

Req for per instance property support in Synth XML.

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs

      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.

        Attachments

          Activity

            People

            • Assignee:
              peterz Peter Zhelezniakov (Inactive)
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: