Updated Drop My Buttons

This commit is contained in:
Francesco Mangiacrapa 2024-02-19 18:04:28 +01:00
parent 81a76f51b8
commit 36f32bf438
1 changed files with 16 additions and 13 deletions

View File

@ -67,6 +67,8 @@ public class CkanMetadataManagementPanel extends FlowPanel {
// user's own
private InlineHTML separatorMyInfo = null;
private InlineHTML separatorAdminButtons = null;
private DropdownButton dropMyOptionButtons = new DropdownButton("My...");
private NavLink myDatasets = new NavLink("My Items");
private NavLink myOrganizations = new NavLink("My Organizations");
private NavLink myGroups = new NavLink("My Groups");
@ -179,13 +181,12 @@ public class CkanMetadataManagementPanel extends FlowPanel {
separatorMyInfo.setVisible(true);
nav.add(separatorMyInfo);
DropdownButton dropMy = new DropdownButton("My...");
dropMy.setBaseIcon(IconType.USER);
dropMy.add(myOrganizations);
dropMy.add(myGroups);
dropMy.add(myDatasets);
dropMy.setType(ButtonType.LINK);
nav.add(dropMy);
dropMyOptionButtons.setBaseIcon(IconType.USER);
dropMyOptionButtons.add(myOrganizations);
dropMyOptionButtons.add(myGroups);
dropMyOptionButtons.add(myDatasets);
dropMyOptionButtons.setType(ButtonType.LINK);
nav.add(dropMyOptionButtons);
separatorAdminButtons = new InlineHTML(
"<span style=\"font-weight:bold;vertical-alignment:middle;margin:0 5px;\">|</span>");
@ -520,9 +521,10 @@ public class CkanMetadataManagementPanel extends FlowPanel {
insertMeta.setVisible(false);
editMeta.setVisible(false);
deleteItem.setVisible(false);
myDatasets.setVisible(false);
myOrganizations.setVisible(false);
myGroups.setVisible(false);
dropMyOptionButtons.setVisible(false);
// myDatasets.setVisible(false);
// myOrganizations.setVisible(false);
// myGroups.setVisible(false);
manageGRSFProduct.setVisible(false);
manageCModS.setVisible(false);
@ -540,9 +542,10 @@ public class CkanMetadataManagementPanel extends FlowPanel {
types.setVisible(false);
separatorMyInfo.setVisible(false);
separatorAdminButtons.setVisible(false);
myDatasets.setVisible(false);
myOrganizations.setVisible(false);
myGroups.setVisible(false);
dropMyOptionButtons.setVisible(false);
// myDatasets.setVisible(false);
// myOrganizations.setVisible(false);
// myGroups.setVisible(false);
statistics.setVisible(false);
manageGRSFProduct.setVisible(false);
manageCModS.setVisible(false);