Skip to content
PMJMendes edited this page Dec 17, 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

Example using with a table:

<div wicket:id="drawerbaseid"></div>
public class MyPage extends WebPage implements IAjaxIndicatorAware {
	public static final String DRAWER_BASE_ID = "drawerbaseid";

	private DrawerManager manager;

	public MyPage() {
		manager = new DrawerManager(DRAWER_BASE_ID);
	}

	@Override protected void onInitialize() {
		add(manager);
	};

	protected Panel getDrawer(String id) {
		return new EmptyPanel(id);
	}

	public DrawerManager getDrawerManager() {
		return manager;
	}
}
Clone this wiki locally