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

Dan Haywood updated ISIS-1388:
------------------------------
    Fix Version/s:     (was: 2.5.0)
                   1.20.0

> 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: Core
>    Affects Versions: 1.12.1
>            Reporter: Dan Haywood
>            Priority: Major
>             Fix For: 1.20.0
>
>
> 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
(v7.6.3#76005)

Reply via email to