18 package org.turro.financials.portfolio;
20 import java.util.logging.Level;
21 import java.util.logging.Logger;
22 import org.turro.elephant.context.ElephantContext;
23 import org.turro.financials.document.action.DocumentActionMenu;
24 import org.turro.financials.document.logic.DocumentWrapper;
25 import org.turro.financials.entity.Contract;
26 import org.turro.financials.menu.FinancialsMenu;
27 import org.turro.financials.model.document.PortfolioDisagreement;
28 import org.turro.financials.model.document.PortfolioDisagreementSet;
29 import org.turro.i18n.I_;
30 import org.turro.zkoss.grid.CollectionGrid;
31 import org.turro.zkoss.grid.EditableCell;
32 import org.zkoss.zk.ui.HtmlBasedComponent;
33 import org.zkoss.zk.ui.event.Event;
34 import org.zkoss.zk.ui.event.EventListener;
35 import org.zkoss.zk.ui.event.Events;
36 import org.zkoss.zul.A;
37 import org.zkoss.zul.Row;
75 b.setImage(
"/_zul/images/document.png");
76 b.addEventListener(Events.ON_CLICK,
new EventListener() {
78 public void onEvent(Event event)
throws Exception {
86 return super.createRenderer(editableCell);
93 getParent().appendChild(dam);
98 private void addColumns() {
100 addColumn(
I_.
get(
"Document"), String.class,
"document",
null, 0,
false,
false).setWidth(
"80%");
101 addColumn(
I_.
get(
"Difference"),
"double",
"difference",
null, 2,
false,
false).setWidth(
"20%");
102 }
catch (ClassNotFoundException ex) {
String getDocDescription()
PortfolioDisagreementsGrid()
void initiateRow(Row row, PortfolioDisagreement value)
PortfolioDisagreementsGrid(Contract contract)
boolean isValid(PortfolioDisagreement v)
HtmlBasedComponent createRenderer(EditableCell editableCell)
boolean deleteRow(Row row)
static String get(String msg)
EditableColumn addColumn(String label, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)
void setReadOnly(boolean readOnly)