Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@98733 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
bcb3aa31da
commit
62754ee4c2
|
@ -93,6 +93,7 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
|||
protected TreeStore<BaseDto> store;
|
||||
protected TreeGrid<BaseDto> tree;
|
||||
|
||||
|
||||
class KeyProvider implements ModelKeyProvider<BaseDto> {
|
||||
@Override
|
||||
public String getKey(BaseDto item) {
|
||||
|
@ -100,6 +101,10 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param eventBus
|
||||
*/
|
||||
public ValidationsTasksPanel(EventBus eventBus) {
|
||||
super();
|
||||
Log.debug("ValidationsTasksPanel");
|
||||
|
@ -110,6 +115,11 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param trId
|
||||
* @param eventBus
|
||||
*/
|
||||
public ValidationsTasksPanel(TRId trId, EventBus eventBus) {
|
||||
super();
|
||||
Log.debug("ValidationsTasksPanel: " + trId);
|
||||
|
@ -144,7 +154,6 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
|||
con = new VerticalLayoutContainer();
|
||||
con.setScrollMode(ScrollMode.AUTO);
|
||||
|
||||
|
||||
store = new TreeStore<BaseDto>(new KeyProvider());
|
||||
|
||||
FolderDto root = gen.getRoot();
|
||||
|
@ -169,8 +178,6 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
ColumnConfig<BaseDto, Boolean> cc2 = new ColumnConfig<BaseDto, Boolean>(
|
||||
new ValueProvider<BaseDto, Boolean>() {
|
||||
|
||||
|
@ -199,15 +206,6 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
|||
validationButton.setFalseIcon(ResourceBundle.INSTANCE.error());
|
||||
validationButton.setTrueTitle("Valid");
|
||||
validationButton.setFalseTitle("Error");
|
||||
/*
|
||||
* validationButton.addSelectHandler(new SelectHandler() {
|
||||
*
|
||||
* @Override public void onSelect(SelectEvent event) {
|
||||
* Log.debug("Button ValidationCell Pressed"); Context context =
|
||||
* event.getContext(); requestSolution(context);
|
||||
*
|
||||
* } });
|
||||
*/
|
||||
|
||||
cc2.setCell(validationButton);
|
||||
|
||||
|
@ -419,7 +417,6 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
|||
|
||||
});
|
||||
|
||||
|
||||
tree.setContextMenu(contextMenu);
|
||||
|
||||
tree.addBeforeShowContextMenuHandler(new BeforeShowContextMenuHandler() {
|
||||
|
@ -606,8 +603,6 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// @SuppressWarnings("rawtypes")
|
||||
// protected AbstractCell actionButton = new AbstractCell<Boolean>() {
|
||||
//
|
||||
|
@ -664,4 +659,14 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
|||
// }
|
||||
// };
|
||||
|
||||
/*
|
||||
* validationButton.addSelectHandler(new SelectHandler() {
|
||||
*
|
||||
* @Override public void onSelect(SelectEvent event) {
|
||||
* Log.debug("Button ValidationCell Pressed"); Context context =
|
||||
* event.getContext(); requestSolution(context);
|
||||
*
|
||||
* } });
|
||||
*/
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue