◆ afterCompose()
void org.turro.financials.portfolio.PortfolioGrid.afterCompose |
( |
| ) |
|
Definition at line 116 of file PortfolioGrid.java.
117 dam =
new DocumentActionMenu();
118 getParent().appendChild(dam);
◆ count()
void org.turro.financials.portfolio.PortfolioGrid.count |
( |
| ) |
|
Definition at line 87 of file PortfolioGrid.java.
89 AggregateCountMap acm =
new AggregateCountMap();
90 for(Component row :
getRows().getChildren()) {
91 PortfolioItem pi = (PortfolioItem) ((Row)row).getValue();
93 for(WorkflowItem dw : pi.getForward()) {
95 acm.sum(dw.getWorkflow().getDescendant().getName(), pi.getDocument().getTotalAmount());
98 for(WorkflowItem dw : pi.getBackward()) {
100 acm.sum(dw.getWorkflow().getAncestor().getName(), pi.getDocument().getTotalAmount());
105 StringBuilder sb =
new StringBuilder();
106 for(Map.Entry<String, AggregateCountItem> entry : acm.entrySet()) {
107 sb.append(entry.getKey())
109 .append(String.format(
"%.2f (%d)",entry.getValue().getAmount(), entry.getValue().getCount()))
112 Clients.showNotification(sb.toString());
Rows getRows(boolean create)
◆ getFilter()
PortfolioSet org.turro.financials.portfolio.PortfolioGrid.getFilter |
( |
| ) |
|
◆ process()
void org.turro.financials.portfolio.PortfolioGrid.process |
( |
| ) |
|
Definition at line 66 of file PortfolioGrid.java.
68 PortfolioProcess
process =
new PortfolioProcess();
69 for(Component row :
getRows().getChildren()) {
70 PortfolioItem pi = (PortfolioItem) ((Row)row).getValue();
72 for(WorkflowItem dw : pi.getForward()) {
74 process.add(
new PortfolioAction(pi.getDocument(), dw.getWorkflow(),
true, (Row) row));
77 for(WorkflowItem dw : pi.getBackward()) {
79 process.add(
new PortfolioAction(pi.getDocument(), dw.getWorkflow(),
false, (Row) row));
◆ reload()
void org.turro.financials.portfolio.PortfolioGrid.reload |
( |
| ) |
|
◆ setFilterGrid()
void org.turro.financials.portfolio.PortfolioGrid.setFilterGrid |
( |
FilterGrid |
filterGrid | ) |
|
The documentation for this class was generated from the following file: