Replaced EventListener by XulElement#setContext
* This listener listened to "onRightClick" (over a task) events for showing the contextual menu, but now we have moved to XulElement#setContext as it does all event-handling work for us FEA: ItEr02S03MigracionZK5
This commit is contained in:
parent
69bec5175b
commit
eb5407ae28
1 changed files with 1 additions and 11 deletions
|
|
@ -175,17 +175,7 @@ public class TaskList extends XulElement implements AfterCompose {
|
|||
}
|
||||
|
||||
private void addContextMenu(final TaskComponent taskComponent) {
|
||||
taskComponent.addEventListener("onRightClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
try {
|
||||
getContextMenuFor(taskComponent).open(taskComponent);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
});
|
||||
taskComponent.setContext(getContextMenuFor(taskComponent));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue