19 package org.turro.financials.handshake;
21 import org.turro.elephant.util.Images;
22 import org.turro.financials.entity.ContractHandshake;
23 import org.turro.financials.entity.Document;
24 import org.turro.http.ElephantResponse;
25 import org.turro.log.SystemLogType;
26 import org.turro.log.SystemLogger;
27 import org.zkoss.zk.ui.event.Event;
28 import org.zkoss.zk.ui.event.EventListener;
29 import org.zkoss.zk.ui.event.Events;
30 import org.zkoss.zk.ui.ext.AfterCompose;
31 import org.zkoss.zk.ui.util.Clients;
32 import org.zkoss.zul.Toolbarbutton;
41 private EventListener onClick;
44 this.document = document;
56 onClick =
new EventListener() {
58 public void onEvent(Event event)
throws Exception {
60 if(handshake !=
null) {
64 Clients.showNotification(er.
message +
": " + er.
code);
68 Clients.showNotification(
"Handshake server not found");
74 addEventListener(Events.ON_CLICK, onClick);
static String getImage(String image)
ContractHandshake getContractHandshake()
DocumentDefinition getDocumentDefinition()
void setDocument(Document document)
static ElephantResponse sendDocument(Document document)
static boolean isCorrect(ElephantResponse er)
static ISystemLogger getInstance()
static HandshakeStatus getStatus(ElephantResponse er)
void doLog(SystemLogType type, Object entity, String comment, Serializable data)