Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-1020

Introduce a "Style" enum for compile-time checking of style names

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: wtk
    • Labels:
      None

      Description

      Many places use hard-coded strings for component style names, and a number of which are fairly common ("font", "color", "horizontalAlignment"). It would reduce the possibility of misspelling of these style names if there were an enum for them so that the Java compiler would check spelling instead of finding out at runtime that the style name was misspelled.
      This would involve adding methods to Component.StyleDictionary to deal with the enum as a key.

        Attachments

          Activity

            People

            • Assignee:
              rwhitcomb Roger Whitcomb
              Reporter:
              rwhitcomb Roger Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: