removed gwtbootstrap3 compilation error

This commit is contained in:
Francesco Mangiacrapa 2021-07-14 14:45:16 +02:00
parent 5ed9c89d72
commit eec95aaf10
6 changed files with 95 additions and 78 deletions

View File

@ -2,11 +2,13 @@
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:b="urn:import:org.gwtbootstrap3.client.ui" xmlns:b="urn:import:org.gwtbootstrap3.client.ui"
xmlns:h="urn:import:org.gwtbootstrap3.client.ui.html"
xmlns:c="urn:import:org.gcube.portlets.user.geoportaldataviewer.client.ui"> xmlns:c="urn:import:org.gcube.portlets.user.geoportaldataviewer.client.ui">
<ui:style> <ui:style>
.margin-right-10 { .margin-right-10 {
margin-right: 10px; margin-right: 10px;
} }
.font-weight-bold { .font-weight-bold {
font-weight: bold; font-weight: bold;
} }
@ -15,24 +17,38 @@
<g:HTMLPanel ui:field="mainContainerPanel"> <g:HTMLPanel ui:field="mainContainerPanel">
<g:HTMLPanel ui:field="mainToolBar" <g:HTMLPanel ui:field="mainToolBar"
addStyleNames="inner-toolbar"> addStyleNames="inner-toolbar">
<b:DropdownButton type="LINK" text=" " icon="INFO"> <b:ButtonGroup>
<g:HTMLPanel ui:field="panelMI" <b:Button type="LINK" text=" " icon="INFO" />
addStyleNames="info-interaction"> <b:DropDownMenu>
<g:Label>Map Interactions</g:Label> <g:HTMLPanel ui:field="panelMI"
<b:Paragraph><b:Icon type="CHECK_EMPTY"/> Use <code>Shift+Drag</code> to draw an extent for zoom in the Map</b:Paragraph> addStyleNames="info-interaction">
<b:Paragraph><b:Icon type="HAND_UP"/> Click on the Points shown on the Map to view their features</b:Paragraph> <g:Label>Map Interactions</g:Label>
<h:Span>
<b:Icon type="SQUARE_O" />
Use
<code>Shift+Drag</code>
to draw an extent for zoom in the Map
</h:Span>
<h:Span>
<b:Icon type="HAND_O_UP" />
Click on the Points shown on the Map to view their features
</h:Span>
</g:HTMLPanel> </g:HTMLPanel>
</b:DropdownButton> </b:DropDownMenu>
<b:DropdownButton type="LINK" text="Query" </b:ButtonGroup>
visible="false"> <b:ButtonGroup visible="false">
<!-- <b:ButtonGroup toggle="checkbox" ui:field="buttonGroup"> --> <b:Button type="LINK" text="Query" icon="INFO" />
<b:AnchorListItem ui:field="dataPointSelection" <b:DropDownMenu>
addStyleNames="{style.margin-right-10}">Data Point <!-- <b:ButtonGroup toggle="checkbox" ui:field="buttonGroup"> -->
Selection</b:AnchorListItem> <b:AnchorListItem ui:field="dataPointSelection"
<b:AnchorListItem ui:field="dataBoxSelection" visible="false">Data Box addStyleNames="{style.margin-right-10}">Data Point
Selection</b:AnchorListItem> Selection</b:AnchorListItem>
<!-- </b:ButtonGroup> --> <b:AnchorListItem ui:field="dataBoxSelection"
</b:DropdownButton> visible="false">Data Box
Selection</b:AnchorListItem>
<!-- </b:ButtonGroup> -->
</b:DropDownMenu>
</b:ButtonGroup>
<b:Button type="LINK" ui:field="removeQuery" <b:Button type="LINK" ui:field="removeQuery"
text="Remove Query" visible="false"></b:Button> text="Remove Query" visible="false"></b:Button>
</g:HTMLPanel> </g:HTMLPanel>

View File

@ -11,7 +11,6 @@ import org.gwtbootstrap3.client.ui.FormGroup;
import org.gwtbootstrap3.client.ui.Modal; import org.gwtbootstrap3.client.ui.Modal;
import org.gwtbootstrap3.client.ui.ModalFooter; import org.gwtbootstrap3.client.ui.ModalFooter;
import org.gwtbootstrap3.client.ui.TextBox; import org.gwtbootstrap3.client.ui.TextBox;
import org.gwtbootstrap3.client.ui.Tooltip;
import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Element;
@ -22,7 +21,6 @@ import com.google.gwt.event.dom.client.MouseOverHandler;
import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Random; import com.google.gwt.user.client.Random;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.Label;

View File

@ -45,8 +45,8 @@
</ui:style> </ui:style>
<g:HTMLPanel> <g:HTMLPanel>
<b:Form type="HORIZONTAL"> <b:Form type="HORIZONTAL">
<b:Alert ui:field="actionAlert" close="false" type="INFO" <b:Alert ui:field="actionAlert" dismissable="false"
visible="false"> type="INFO" visible="false">
<b:Icon type="ROTATE_RIGHT" spin="true" /> <b:Icon type="ROTATE_RIGHT" spin="true" />
</b:Alert> </b:Alert>
@ -73,38 +73,40 @@
<!-- <b:Well ui:field="wellPrivateLinkDescription"> --> <!-- <b:Well ui:field="wellPrivateLinkDescription"> -->
<!-- The following Restricted Link for this product --> <!-- The following Restricted Link for this product -->
<!-- is accessible by the users of the VRE. Login required</b:Well> --> <!-- is accessible by the users of the VRE. Login required</b:Well> -->
<b:ControlLabel>Restricted Link</b:ControlLabel> <b:FormLabel>Restricted Link</b:FormLabel>
<b:Controls> <!-- <b:Controls> -->
<b:InputAddOn prependIcon="LINK" <b:InputGroup>
<b:InputGroupAddon icon="LINK"
addStyleNames="my-prepend-width"> addStyleNames="my-prepend-width">
<b:TextBox ui:field="textPrivateLink" readOnly="true"> </b:InputGroupAddon>
</b:TextBox> <b:TextBox ui:field="textPrivateLink" readOnly="true" />
<b:Tooltip text='Copied to clipboard' trigger="MANUAL"> <b:Tooltip text='Copied to clipboard' trigger="MANUAL">
<b:Button icon="COPY" ui:field="privateLinkCopyButton" <b:Button icon="COPY" ui:field="privateLinkCopyButton"
type="PRIMARY"></b:Button> type="PRIMARY"></b:Button>
</b:Tooltip> </b:Tooltip>
</b:InputAddOn> </b:InputGroup>
<b:Button ui:field="showPrivateLongLinkButton" <b:Button ui:field="showPrivateLongLinkButton"
type="LINK" addStyleNames="{style.margin-left-25}">Show as Long URL</b:Button> type="LINK" addStyleNames="{style.margin-left-25}">Show as Long URL</b:Button>
</b:Controls> <!-- </b:Controls> -->
</b:FormGroup> </b:FormGroup>
<b:FormGroup addStyleNames="my-control-group" <b:FormGroup addStyleNames="my-control-group"
ui:field="cgPrivateLongLink" visible="false"> ui:field="cgPrivateLongLink" visible="false">
<b:ControlLabel></b:ControlLabel> <b:FormLabel></b:FormLabel>
<b:Controls> <!-- <b:Controls> -->
<b:InputAddOn prependIcon="LINK" <b:InputGroup>
<b:InputGroupAddon icon="LINK"
addStyleNames="my-prepend-width"> addStyleNames="my-prepend-width">
<b:TextBox ui:field="textPrivateLongLink" </b:InputGroupAddon>
readOnly="true"> <b:TextBox ui:field="textPrivateLongLink"
</b:TextBox> readOnly="true" />
<b:Tooltip text='Copied to clipboard' trigger="MANUAL"> <b:Tooltip text='Copied to clipboard' trigger="MANUAL">
<b:Button icon="COPY" <b:Button icon="COPY"
ui:field="privateLongLinkCopyButton" type="PRIMARY"></b:Button> ui:field="privateLongLinkCopyButton" type="PRIMARY"></b:Button>
</b:Tooltip> </b:Tooltip>
</b:InputAddOn> </b:InputGroup>
</b:Controls> <!-- </b:Controls> -->
</b:FormGroup> </b:FormGroup>
</g:HTMLPanel> </g:HTMLPanel>
</b:FieldSet> </b:FieldSet>
@ -129,40 +131,40 @@
addStyleNames="my-control-group"> addStyleNames="my-control-group">
<!-- <b:Well ui:field="alertFilePublicLink" visible="true">Anyone with --> <!-- <b:Well ui:field="alertFilePublicLink" visible="true">Anyone with -->
<!-- this link can access it, no login is required.</b:Well> --> <!-- this link can access it, no login is required.</b:Well> -->
<b:ControlLabel>Open Link</b:ControlLabel> <b:FormLabel>Open Link</b:FormLabel>
<b:Controls> <!-- <b:Controls> -->
<b:InputAddOn prependIcon="GLOBE" <b:InputGroup>
<b:InputGroupAddon icon="GLOBE"
addStyleNames="my-prepend-width"> addStyleNames="my-prepend-width">
<b:TextBox ui:field="textPublicLink" readOnly="true"> </b:InputGroupAddon>
</b:TextBox> <b:TextBox ui:field="textPublicLink" readOnly="true" />
<b:Tooltip text='Copied to clipboard' trigger="MANUAL"> <b:Tooltip text='Copied to clipboard' trigger="MANUAL">
<b:Button icon="COPY" ui:field="publicLinkCopyButton" <b:Button icon="COPY" ui:field="publicLinkCopyButton"
type="PRIMARY"></b:Button> type="PRIMARY"></b:Button>
</b:Tooltip> </b:Tooltip>
</b:InputAddOn> </b:InputGroup>
<b:Button ui:field="showPublicLongLinkButton" type="LINK" <b:Button ui:field="showPublicLongLinkButton" type="LINK"
addStyleNames="{style.margin-left-25}">Show as Long URL</b:Button> addStyleNames="{style.margin-left-25}">Show as Long URL</b:Button>
</b:Controls> <!-- </b:Controls> -->
</b:FormGroup> </b:FormGroup>
<b:FormGroup addStyleNames="my-control-group" <b:FormGroup addStyleNames="my-control-group"
ui:field="cgPublicLongLink" visible="false"> ui:field="cgPublicLongLink" visible="false">
<b:ControlLabel></b:ControlLabel> <b:FormLabel></b:FormLabel>
<b:Controls> <!-- <b:Controls> -->
<b:InputAddOn prependIcon="GLOBE" <b:InputGroup>
addStyleNames="my-prepend-width"> <b:InputGroupAddon icon="GLOBE"
<b:TextBox ui:field="textPublicLongLink" addStyleNames="my-prepend-width"></b:InputGroupAddon>
readOnly="true"> <b:TextBox ui:field="textPublicLongLink" readOnly="true" />
</b:TextBox> <b:Tooltip text='Copied to clipboard' trigger="MANUAL">
<b:Tooltip text='Copied to clipboard' trigger="MANUAL"> <b:Button icon="COPY"
<b:Button icon="COPY" ui:field="publicLongLinkCopyButton" type="PRIMARY"></b:Button>
ui:field="publicLongLinkCopyButton" type="PRIMARY"></b:Button> </b:Tooltip>
</b:Tooltip> </b:InputGroup>
</b:InputAddOn> <!-- </b:Controls> -->
</b:Controls>
</b:FormGroup> </b:FormGroup>
</b:FieldSet> </b:FieldSet>
<b:Alert close="false" ui:field="errorAlert" type="ERROR" <b:Alert dismissable="false" ui:field="errorAlert" type="DANGER"
visible="false"></b:Alert> visible="false"></b:Alert>
</b:Form> </b:Form>
</g:HTMLPanel> </g:HTMLPanel>

View File

@ -8,7 +8,6 @@ import org.gcube.portlets.user.geoportaldataviewer.client.GeoportalDataViewerSer
import org.gcube.portlets.user.geoportaldataviewer.client.gis.MapUtils; import org.gcube.portlets.user.geoportaldataviewer.client.gis.MapUtils;
import org.gcube.portlets.user.geoportaldataviewer.client.ui.ModalWindow; import org.gcube.portlets.user.geoportaldataviewer.client.ui.ModalWindow;
import org.gcube.portlets.user.geoportaldataviewer.client.ui.dialogs.DialogShareableLink; import org.gcube.portlets.user.geoportaldataviewer.client.ui.dialogs.DialogShareableLink;
import org.gcube.portlets.user.geoportaldataviewer.client.ui.images.ThumbnailImageView;
import org.gcube.portlets.user.geoportaldataviewer.client.ui.map.MapView; import org.gcube.portlets.user.geoportaldataviewer.client.ui.map.MapView;
import org.gcube.portlets.user.geoportaldataviewer.client.ui.util.CustomFlexTable; import org.gcube.portlets.user.geoportaldataviewer.client.ui.util.CustomFlexTable;
import org.gcube.portlets.user.geoportaldataviewer.shared.products.ConcessioneDV; import org.gcube.portlets.user.geoportaldataviewer.shared.products.ConcessioneDV;

View File

@ -1,6 +1,7 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:h="urn:import:org.gwtbootstrap3.client.ui.html"
xmlns:b="urn:import:org.gwtbootstrap3.client.ui"> xmlns:b="urn:import:org.gwtbootstrap3.client.ui">
<ui:style> <ui:style>
@ -40,7 +41,7 @@
<b:Button ui:field="shareButton">Share</b:Button> <b:Button ui:field="shareButton">Share</b:Button>
<b:Button ui:field="viewButton">View</b:Button> <b:Button ui:field="viewButton">View</b:Button>
</g:HorizontalPanel> </g:HorizontalPanel>
<b:Paragraph ui:field="introduzione"></b:Paragraph> <h:Paragraph ui:field="introduzione"></h:Paragraph>
<g:VerticalPanel addStyleNames="{style.width-100}"> <g:VerticalPanel addStyleNames="{style.width-100}">
<g:HTMLPanel ui:field="mapViewPanel"> <g:HTMLPanel ui:field="mapViewPanel">
</g:HTMLPanel> </g:HTMLPanel>

View File

@ -1,6 +1,7 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:h="urn:import:org.gwtbootstrap3.client.ui.html"
xmlns:b="urn:import:org.gwtbootstrap3.client.ui"> xmlns:b="urn:import:org.gwtbootstrap3.client.ui">
<ui:style> <ui:style>
@ -14,8 +15,8 @@
addStyleNames="{style.description}"> addStyleNames="{style.description}">
<b:Button ui:field="linkAbstractLanguage" visible="false" <b:Button ui:field="linkAbstractLanguage" visible="false"
type="LINK"></b:Button> type="LINK"></b:Button>
<b:Paragraph ui:field="abstractParagraphIta"></b:Paragraph> <h:Paragraph ui:field="abstractParagraphIta"></h:Paragraph>
<b:Paragraph ui:field="abstractParagraphEng" <h:Paragraph ui:field="abstractParagraphEng"
visible="false"></b:Paragraph> visible="false"></h:Paragraph>
</g:HTMLPanel> </g:HTMLPanel>
</ui:UiBinder> </ui:UiBinder>