[ 
https://issues.apache.org/jira/browse/ISIS-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andi Huber closed ISIS-1388.
----------------------------
    Resolution: Won't Fix

superseded by TableColumnOrderingService (SPI)

> Introduce @PropertyLayout(columnOrder=...) to make order of properties (when 
> shown in tables) more predictable.  
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-1388
>                 URL: https://issues.apache.org/jira/browse/ISIS-1388
>             Project: Isis
>          Issue Type: New Feature
>          Components: Isis Applib (programming model)
>    Affects Versions: 1.12.1
>            Reporter: Daniel Keir Haywood
>            Priority: Minor
>
> At the moment it can be hard to predict, because the BS3Grid is traversed by 
> type, eg:
> {code}
>     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);
>             }
>         }
>     }
> {code}
> Instead, if it were traversed by element order, then the ordering of 
> properties would be more predictable.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to