package org.minimalj.frontend.page;

import org.minimalj.frontend.Frontend;
import org.minimalj.frontend.action.Action;

public class PageAction extends Action {

	private final Page page;
	
	public PageAction(Page page) {
		this(page, null);
	}
	
	public PageAction(Page page, String name) {
		super(name != null ? name : page.getTitle());
		this.page = page;
	}

	@Override
	public void action() {
		Frontend.show(page);
	}
	
}

@@ -421,10 +421,55 @@
 );%0A%09%7D%0A%09%0A
+%09public Page getPage() %7B%0A%09%09return page;%0A%09%7D%0A%09%0A
 %7D%0A

make page accessible