Search in sources :

Example 1 with UrlParametersReceivingBehavior

use of de.tudarmstadt.ukp.clarin.webanno.support.wicketstuff.UrlParametersReceivingBehavior in project webanno by webanno.

the class AnnotationPage method createUrlFragmentBehavior.

private UrlParametersReceivingBehavior createUrlFragmentBehavior() {
    return new UrlParametersReceivingBehavior() {

        private static final long serialVersionUID = -3860933016636718816L;

        @Override
        protected void onParameterArrival(IRequestParameters aRequestParameters, AjaxRequestTarget aTarget) {
            aTarget.addChildren(getPage(), IFeedback.class);
            StringValue project = aRequestParameters.getParameterValue(PAGE_PARAM_PROJECT_ID);
            StringValue document = aRequestParameters.getParameterValue(PAGE_PARAM_DOCUMENT_ID);
            StringValue focus = aRequestParameters.getParameterValue(PAGE_PARAM_FOCUS);
            handleParameters(aTarget, project, document, focus, false);
        }
    };
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) UrlParametersReceivingBehavior(de.tudarmstadt.ukp.clarin.webanno.support.wicketstuff.UrlParametersReceivingBehavior) StringValue(org.apache.wicket.util.string.StringValue) IRequestParameters(org.apache.wicket.request.IRequestParameters)

Aggregations

UrlParametersReceivingBehavior (de.tudarmstadt.ukp.clarin.webanno.support.wicketstuff.UrlParametersReceivingBehavior)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 IRequestParameters (org.apache.wicket.request.IRequestParameters)1 StringValue (org.apache.wicket.util.string.StringValue)1