added new spinner and improved stylesheet for displayng File Preview

This commit is contained in:
Francesco Mangiacrapa 2020-07-29 15:37:19 +02:00
parent d88ce70e93
commit 26b7497446
7 changed files with 39 additions and 2 deletions

View File

@ -421,6 +421,12 @@ public interface Icons extends ClientBundle {
@Source("icons/no-preview-available.png") @Source("icons/no-preview-available.png")
ImageResource previewNotAvailable(); ImageResource previewNotAvailable();
@Source("icons/no-preview-available-no-border.png")
ImageResource previewNotAvailableNoBorder();
@Source("icons/spinner2.gif")
ImageResource spinner();
} }

View File

@ -467,6 +467,16 @@ public class Resources {
return AbstractImagePrototype.create(ICONS.notread()); return AbstractImagePrototype.create(ICONS.notread());
} }
/**
* Gets the icon not read.
*
* @return the icon not read
*/
public static AbstractImagePrototype getSpinner(){
return AbstractImagePrototype.create(ICONS.spinner());
}
/** /**
* Gets the close icon. * Gets the close icon.
@ -1371,6 +1381,15 @@ public class Resources {
return ICONS.previewNotAvailable(); return ICONS.previewNotAvailable();
} }
/**
* Gets the preview not available.
*
* @return the preview not available
*/
public static ImageResource getPreviewNotAvailableNoBorder() {
return ICONS.previewNotAvailableNoBorder();
}
/** /**
* Gets the icon by media type name. * Gets the icon by media type name.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -192,9 +192,9 @@ public class DialogGetInfoBootstrap extends Composite {
private Map<String, List<String>> mapAllowedMimeTypesForPreview; private Map<String, List<String>> mapAllowedMimeTypesForPreview;
private Image spinnerImage = Resources.getIconLoading().createImage(); private Image spinnerImage = Resources.getSpinner().createImage();
private Image noPreviewAvailable = new Image(Resources.getPreviewNotAvailable()); private Image noPreviewAvailable = new Image(Resources.getPreviewNotAvailableNoBorder());
private Frame iFrameGDV = null; private Frame iFrameGDV = null;

View File

@ -413,6 +413,12 @@ IN THE 'DETAILS' PANEL*/
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-left: 10px;
border: 1px solid #e6e6e6;
padding-top: 5px;
padding-bottom: 5px;
border-left: none;
border-right: none;
} }
.preview-image-style img { .preview-image-style img {
@ -424,6 +430,12 @@ IN THE 'DETAILS' PANEL*/
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-left: 10px;
border: 1px solid #e6e6e6;
padding-top: 5px;
padding-bottom: 5px;
border-left: none;
border-right: none;
} }
.my-preview-doc { .my-preview-doc {