use of com.evolveum.midpoint.web.component.AjaxIconButton in project midpoint by Evolveum.
the class PageTask method createRefreshNowIconButton.
private void createRefreshNowIconButton(RepeatingView repeatingView) {
AjaxIconButton refreshNow = new AjaxIconButton(repeatingView.newChildId(), new Model<>("fa fa-refresh"), createStringResource("autoRefreshPanel.refreshNow")) {
@Override
public void onClick(AjaxRequestTarget target) {
refresh(target);
}
};
refreshNow.add(AttributeAppender.append("class", "btn btn-default btn-sm"));
repeatingView.add(refreshNow);
}
Aggregations