ItEr35S08CUAsignacionCalendarioLaboralRecursoItEr25S09: Added support to BandboxSearch to set the selected item and add an EventListener to the listbox.
This commit is contained in:
parent
1d3a274431
commit
cb87445679
1 changed files with 9 additions and 1 deletions
|
|
@ -107,8 +107,11 @@ public class BandboxSearch extends HtmlMacroComponent {
|
|||
setSelectedElement(null);
|
||||
}
|
||||
|
||||
private void setSelectedElement(Object obj) {
|
||||
public void setSelectedElement(Object obj) {
|
||||
bandbox.setVariable("selectedElement", obj, true);
|
||||
if (obj != null) {
|
||||
bandbox.setValue(finder.objectToString(obj));
|
||||
}
|
||||
}
|
||||
|
||||
public Object getSelectedElement() {
|
||||
|
|
@ -226,4 +229,9 @@ public class BandboxSearch extends HtmlMacroComponent {
|
|||
return result;
|
||||
}
|
||||
|
||||
public void setListboxEventListener(String event,
|
||||
EventListener listener) {
|
||||
listbox.addEventListener(event, listener);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue