changed button

This commit is contained in:
francesco 2020-10-30 17:32:05 +01:00
parent dc4acc1ba3
commit eb3ed7a9b0
2 changed files with 6 additions and 4 deletions

View File

@ -79,7 +79,7 @@ public class GeonaDataViewMainPanel extends Composite {
@Override @Override
public void onClick(ClickEvent event) { public void onClick(ClickEvent event) {
map.removeQueryInteractions(); map.removeQueryInteractions();
GWT.log("dataBoxSelection.isToggled() " + dataBoxSelection.isActive()); GWT.log("dataBoxSelection.isActive() " + dataBoxSelection.isActive());
if (!dataBoxSelection.isActive()) { if (!dataBoxSelection.isActive()) {
map.addExtentInteraction(); map.addExtentInteraction();
} }

View File

@ -3,16 +3,18 @@
xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:b="urn:import:com.github.gwtbootstrap.client.ui"> xmlns:b="urn:import:com.github.gwtbootstrap.client.ui">
<ui:style> <ui:style>
.margin-right-10{
margin-right: 10px;
}
</ui:style> </ui:style>
<g:HTMLPanel ui:field="mainHTMLPanel"> <g:HTMLPanel ui:field="mainHTMLPanel">
<b:TabPanel ui:field="mainTabPanel" tabPosition="top"> <b:TabPanel ui:field="mainTabPanel" tabPosition="top">
<b:Tab ui:field="mapTabPanel" active="true" heading="Map"> <b:Tab ui:field="mapTabPanel" active="true" heading="Map">
<b:ButtonToolbar> <b:ButtonToolbar>
<b:ButtonGroup toggle="checkbox" ui:field="buttonGroup"> <b:ButtonGroup toggle="checkbox" ui:field="buttonGroup">
<b:Button ui:field="dataPointSelection" type="PRIMARY">Data Point <b:Button ui:field="dataPointSelection" type="INFO" addStyleNames="{style.margin-right-10}">Data Point
Selection</b:Button> Selection</b:Button>
<b:Button ui:field="dataBoxSelection" type="PRIMARY">Data Box <b:Button ui:field="dataBoxSelection" type="INFO">Data Box
Selection</b:Button> Selection</b:Button>
</b:ButtonGroup> </b:ButtonGroup>
</b:ButtonToolbar> </b:ButtonToolbar>