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