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

Req for per instance property support in Synth XML.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • 5.0
    • client-libs

      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.

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

              Created:
              Updated:
              Imported:
              Indexed: