2546: Endow Workspace Resources Explorer with filtering and display features

Task-Url: https://support.d4science.org/issues/2546

Fixed breadcrumb height
Fixed Dialog Show Gcube Item width

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@128838 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-05-25 16:30:14 +00:00
parent 1c7b54238f
commit 3fc41d7f54
4 changed files with 30 additions and 5 deletions

View File

@ -91,7 +91,6 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor
}
/**
* Sets the height to internal scroll.
*
@ -312,8 +311,9 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor
this.captionTxt = captionTxt;
if(this.captionTxt!=null && !this.captionTxt.isEmpty())
setTitle(this.captionTxt);
// onEnsureDebugId("secureDebugDock");
add(breadcrumbs, DockPanel.NORTH);
setCellHeight(breadcrumbs, offsetBreadcrumb+"px");
// centerScrollable.setSize(width+"px", height);
// setAlertConfirm("", false, null);
@ -330,6 +330,10 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor
// add(footerHP, DockPanel.SOUTH);
}
public void getNorthPanelHeight(){
}
/**
* Sets the alert confirm.

View File

@ -46,8 +46,26 @@ public class Breadcrumbs extends Composite {
interface BreadcrumbsUiBinder extends UiBinder<Widget, Breadcrumbs> {
}
/**
* Gets the height.
*
* @return the height
*/
public int getHeight(){
String height = this.getElement().getStyle().getHeight();
GWT.log("Breadcrumbs height: "+height);
if(height.contains("px")){
return Integer.parseInt(height.replace("px", ""));
}
return -1;
}
/**
* Instantiates a new breadcrumbs.
*
* @param eventBus the event bus
*/
public Breadcrumbs(HandlerManager eventBus) {
initWidget(uiBinder.createAndBindUi(this));

View File

@ -43,7 +43,8 @@ public class DialogShowGcubeItem extends DialogBox implements ClickHandler {
private ScrollPanel spCenterContainer;
private ImageResource loading = WorkspaceExplorerResources.ICONS.loading();
private HorizontalPanel hpButtons = new HorizontalPanel();
// public int tableHeigth = 300;
public int ccMaxHeigth = 300;
public int ccMaxWidth = 580;
/**
* Instantiates a new dialog show gcube items related to WorkspaceItemId.
@ -57,6 +58,7 @@ public class DialogShowGcubeItem extends DialogBox implements ClickHandler {
getElement().setClassName("gwt-DialogBoxNew");
dock.setSpacing(4);
dock.setWidth("100%");
// dock.getElement().getStyle().setProperty("maxWidth", "590px");
String title = Util.ellipsis(caption, 70, false);
setText(title);
@ -73,7 +75,8 @@ public class DialogShowGcubeItem extends DialogBox implements ClickHandler {
});
spCenterContainer = new ScrollPanel();
spCenterContainer.getElement().getStyle().setProperty("maxHeight", "300px");
spCenterContainer.getElement().getStyle().setProperty("maxHeight", ccMaxHeigth+"px");
spCenterContainer.getElement().getStyle().setProperty("maxWidth", ccMaxWidth+"px");
spCenterContainer.add(new HTML(text));
hpButtons = new HorizontalPanel();
hpButtons.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

View File

@ -89,7 +89,7 @@
z-index: 2000;
background-color: #FFFFFF;
min-width: 250px;
max-width: 500px;
max-width: 600px;
}
.gwt-DialogBoxNew .Caption {