SortAgent"
From Documentation
(Created page with "{{ZATSEssentialsPageHeader}} This agent can work on <b>''column'', ''listheader''</b>, and <b>''treecol''</b> and mimic to sort a header with specified sorting order. [[File:Za...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ZATSEssentialsPageHeader}} | {{ZATSEssentialsPageHeader}} | ||
+ | |||
+ | |||
+ | __TOC__ | ||
+ | |||
+ | |||
+ | |||
+ | = Sorting = | ||
This agent can work on <b>''column'', ''listheader''</b>, and <b>''treecol''</b> and mimic to sort a header with specified sorting order. | This agent can work on <b>''column'', ''listheader''</b>, and <b>''treecol''</b> and mimic to sort a header with specified sorting order. | ||
Line 16: | Line 23: | ||
</source> | </source> | ||
+ | |||
+ | =Supported Components= | ||
+ | |||
+ | {| border="1" | width="100%" | ||
+ | ! <center>Components</center> | ||
+ | ! <center>Version</center> | ||
+ | ! <center>Note</center> | ||
+ | |- | ||
+ | | Column, Listheader, Treecol | ||
+ | | 5, 6 | ||
+ | | | ||
+ | |} | ||
+ | {{ZATSEssentialsPageHeader}} | ||
{{ZATSEssentialsPageFooter}} | {{ZATSEssentialsPageFooter}} |
Latest revision as of 08:18, 21 June 2012
Sorting
This agent can work on column, listheader, and treecol and mimic to sort a header with specified sorting order.
ComponentAgent sortingColumn = desktop.query("column[label='Author']");
//ascending
sortingColumn.as(SortAgent.class).sort(true);
//descending
sortingColumn.as(SortAgent.class).sort(false);
Supported Components
Column, Listheader, Treecol | 5, 6 |