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...") |
|||
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 | ||
+ | | | ||
+ | |} | ||
{{ZATSEssentialsPageFooter}} | {{ZATSEssentialsPageFooter}} |
Revision as of 03:18, 16 May 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 |