Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1388

Introduce @PropertyLayout(columnOrder=...) to make order of properties (when shown in tables) more predictable.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.12.1
    • None
    • None

    Description

      At the moment it can be hard to predict, because the BS3Grid is traversed by type, eg:

          private void traverseCols(final Grid.Visitor visitor, final BS3Row bs3Row) {
              final BS3Grid.Visitor bs3Visitor = asBs3Visitor(visitor);
              final List<BS3RowContent> cols = bs3Row.getCols();
              for (BS3RowContent rowContent : Lists.newArrayList(cols)) {
                  rowContent.setOwner(bs3Row);
                  if(rowContent instanceof BS3Col) {
                      final BS3Col bs3Col = (BS3Col) rowContent;
                      bs3Visitor.preVisit(bs3Col);
                      bs3Visitor.visit(bs3Col);
                      traverseDomainObject(bs3Col, visitor);
                      traverseTabGroups(bs3Col, visitor);
                      traverseActions(bs3Col, visitor);
                      traverseFieldSets(bs3Col, visitor);
                      traverseCollections(bs3Col, visitor);
                      traverseRows(bs3Col, visitor);
                      bs3Visitor.postVisit(bs3Col);
                  } else if (rowContent instanceof BS3ClearFix) {
                      final BS3ClearFix bs3ClearFix = (BS3ClearFix) rowContent;
                      bs3Visitor.visit(bs3ClearFix);
                  } else {
                      throw new IllegalStateException(
                              "Unrecognized implementation of BS3RowContent, " + rowContent);
                  }
              }
          }
      

      Instead, if it were traversed by element order, then the ordering of properties would be more predictable.

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: