mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 19:57:36 +08:00
PL-8968 Cannot disable DataGrid.Editor listeners
This commit is contained in:
parent
a9158d2de8
commit
ef89ad7e32
@ -987,7 +987,7 @@ public class WebDataGrid<E extends Entity> extends WebAbstractComponent<CubaGrid
|
||||
|
||||
@Override
|
||||
public void removeEditorCloseListener(EditorCloseListener listener) {
|
||||
getEventRouter().addListener(EditorCloseListener.class, listener);
|
||||
getEventRouter().removeListener(EditorCloseListener.class, listener);
|
||||
|
||||
if (!getEventRouter().hasListeners(EditorCloseListener.class)) {
|
||||
component.removeEditorCloseListener(editorCloseListener);
|
||||
@ -1010,7 +1010,7 @@ public class WebDataGrid<E extends Entity> extends WebAbstractComponent<CubaGrid
|
||||
|
||||
@Override
|
||||
public void removeEditorPreCommitListener(EditorPreCommitListener listener) {
|
||||
getEventRouter().addListener(EditorPreCommitListener.class, listener);
|
||||
getEventRouter().removeListener(EditorPreCommitListener.class, listener);
|
||||
|
||||
if (!getEventRouter().hasListeners(EditorPreCommitListener.class)) {
|
||||
component.removeEditorPreCommitListener(editorPreCommitListener);
|
||||
@ -1033,7 +1033,7 @@ public class WebDataGrid<E extends Entity> extends WebAbstractComponent<CubaGrid
|
||||
|
||||
@Override
|
||||
public void removeEditorPostCommitListener(EditorPostCommitListener listener) {
|
||||
getEventRouter().addListener(EditorPostCommitListener.class, listener);
|
||||
getEventRouter().removeListener(EditorPostCommitListener.class, listener);
|
||||
|
||||
if (!getEventRouter().hasListeners(EditorPostCommitListener.class)) {
|
||||
component.removeEditorPostCommitListener(editorPostCommitListener);
|
||||
|
Loading…
Reference in New Issue
Block a user