package org.minimalj.frontend.page;

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

public class DetailPageAction extends Action {

	private final Page mainPage;
	private final Page detailPage;
	
	public DetailPageAction(Page mainPage, Page detailPage) {
		this.mainPage = mainPage;
		this.detailPage = detailPage;
	}
	
	@Override
	public void action() {
		Frontend.showDetail(mainPage, detailPage);
	}
	
}

@@ -223,16 +223,132 @@
 ailPage;
+%0A%0A%09public DetailPageAction(Page mainPage, Page detailPage) %7B%0A%09%09this(mainPage, detailPage, detailPage.getTitle());%0A%09%7D
 %0A%09%0A%09publ
@@ -393,27 +393,55 @@
 e detailPage
-) %7B
+, String name) %7B%0A%09%09super(name);
 %0A%09%09this.main

use title of detail page as default name of action