209: TDM - Show the resources through a ListView widget
Task-Url: https://support.d4science.org/issues/209 Updated ResourcesListView git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@115202 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
2294a06ba6
commit
df82a1b15a
|
@ -31,6 +31,7 @@ import org.gcube.portlets.user.td.mainboxwidget.client.MainBoxPanel;
|
|||
import org.gcube.portlets.user.td.mapwidget.client.MapWidgetTD;
|
||||
import org.gcube.portlets.user.td.openwidget.client.TDOpen;
|
||||
import org.gcube.portlets.user.td.replacebyexternalwidget.client.ReplaceByExternalTD;
|
||||
import org.gcube.portlets.user.td.resourceswidget.client.ResourcesListViewDialog;
|
||||
import org.gcube.portlets.user.td.rulewidget.client.RuleActiveDialog;
|
||||
import org.gcube.portlets.user.td.rulewidget.client.RuleApplyDialog;
|
||||
import org.gcube.portlets.user.td.rulewidget.client.RuleDeleteDialog;
|
||||
|
@ -977,6 +978,9 @@ public class TabularDataController {
|
|||
case LANGUAGE_IT:
|
||||
changeLanguage("it");
|
||||
break;
|
||||
case TEST:
|
||||
testFeauture();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -1719,57 +1723,98 @@ public class TabularDataController {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void openModifyRule() {
|
||||
Log.debug("Request Open Modify Rule Dialog");
|
||||
RuleOpenDialog cfDialog = new RuleOpenDialog(eventBus);
|
||||
cfDialog.show();
|
||||
GWT.runAsync(new RunAsyncCallback() {
|
||||
public void onSuccess() {
|
||||
Log.debug("Request Open Modify Rule Dialog");
|
||||
RuleOpenDialog cfDialog = new RuleOpenDialog(eventBus);
|
||||
cfDialog.show();
|
||||
}
|
||||
public void onFailure(Throwable reason) {
|
||||
asyncCodeLoadingFailed(reason);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private void openDeleteRule() {
|
||||
Log.debug("Request Open Delete Rule Dialog");
|
||||
RuleDeleteDialog cfDialog = new RuleDeleteDialog(eventBus);
|
||||
cfDialog.show();
|
||||
|
||||
GWT.runAsync(new RunAsyncCallback() {
|
||||
public void onSuccess() {
|
||||
Log.debug("Request Open Delete Rule Dialog");
|
||||
RuleDeleteDialog cfDialog = new RuleDeleteDialog(eventBus);
|
||||
cfDialog.show();
|
||||
}
|
||||
public void onFailure(Throwable reason) {
|
||||
asyncCodeLoadingFailed(reason);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void openRulesActiveOnTabularResource() {
|
||||
Log.debug("Request Open Rules Active on TabularResource Dialog");
|
||||
if (trId != null) {
|
||||
RuleActiveDialog raDialog = new RuleActiveDialog(trId, eventBus);
|
||||
raDialog.show();
|
||||
} else {
|
||||
Log.error("TRId is null");
|
||||
UtilsGXT3.alert("Error", "No current tabular resource present");
|
||||
}
|
||||
|
||||
GWT.runAsync(new RunAsyncCallback() {
|
||||
public void onSuccess() {
|
||||
Log.debug("Request Open Rules Active on TabularResource Dialog");
|
||||
if (trId != null) {
|
||||
RuleActiveDialog raDialog = new RuleActiveDialog(trId, eventBus);
|
||||
raDialog.show();
|
||||
} else {
|
||||
Log.error("TRId is null");
|
||||
UtilsGXT3.alert("Error", "No current tabular resource present");
|
||||
}
|
||||
}
|
||||
public void onFailure(Throwable reason) {
|
||||
asyncCodeLoadingFailed(reason);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void openShareRule() {
|
||||
Log.debug("Request Open Share Rule Dialog");
|
||||
RuleShareDialog cfDialog = new RuleShareDialog(eventBus);
|
||||
cfDialog.show();
|
||||
|
||||
GWT.runAsync(new RunAsyncCallback() {
|
||||
public void onSuccess() {
|
||||
Log.debug("Request Open Share Rule Dialog");
|
||||
RuleShareDialog cfDialog = new RuleShareDialog(eventBus);
|
||||
cfDialog.show();
|
||||
}
|
||||
public void onFailure(Throwable reason) {
|
||||
asyncCodeLoadingFailed(reason);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void openOnColumnNewRule() {
|
||||
Log.debug("Request Open On Column New Rule Dialog");
|
||||
RuleOnColumnCreateDialog cfDialog = new RuleOnColumnCreateDialog(
|
||||
eventBus);
|
||||
cfDialog.show();
|
||||
|
||||
GWT.runAsync(new RunAsyncCallback() {
|
||||
public void onSuccess() {
|
||||
Log.debug("Request Open On Column New Rule Dialog");
|
||||
RuleOnColumnCreateDialog cfDialog = new RuleOnColumnCreateDialog(
|
||||
eventBus);
|
||||
cfDialog.show();
|
||||
}
|
||||
public void onFailure(Throwable reason) {
|
||||
asyncCodeLoadingFailed(reason);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void openOnColumnApplyRule() {
|
||||
Log.debug("Request Open On Column Apply Rule Dialog");
|
||||
if (trId != null) {
|
||||
RuleApplyDialog raDialog = new RuleApplyDialog(trId, eventBus);
|
||||
raDialog.show();
|
||||
} else {
|
||||
Log.error("TRId is null");
|
||||
UtilsGXT3.alert("Error", "No current tabular resource present");
|
||||
}
|
||||
|
||||
GWT.runAsync(new RunAsyncCallback() {
|
||||
public void onSuccess() {
|
||||
Log.debug("Request Open On Column Apply Rule Dialog");
|
||||
if (trId != null) {
|
||||
RuleApplyDialog raDialog = new RuleApplyDialog(trId, eventBus);
|
||||
raDialog.show();
|
||||
} else {
|
||||
Log.error("TRId is null");
|
||||
UtilsGXT3.alert("Error", "No current tabular resource present");
|
||||
}
|
||||
}
|
||||
public void onFailure(Throwable reason) {
|
||||
asyncCodeLoadingFailed(reason);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void openOnTableNewRule() {
|
||||
|
@ -1861,7 +1906,30 @@ public class TabularDataController {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//TODO
|
||||
private void testFeauture() {
|
||||
GWT.runAsync(new RunAsyncCallback() {
|
||||
public void onSuccess() {
|
||||
Log.debug("ResourceListView call");
|
||||
if (trId != null) {
|
||||
ResourcesListViewDialog resourcesListViewDialog = new ResourcesListViewDialog(
|
||||
trId, eventBus);
|
||||
resourcesListViewDialog.show();
|
||||
|
||||
} else {
|
||||
Log.error("TRId is null");
|
||||
UtilsGXT3.alert("Error", "No current tabular resource present");
|
||||
}
|
||||
}
|
||||
public void onFailure(Throwable reason) {
|
||||
asyncCodeLoadingFailed(reason);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private void callDiscard() {
|
||||
HistoryDiscard historyDiscard = new HistoryDiscard(eventBus);
|
||||
historyDiscard.discard();
|
||||
|
|
|
@ -17,7 +17,14 @@ public interface TabularDataResources extends ClientBundle {
|
|||
|
||||
public static final TabularDataResources INSTANCE = GWT
|
||||
.create(TabularDataResources.class);
|
||||
|
||||
@Source("star_32.png")
|
||||
ImageResource test32();
|
||||
|
||||
@Source("star.png")
|
||||
ImageResource test();
|
||||
|
||||
|
||||
@Source("arrow-refresh_32.png")
|
||||
ImageResource refresh32();
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 603 B |
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
|
@ -65,6 +65,8 @@ public class FileToolBar {
|
|||
private TextButton helpButton;
|
||||
//private TextButton languageButton;
|
||||
//private TextButton logsButton;
|
||||
private TextButton testButton;
|
||||
|
||||
|
||||
//Language Menu
|
||||
/*private MenuItem enItem;
|
||||
|
@ -470,10 +472,28 @@ public class FileToolBar {
|
|||
eventBus.fireEvent(new RibbonEvent(RibbonType.LOGS));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
helpLayout.setWidget(0, 1, logsButton);
|
||||
helpLayout.getFlexCellFormatter().setRowSpan(0, 1, 2);
|
||||
*/
|
||||
|
||||
testButton = new TextButton("Test",
|
||||
TabularDataResources.INSTANCE.test32());
|
||||
testButton.disable();
|
||||
testButton.setToolTip("Test");
|
||||
testButton.setScale(ButtonScale.LARGE);
|
||||
testButton.setIconAlign(IconAlign.TOP);
|
||||
testButton.setArrowAlign(ButtonArrowAlign.BOTTOM);
|
||||
testButton.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
eventBus.fireEvent(new RibbonEvent(RibbonType.TEST));
|
||||
}
|
||||
});
|
||||
|
||||
helpLayout.setWidget(0, 2, testButton);
|
||||
helpLayout.getFlexCellFormatter().setRowSpan(0, 2, 2);
|
||||
|
||||
|
||||
cleanCells(helpLayout.getElement());
|
||||
|
||||
|
@ -570,6 +590,7 @@ public class FileToolBar {
|
|||
backgroundButton.enable();
|
||||
historyButton.disable();
|
||||
undoButton.disable();
|
||||
testButton.disable();
|
||||
break;
|
||||
case TR_CLOSE:
|
||||
case TR_READONLY:
|
||||
|
@ -589,6 +610,7 @@ public class FileToolBar {
|
|||
backgroundButton.enable();
|
||||
historyButton.disable();
|
||||
undoButton.disable();
|
||||
testButton.disable();
|
||||
break;
|
||||
case TR_OPEN:
|
||||
case TABLEUPDATE:
|
||||
|
@ -614,6 +636,7 @@ public class FileToolBar {
|
|||
backgroundButton.enable();
|
||||
historyButton.enable();
|
||||
undoButton.enable();
|
||||
testButton.enable();
|
||||
break;
|
||||
case WIZARD_OPEN:
|
||||
openButton.disable();
|
||||
|
@ -632,6 +655,7 @@ public class FileToolBar {
|
|||
backgroundButton.disable();
|
||||
historyButton.disable();
|
||||
undoButton.disable();
|
||||
testButton.disable();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 603 B |
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
|
@ -100,11 +100,11 @@
|
|||
<set-property name="log_ConsoleLogger" value="ENABLED" />
|
||||
<set-property name="log_DivLogger" value="ENABLED" />
|
||||
<set-property name="log_GWTLogger" value="ENABLED" />
|
||||
<set-property name="log_SystemLogger" value="ENABLED" /> -->
|
||||
<set-property name="log_SystemLogger" value="ENABLED" /> -->
|
||||
<!-- Not in GWT 2.6 <set-property name="log_FirebugLogger" value="ENABLED"
|
||||
/> -->
|
||||
|
||||
|
||||
|
||||
<set-property name="log_ConsoleLogger" value="DISABLED" />
|
||||
<set-property name="log_DivLogger" value="DISABLED" />
|
||||
<set-property name="log_GWTLogger" value="DISABLED" />
|
||||
|
|
Loading…
Reference in New Issue