Search in sources :

Example 1 with RadioChoice

use of org.apache.wicket.markup.html.form.RadioChoice in project midpoint by Evolveum.

the class ExecuteChangeOptionsPanel method createTracingRadioChoicesFragment.

private Fragment createTracingRadioChoicesFragment(String componentId) {
    Fragment fragment = new Fragment(componentId, ID_TRACING_CONTAINER, ExecuteChangeOptionsPanel.this);
    RadioChoice<TracingProfileType> tracingProfile = new RadioChoice<>(ID_TRACING, PropertyModel.of(ExecuteChangeOptionsPanel.this.getModel(), ExecuteChangeOptionsDto.F_TRACING), PropertyModel.of(ExecuteChangeOptionsPanel.this.getModel(), ExecuteChangeOptionsDto.F_TRACING_CHOICES), createTracinnChoiceRenderer());
    fragment.add(tracingProfile);
    AjaxLink<Void> resetChoices = new AjaxLink<>(ID_RESET_CHOICES) {

        @Override
        public void onClick(AjaxRequestTarget target) {
            ExecuteChangeOptionsPanel.this.getModelObject().setTracing(null);
            target.add(ExecuteChangeOptionsPanel.this);
        }
    };
    fragment.add(resetChoices);
    return fragment;
}
Also used : TracingProfileType(com.evolveum.midpoint.xml.ns._public.common.common_3.TracingProfileType) AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) AjaxLink(org.apache.wicket.ajax.markup.html.AjaxLink) Fragment(org.apache.wicket.markup.html.panel.Fragment) RadioChoice(org.apache.wicket.markup.html.form.RadioChoice)

Aggregations

TracingProfileType (com.evolveum.midpoint.xml.ns._public.common.common_3.TracingProfileType)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 AjaxLink (org.apache.wicket.ajax.markup.html.AjaxLink)1 RadioChoice (org.apache.wicket.markup.html.form.RadioChoice)1 Fragment (org.apache.wicket.markup.html.panel.Fragment)1