moved share link button
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@146557 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ea83e532dd
commit
3bdbb8badb
|
@ -47,7 +47,6 @@ public class CkanMetadataManagementPanel extends FlowPanel{
|
||||||
private Button organizations = new Button("Organizations");
|
private Button organizations = new Button("Organizations");
|
||||||
private Button groups = new Button("Groups");
|
private Button groups = new Button("Groups");
|
||||||
private Button items = new Button("Items");
|
private Button items = new Button("Items");
|
||||||
private Button shareLink = new Button("Share Link");
|
|
||||||
|
|
||||||
// user's own
|
// user's own
|
||||||
private InlineHTML separatorMyInfo = null;
|
private InlineHTML separatorMyInfo = null;
|
||||||
|
@ -60,6 +59,7 @@ public class CkanMetadataManagementPanel extends FlowPanel{
|
||||||
private Button statistics = new Button("Statistics");
|
private Button statistics = new Button("Statistics");
|
||||||
|
|
||||||
// other stuff
|
// other stuff
|
||||||
|
private Button shareLink = new Button("Share Link");
|
||||||
private Button insertMeta = new Button("Publish Item");
|
private Button insertMeta = new Button("Publish Item");
|
||||||
private Button editMeta = new Button("Edit Item");
|
private Button editMeta = new Button("Edit Item");
|
||||||
private Button manageProduct = new Button("Manage Item");
|
private Button manageProduct = new Button("Manage Item");
|
||||||
|
@ -79,17 +79,14 @@ public class CkanMetadataManagementPanel extends FlowPanel{
|
||||||
organizations.setType(ButtonType.LINK);
|
organizations.setType(ButtonType.LINK);
|
||||||
groups.setType(ButtonType.LINK);
|
groups.setType(ButtonType.LINK);
|
||||||
items.setType(ButtonType.LINK);
|
items.setType(ButtonType.LINK);
|
||||||
shareLink.setType(ButtonType.LINK);
|
|
||||||
shareLink.setEnabled(false);
|
|
||||||
shareLink.setTitle("Get the link of the item you are viewing and share it!");
|
|
||||||
|
|
||||||
|
|
||||||
myDatasets.setType(ButtonType.LINK);
|
myDatasets.setType(ButtonType.LINK);
|
||||||
myOrganizations.setType(ButtonType.LINK);
|
myOrganizations.setType(ButtonType.LINK);
|
||||||
myGroups.setType(ButtonType.LINK);
|
myGroups.setType(ButtonType.LINK);
|
||||||
|
|
||||||
statistics.setType(ButtonType.LINK);
|
statistics.setType(ButtonType.LINK);
|
||||||
|
|
||||||
|
shareLink.setType(ButtonType.LINK);
|
||||||
insertMeta.setType(ButtonType.LINK);
|
insertMeta.setType(ButtonType.LINK);
|
||||||
editMeta.setType(ButtonType.LINK);
|
editMeta.setType(ButtonType.LINK);
|
||||||
manageProduct.setType(ButtonType.PRIMARY);
|
manageProduct.setType(ButtonType.PRIMARY);
|
||||||
|
@ -110,6 +107,7 @@ public class CkanMetadataManagementPanel extends FlowPanel{
|
||||||
manageProduct.setIcon(IconType.CHECK_SIGN);
|
manageProduct.setIcon(IconType.CHECK_SIGN);
|
||||||
|
|
||||||
// hide edit and insert
|
// hide edit and insert
|
||||||
|
shareLink.setEnabled(false);
|
||||||
editMeta.setVisible(false);
|
editMeta.setVisible(false);
|
||||||
insertMeta.setVisible(false);
|
insertMeta.setVisible(false);
|
||||||
manageProduct.setVisible(false);
|
manageProduct.setVisible(false);
|
||||||
|
@ -125,7 +123,6 @@ public class CkanMetadataManagementPanel extends FlowPanel{
|
||||||
nav.add(groups);
|
nav.add(groups);
|
||||||
nav.add(items);
|
nav.add(items);
|
||||||
nav.add(statistics);
|
nav.add(statistics);
|
||||||
nav.add(shareLink);
|
|
||||||
separatorMyInfo = new InlineHTML("<span style=\"font-weight:bold;vertical-alignment:middle;\">|</span>");
|
separatorMyInfo = new InlineHTML("<span style=\"font-weight:bold;vertical-alignment:middle;\">|</span>");
|
||||||
separatorMyInfo.setVisible(true);
|
separatorMyInfo.setVisible(true);
|
||||||
nav.add(separatorMyInfo);
|
nav.add(separatorMyInfo);
|
||||||
|
@ -133,8 +130,9 @@ public class CkanMetadataManagementPanel extends FlowPanel{
|
||||||
nav.add(myGroups);
|
nav.add(myGroups);
|
||||||
nav.add(myDatasets);
|
nav.add(myDatasets);
|
||||||
separatorAdminButtons = new InlineHTML("<span style=\"font-weight:bold;vertical-alignment:middle;\">|</span>");
|
separatorAdminButtons = new InlineHTML("<span style=\"font-weight:bold;vertical-alignment:middle;\">|</span>");
|
||||||
separatorAdminButtons.setVisible(false);
|
separatorAdminButtons.setVisible(true);
|
||||||
nav.add(separatorAdminButtons);
|
nav.add(separatorAdminButtons);
|
||||||
|
nav.add(shareLink);
|
||||||
nav.add(insertMeta);
|
nav.add(insertMeta);
|
||||||
nav.add(editMeta);
|
nav.add(editMeta);
|
||||||
nav.add(manageProduct);
|
nav.add(manageProduct);
|
||||||
|
@ -287,7 +285,7 @@ public class CkanMetadataManagementPanel extends FlowPanel{
|
||||||
public void showInsertAndEditProductButtons(boolean show){
|
public void showInsertAndEditProductButtons(boolean show){
|
||||||
|
|
||||||
//editMeta.setVisible(show); TODO
|
//editMeta.setVisible(show); TODO
|
||||||
separatorAdminButtons.setVisible(show);
|
//separatorAdminButtons.setVisible(show);
|
||||||
insertMeta.setVisible(show);
|
insertMeta.setVisible(show);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue