◆ HandshakeItem()
org.turro.financials.handshake.HandshakeItem.HandshakeItem |
( |
File |
file, |
|
|
Object |
handshake |
|
) |
| |
◆ connect()
void org.turro.financials.handshake.HandshakeItem.connect |
( |
Command |
command | ) |
|
Definition at line 155 of file HandshakeItem.java.
156 if(handshake instanceof HandshakeContract) {
157 HandshakeContract hc = (HandshakeContract) handshake;
158 connectContract(hc, command);
159 }
else if(handshake instanceof HandshakeDocument) {
161 }
else if(handshake instanceof HandshakeProduct) {
162 HandshakeProduct hp = (HandshakeProduct) handshake;
163 connectProduct(hp, command);
◆ create()
boolean org.turro.financials.handshake.HandshakeItem.create |
( |
| ) |
|
Definition at line 244 of file HandshakeItem.java.
245 if(handshake instanceof HandshakeContract) {
247 }
else if(handshake instanceof HandshakeDocument) {
248 if(createDocument((HandshakeDocument) handshake))
return true;
249 }
else if(handshake instanceof HandshakeProduct) {
250 HandshakeProduct hp = (HandshakeProduct) handshake;
251 if(createProduct(hp))
return true;
◆ deleteFile()
boolean org.turro.financials.handshake.HandshakeItem.deleteFile |
( |
| ) |
|
◆ getConnectImage()
String org.turro.financials.handshake.HandshakeItem.getConnectImage |
( |
| ) |
|
Definition at line 129 of file HandshakeItem.java.
130 if(handshake instanceof HandshakeContract) {
131 return Images.getImage(
"contract");
132 }
else if(handshake instanceof HandshakeDocument) {
134 }
else if(handshake instanceof HandshakeProduct) {
135 return Images.getImage(
"product");
◆ getCreateImage()
String org.turro.financials.handshake.HandshakeItem.getCreateImage |
( |
| ) |
|
Definition at line 140 of file HandshakeItem.java.
141 if(handshake instanceof HandshakeContract) {
143 }
else if(handshake instanceof HandshakeDocument) {
144 return Images.getImage(
"document_new");
145 }
else if(handshake instanceof HandshakeProduct) {
146 return Images.getImage(
"product_new");
◆ getDescription()
String org.turro.financials.handshake.HandshakeItem.getDescription |
( |
| ) |
|
Definition at line 83 of file HandshakeItem.java.
84 if(handshake instanceof HandshakeContract) {
85 HandshakeContract hc = (HandshakeContract) handshake;
87 }
else if(handshake instanceof HandshakeDocument) {
88 HandshakeDocument hd = (HandshakeDocument) handshake;
89 return hd.documentName +
" " + hd.documentNumber +
", " + DateFormats.format(hd.documentDate,
true);
90 }
else if(handshake instanceof HandshakeProduct) {
91 HandshakeProduct hp = (HandshakeProduct) handshake;
92 return hp.description;
◆ getFile()
File org.turro.financials.handshake.HandshakeItem.getFile |
( |
| ) |
|
◆ getFrom()
String org.turro.financials.handshake.HandshakeItem.getFrom |
( |
| ) |
|
Definition at line 68 of file HandshakeItem.java.
69 if(handshake instanceof HandshakeContract) {
70 HandshakeContract hc = (HandshakeContract) handshake;
72 }
else if(handshake instanceof HandshakeDocument) {
73 HandshakeDocument hd = (HandshakeDocument) handshake;
74 HandshakeContract hc = hd.contract;
76 }
else if(handshake instanceof HandshakeProduct) {
77 HandshakeProduct hp = (HandshakeProduct) handshake;
◆ getStatus()
Definition at line 97 of file HandshakeItem.java.
98 if(handshake instanceof HandshakeContract) {
99 HandshakeContract hc = (HandshakeContract) handshake;
100 Contract contract = HandshakeContract.getContractFromHandshake(hc);
101 if(contract !=
null) {
102 return HandshakeItemStatus.HSITEM_EXISTS;
104 return HandshakeItemStatus.HSITEM_NEW;
106 }
else if(handshake instanceof HandshakeDocument) {
107 HandshakeDocument hd = (HandshakeDocument) handshake;
108 Contract contract = HandshakeContract.getContractFromHandshake(hd.contract);
109 if(contract !=
null) {
110 Document document = HandshakeDocument.getDocumentFromHandshake(contract, hd);
111 if(document !=
null) {
112 return HandshakeItemStatus.HSITEM_EXISTS;
114 return HandshakeItemStatus.HSITEM_NEW;
117 }
else if(handshake instanceof HandshakeProduct) {
118 HandshakeProduct hp = (HandshakeProduct) handshake;
119 Product product = HandshakeProduct.getProductFromHandshake(hp);
120 if(product !=
null) {
121 return HandshakeItemStatus.HSITEM_EXISTS;
123 return HandshakeItemStatus.HSITEM_NEW;
The documentation for this class was generated from the following file: