◆ afterCompose()
void org.turro.financials.document.ConceptCombobox.afterCompose |
( |
| ) |
|
◆ formatValue()
static String org.turro.financials.document.ConceptCombobox.formatValue |
( |
String |
value | ) |
|
|
static |
Definition at line 88 of file ConceptCombobox.java.
89 return value ==
null ? null : ((String) value).replaceAll(
"\\n", Chars.nl().toString());
◆ getDocumentDefinition()
DocumentDefinition org.turro.financials.document.ConceptCombobox.getDocumentDefinition |
( |
| ) |
|
◆ getObjectValue()
String org.turro.financials.document.ConceptCombobox.getObjectValue |
( |
| ) |
throws WrongValueException |
◆ getTextFromObject()
String org.turro.financials.document.ConceptCombobox.getTextFromObject |
( |
String |
value | ) |
|
◆ onEvent()
void org.turro.financials.document.ConceptCombobox.onEvent |
( |
Event |
event | ) |
throws Exception |
Definition at line 98 of file ConceptCombobox.java.
100 Collection c = Listeners.cancelListener(
this, Events.ON_BLUR);
101 Messages.info(I_.get(
"Concept")).add(this.
getObjectValue()).show();
102 Listeners.activateListeners(
this, Events.ON_BLUR, c);
104 final Collection c = Listeners.cancelListener(
this, Events.ON_BLUR);
105 InputDialog.getInput(getPage(), I_.get(
"Concept"),
"Description",
106 this.getObjectValue(),
null, 10,
new Command() {
108 public Object execute(Context context) {
109 String value = (String) context.get(
"value");
111 ConceptCombobox.this.setObjectValue(value);
117 public Object execute(Context context) {
118 Listeners.activateListeners(ConceptCombobox.this, Events.ON_BLUR, c);
◆ populateList()
void org.turro.financials.document.ConceptCombobox.populateList |
( |
String |
value, |
|
|
LinkedList |
list, |
|
|
int |
nRows |
|
) |
| |
Reimplemented from org.turro.zkoss.input.GenericCombobox< V >.
Definition at line 57 of file ConceptCombobox.java.
58 Dao dao =
new FinancialsPU();
59 WhereClause wc =
new WhereClause();
60 wc.addClause(
"select distinct concept from DocumentLine as documentLine");
61 wc.addClause(
"where documentLine.document.documentDefinition.id = :id");
62 wc.addNamedValue(
"id", documentDefinition.
getId());
63 wc.addLikeFields(
new String[] {
"documentLine.concept" }, value);
64 wc.addClause(
"order by documentLine.concept");
65 list.addAll(dao.getResultList(wc, nRows));
◆ setDocumentDefinition()
void org.turro.financials.document.ConceptCombobox.setDocumentDefinition |
( |
DocumentDefinition |
documentDefinition | ) |
|
◆ setObjectValue()
void org.turro.financials.document.ConceptCombobox.setObjectValue |
( |
String |
value | ) |
throws WrongValueException |
Definition at line 74 of file ConceptCombobox.java.
75 if(value !=
null && value.contains(
"\n")) {
78 super.setValue(value);
static String formatValue(String value)
The documentation for this class was generated from the following file: