Skip to content
ajcamilo edited this page Dec 26, 2014 · 8 revisions

DrawerManager

The DrawerManager is a component that manages stacks of modal drawers that derive from AbstractDrawer.

You can see a demo here.

How to use

Using the DrawerManager is as simple as adding it to the page, then invoking its API:

<div wicket:id="drawermgr"></div>
public class MyPage extends WebPage {
    private DrawerManager manager;

    public MyPage() {
        manager = new DrawerManager("drawermgr");
        add(manager);
...
        add(new AjaxLink<Void>("link") {
            @Override
            protected void onClick(AjaxRequestTarget target) {
                manager.push(new MyDrawer(), target);
            }
        });
    }
}
Clone this wiki locally