Search in sources :

Example 31 with AjaxIconButton

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);
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) AjaxIconButton(com.evolveum.midpoint.web.component.AjaxIconButton)

Aggregations

AjaxIconButton (com.evolveum.midpoint.web.component.AjaxIconButton)31 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)27 VisibleBehaviour (com.evolveum.midpoint.web.component.util.VisibleBehaviour)11 Component (org.apache.wicket.Component)9 IModel (org.apache.wicket.model.IModel)9 IColumn (org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn)7 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)6 UserProfileStorage (com.evolveum.midpoint.web.session.UserProfileStorage)5 ArrayList (java.util.ArrayList)5 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)4 InlineMenuItem (com.evolveum.midpoint.web.component.menu.cog.InlineMenuItem)3 List (java.util.List)3 AbstractColumn (org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn)3 Item (org.apache.wicket.markup.repeater.Item)3 ChooseMemberPopup (com.evolveum.midpoint.gui.api.component.ChooseMemberPopup)2 MainObjectListPanel (com.evolveum.midpoint.gui.api.component.MainObjectListPanel)2 AssignmentObjectRelation (com.evolveum.midpoint.model.api.AssignmentObjectRelation)2 CompiledObjectCollectionView (com.evolveum.midpoint.model.api.authentication.CompiledObjectCollectionView)2 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)2 Task (com.evolveum.midpoint.task.api.Task)2