Search in sources :

Example 1 with OmUrlFragment

use of org.apache.openmeetings.web.util.OmUrlFragment in project openmeetings by apache.

the class MainPanel method updateContents.

public void updateContents(OmUrlFragment f, IPartialPageRequestHandler handler, boolean updateFragment) {
    BasePanel npanel = getPanel(f.getArea(), f.getType());
    if (npanel != null) {
        if (getClient() != null) {
            updateContents(npanel, handler);
        } else {
            this.panel = npanel;
        }
        if (updateFragment) {
            UrlFragment uf = new UrlFragment(handler);
            uf.set(f.getArea().name(), f.getType());
        }
    }
}
Also used : UrlFragment(org.wicketstuff.urlfragment.UrlFragment) OmUrlFragment(org.apache.openmeetings.web.util.OmUrlFragment)

Example 2 with OmUrlFragment

use of org.apache.openmeetings.web.util.OmUrlFragment in project openmeetings by apache.

the class MainPage method onParameterArrival.

@Override
protected void onParameterArrival(IRequestParameters params, AjaxRequestTarget target) {
    OmUrlFragment uf = getUrlFragment(params);
    if (uf != null) {
        areaBehavior.stop(target);
        main.updateContents(uf, target, false);
    }
}
Also used : OmUrlFragment(org.apache.openmeetings.web.util.OmUrlFragment)

Aggregations

OmUrlFragment (org.apache.openmeetings.web.util.OmUrlFragment)2 UrlFragment (org.wicketstuff.urlfragment.UrlFragment)1