Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@94606 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
faff459a2c
commit
576ac55502
|
@ -157,7 +157,16 @@ public class TemplateApplyPanel extends FramedPanel {
|
||||||
loader.addLoadHandler(new LoadResultListStoreBinding<ListLoadConfig, TemplateData, ListLoadResult<TemplateData>>(
|
loader.addLoadHandler(new LoadResultListStoreBinding<ListLoadConfig, TemplateData, ListLoadResult<TemplateData>>(
|
||||||
store) {
|
store) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
SelectHandler sh = new SelectHandler() {
|
||||||
|
public void onSelect(SelectEvent event) {
|
||||||
|
loader.load();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
btnReload.addSelectHandler(sh);
|
||||||
|
|
||||||
grid = new Grid<TemplateData>(store, cm) {
|
grid = new Grid<TemplateData>(store, cm) {
|
||||||
@Override
|
@Override
|
||||||
protected void onAfterFirstAttach() {
|
protected void onAfterFirstAttach() {
|
||||||
|
@ -183,7 +192,10 @@ public class TemplateApplyPanel extends FramedPanel {
|
||||||
grid.setColumnReordering(true);
|
grid.setColumnReordering(true);
|
||||||
grid.setColumnResize(true);
|
grid.setColumnResize(true);
|
||||||
grid.getView().setAutoExpandColumn(descriptionCol);
|
grid.getView().setAutoExpandColumn(descriptionCol);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ToolBar toolBar = new ToolBar();
|
ToolBar toolBar = new ToolBar();
|
||||||
toolBar.add(grid);
|
toolBar.add(grid);
|
||||||
toolBar.addStyleName(ThemeStyles.getStyle().borderTop());
|
toolBar.addStyleName(ThemeStyles.getStyle().borderTop());
|
||||||
|
|
|
@ -156,7 +156,15 @@ public class TemplateDeletePanel extends FramedPanel {
|
||||||
loader.addLoadHandler(new LoadResultListStoreBinding<ListLoadConfig, TemplateData, ListLoadResult<TemplateData>>(
|
loader.addLoadHandler(new LoadResultListStoreBinding<ListLoadConfig, TemplateData, ListLoadResult<TemplateData>>(
|
||||||
store) {
|
store) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
SelectHandler sh = new SelectHandler() {
|
||||||
|
public void onSelect(SelectEvent event) {
|
||||||
|
loader.load();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
btnReload.addSelectHandler(sh);
|
||||||
|
|
||||||
grid = new Grid<TemplateData>(store, cm) {
|
grid = new Grid<TemplateData>(store, cm) {
|
||||||
@Override
|
@Override
|
||||||
protected void onAfterFirstAttach() {
|
protected void onAfterFirstAttach() {
|
||||||
|
|
Loading…
Reference in New Issue