◆ afterCompose()
void org.turro.erp.time.HumanResourceSelector.afterCompose |
( |
| ) |
|
Definition at line 43 of file HumanResourceSelector.java.
44 Rows rows = getRows();
46 rows.getChildren().clear();
52 Dao dao =
new ErpPU();
53 List<HumanResource> list = dao.getResultList(
54 "select hr from HumanResource as hr where hr.active = true order by hr.name");
56 for(HumanResource hr : list) {
57 final Row row =
new Row();
59 rows.appendChild(row);
61 row.appendChild(
new Label(hr.getName()));
63 Button select =
new Button(Application.getString(
"lSelect"));
64 select.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
66 public void onEvent(Event event) throws Exception {
67 Events.postEvent(new Event(Events.ON_CHANGE, HumanResourceSelector.this, row.getValue()));
70 row.appendChild(select);
The documentation for this class was generated from the following file: