Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable buffered view and auto scroll in timestamp refresh
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
- Loading branch information
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.../src/main/java/org/eclipse/kapua/app/console/module/api/client/ui/grid/KapuaTreeGrid.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2020 Eurotech and/or its affiliates and others | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.app.console.module.api.client.ui.grid; | ||
|
||
import com.extjs.gxt.ui.client.data.ModelData; | ||
import com.extjs.gxt.ui.client.store.TreeStore; | ||
import com.extjs.gxt.ui.client.widget.grid.ColumnModel; | ||
import com.extjs.gxt.ui.client.widget.treegrid.TreeGrid; | ||
|
||
public class KapuaTreeGrid<M extends ModelData> extends TreeGrid<M> { | ||
|
||
public KapuaTreeGrid(TreeStore store, ColumnModel cm) { | ||
super(store, cm); | ||
setView(new KapuaTreeGridView()); | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
.../main/java/org/eclipse/kapua/app/console/module/api/client/ui/grid/KapuaTreeGridView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2020 Eurotech and/or its affiliates and others | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.app.console.module.api.client.ui.grid; | ||
|
||
import com.extjs.gxt.ui.client.widget.treegrid.TreeGridView; | ||
|
||
public class KapuaTreeGridView extends TreeGridView { | ||
|
||
public KapuaTreeGridView() { | ||
super(); | ||
preventScrollToTopOnRefresh = true; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters