◆ afterCompose()
void org.turro.financials.handshake.HandshakeDocControl.afterCompose |
( |
| ) |
|
Definition at line 48 of file HandshakeDocControl.java.
54 setImage(Images.getImage(
"handshake"));
56 onClick =
new EventListener() {
58 public void onEvent(Event event)
throws Exception {
60 if(handshake !=
null) {
61 ElephantResponse er = HandshakeUtil.sendDocument(document);
62 if(ElephantResponse.isCorrect(er)) {
63 HandshakeStatus status = HandshakeStatus.getStatus(er);
64 Clients.showNotification(er.message +
": " + er.code);
66 SystemLogger.getInstance().doLog(SystemLogType.LOG_INFO, document,
"sent",
"Handshake");
68 Clients.showNotification(
"Handshake server not found");
71 Events.postEvent(
new Event(Events.ON_CHANGE, HandshakeDocControl.this));
74 addEventListener(Events.ON_CLICK, onClick);
ContractHandshake getContractHandshake()
DocumentDefinition getDocumentDefinition()
◆ setDocument()
void org.turro.financials.handshake.HandshakeDocControl.setDocument |
( |
Document |
document | ) |
|
The documentation for this class was generated from the following file: