You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2017/06/02 13:12:04 UTC
[jira] [Updated] (ISIS-1388) Introduce
@PropertyLayout(columnOrder=...) to make order of properties (when shown in
tables) more predictable.
[ 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: 1.16.0)
1.19.0
The TableColumnOrderingService actually works quite nicely as a different approach to this.
> 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
> Fix For: 1.19.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
(v6.3.15#6346)