Minor update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@101686 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-11-24 10:56:11 +00:00 committed by Giancarlo Panichi
parent eb038e834f
commit 77ef279aad
1 changed files with 18 additions and 14 deletions

View File

@ -5,36 +5,40 @@ import com.sencha.gxt.widget.core.client.grid.LiveGridView;
/** /**
* *
* @author giancarlo * @author giancarlo email: <a
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a> * href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
* *
* @param <M> * @param <M>
*/ */
public class ExtendedLiveGridView<M> extends LiveGridView<M> { public class ExtendedLiveGridView<M> extends LiveGridView<M> {
// TODO bug in gxt3 3.0.0 fixed in future // TODO bug in gxt3 3.0.0 fixed in future
@Override @Override
public void refresh(boolean headerToo) { public void refresh(boolean headerToo) {
preventScrollToTopOnRefresh = true; preventScrollToTopOnRefresh = true;
super.refresh(headerToo); super.refresh(headerToo);
} }
public boolean getPreventScrollToTopOnRefresh(){ public boolean getPreventScrollToTopOnRefresh() {
return preventScrollToTopOnRefresh; return preventScrollToTopOnRefresh;
} }
public void setPreventScrollToTopOnRefresh(boolean prevent) {
public void setPreventScrollToTopOnRefresh(boolean prevent ){ preventScrollToTopOnRefresh = prevent;
preventScrollToTopOnRefresh=prevent;
} }
public ListStore<M> getCacheStore(){ public ListStore<M> getCacheStore() {
return cacheStore; return cacheStore;
} }
public void setCacheStore(ListStore<M> list){ public void setCacheStore(ListStore<M> list) {
cacheStore=list; cacheStore = list;
} }
/*
* Scroll key fixed in 3.1.1
*
*/
} }