-
Notifications
You must be signed in to change notification settings - Fork 12
DrawerManager
ajcamilo edited this page Dec 26, 2014
·
8 revisions
The DrawerManager is a component that manages stacks of modal drawers that derive from AbstractDrawer.
You can see a demo here.
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);
}
});
}
}