42 boolean canGetIn =
true;
44 Rows rows = getRows();
46 rows.getChildren().clear();
52 XMLTimeControlUtil tcu =
new XMLTimeControlUtil(Application.getApplication().getConstructor());
53 tcu.setHumanResource(humanResource);
54 List<XMLTimeControl> pending = tcu.getPendingControl();
56 for(XMLTimeControl tc : pending) {
59 final Row row =
new Row();
61 rows.appendChild(row);
63 row.appendChild(
new LabelExtended().setDateTime(tc.getStartTime()));
65 Button select =
new Button(Application.getString(
"lGetOut"));
66 select.setHflex(
"true");
67 select.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
69 public void onEvent(Event event) throws Exception {
70 Events.postEvent(new Event(Events.ON_CHANGE, XMLTaskSelector.this, row.getValue()));
73 row.appendChild(select);
77 final Row rowStart =
new Row();
78 rows.appendChild(rowStart);
80 rowStart.appendChild(
new Label(Application.getString(
"lNow")));
82 Button butStart =
new Button(Application.getString(
"lGetIn"));
83 butStart.setHflex(
"true");
84 butStart.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
86 public void onEvent(Event event) throws Exception {
87 Events.postEvent(new Event(Events.ON_USER, XMLTaskSelector.this, null));
90 rowStart.appendChild(butStart);
93 final Row rowCancel =
new Row();
94 rows.appendChild(rowCancel);
96 rowCancel.appendChild(
new Space());
98 Button butCancel =
new Button(Application.getString(
"lCancel"));
99 butCancel.setHflex(
"true");
100 butCancel.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
102 public void onEvent(Event event) throws Exception {
103 Events.postEvent(new Event(Events.ON_CANCEL, XMLTaskSelector.this));
106 rowCancel.appendChild(butCancel);