swingx
  1. swingx
  2. SWINGX-1434

LocalizableStringValue: support common prefix for lookup keys

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.3
    • Component/s: Renderer
    • Labels:
      None

      Description

      merely for convience, had to manually prefix once too often

      current lookup configuration

      myLookup.put(someObject, prefix + "someUIKey");
      myLookup.put(otherObject, prefix + "otherUIKey");
      sv = new LocalizableStringValue(myLookup);

      folds into

      myLookup.put(someObject, "someUIKey")
      myLookup.put(otherObject, "otherUIKey");
      sv = new LocalizableStringValue(myLookup, prefix);

        Issue Links

          Activity

          Hide
          kleopatra added a comment -
          • added constructors with prefix
          • changed getStringValue to use prefix if not null

          committed as of revision #3995

          Show
          kleopatra added a comment - added constructors with prefix changed getStringValue to use prefix if not null committed as of revision #3995

            People

            • Assignee:
              kleopatra
              Reporter:
              kleopatra
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: