swingx
  1. swingx
  2. SWINGX-1304

ColumnHighlightPredicate could take Enum as columns integers

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.3
    • Component/s: Highlighter
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,304

      Description

      From http://forums.java.net/jive/message.jspa?messageID=396995#396995

      I know I'm not the only one to use Enums for the columns definition of a JXTable
      (But I think there is another way to setup the columns in swingx - anyway).
      Having to do ordinal() on each enum value is ugly;

      Could ColumnHighlightPredicate take Enum... and call ordinal() on them
      automatically ?
      I think this could be a good enhancement. Also maybe elsewhere where
      integers/columns are used in the package ?

      Example:
      Before : new ColumnHighlightPredicate(COLUMN_MILESTONE.ordinal(),
      COLUMN_FINISHED.ordinal(), COLUMN_OPEN.ordinal());

      After : new ColumnHighlightPredicate(COLUMN_MILESTONE, COLUMN_FINISHED,
      COLUMN_OPEN);

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: