◆ addFlow()
void org.turro.financials.contract.ContractFlowTabbox.addFlow |
( |
final ContractFlow |
contractFlow | ) |
|
Definition at line 57 of file ContractFlowTabbox.java.
62 new InputField(
"Document model", null, null, 0) {
64 protected HtmlBasedComponent createEditor() {
65 DocumentDefinitionListbox ddl = new DocumentDefinitionListbox(contract.getContractDefinition());
66 ddl.setMold(
"select");
67 if(contractFlow != null) {
68 ddl.setObjectValue(contractFlow.getDocumentDefinition());
73 new InputField(
"Description", contractFlow ==
null ?
"" : contractFlow.getDescription(),
null, 0)
76 public Object execute(Context context) {
77 InputField[] fields = (InputField[]) context.get(
"fields");
78 if(fields.length > 0) {
79 String description =
null;
80 DocumentDefinition documentDefinition =
null;
81 for(InputField f : fields) {
82 if(
"Description".equals(f.getLabel())) {
83 description = (String) f.getValue();
84 }
else if(
"Document model".equals(f.getLabel())) {
85 documentDefinition = (DocumentDefinition) f.getValue();
88 if(!Strings.isBlank(description) && documentDefinition !=
null) {
89 if(contractFlow ==
null) {
90 ContractFlow cf =
new ContractFlow();
91 cf.setDescription(description);
92 cf.setDocumentDefinition(documentDefinition);
93 cf.setContract(contract);
96 contractFlow.setDescription(description);
97 contractFlow.setDocumentDefinition(documentDefinition);
Set< ContractFlow > getContractFlows()
◆ setContract()
void org.turro.financials.contract.ContractFlowTabbox.setContract |
( |
Contract |
contract | ) |
|
The documentation for this class was generated from the following file: