Changed alert icon to bootstrap button
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/user-statistics@132032 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0f4b2deae1
commit
4fcccc091f
|
@ -22,6 +22,7 @@ import com.github.gwtbootstrap.client.ui.Button;
|
|||
import com.github.gwtbootstrap.client.ui.CheckBox;
|
||||
import com.github.gwtbootstrap.client.ui.constants.AlertType;
|
||||
import com.github.gwtbootstrap.client.ui.constants.ButtonType;
|
||||
import com.github.gwtbootstrap.client.ui.constants.IconType;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.event.dom.client.ClickHandler;
|
||||
|
@ -52,11 +53,6 @@ public class StatisticsPanel extends Composite {
|
|||
*/
|
||||
public static final String imagePath = GWT.getModuleBaseURL() + "../images/statistics-loader.gif";
|
||||
|
||||
/**
|
||||
* alert icon to be show if some statistic is not available
|
||||
*/
|
||||
public static final String alertIconPath = GWT.getModuleBaseURL() + "../images/icon-alert.png";
|
||||
|
||||
/**
|
||||
* tooltip for the above image
|
||||
*/
|
||||
|
@ -875,9 +871,11 @@ public class StatisticsPanel extends Composite {
|
|||
private void appendAlertIcon(StatisticWidget w) {
|
||||
|
||||
w.clearPanelValues();
|
||||
Image alert = new Image(alertIconPath);
|
||||
Button alert = new Button();
|
||||
alert.setType(ButtonType.LINK);
|
||||
alert.setIcon(IconType.BAN_CIRCLE);
|
||||
alert.setTitle(ALERT_MESSAGE);
|
||||
alert.setStyleName("alert-icon-center");
|
||||
alert.addStyleName("alert-icon-center");
|
||||
w.appendToPanel(alert);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue