package com.inepex.ineFrame.client.page;

import java.util.Map;

import com.google.gwt.user.client.ui.Widget;
import com.inepex.ineFrame.client.misc.HandlerAwareLayoutPanel;
import com.inepex.ineFrame.client.navigation.InePlace;

public class LayoutPanelBasedPage extends HandlerAwareLayoutPanel implements InePage{

	protected InePlace currentPlace;
	
	public LayoutPanelBasedPage() {}
	
	@Override
	public void setCurrentPlace(InePlace place) {
		this.currentPlace = place;
	}

	@Override
	public void setUrlParameters(Map<String, String> urlParams,
			UrlParamsParsedCallback callback) throws Exception {
		callback.onUrlParamsParsed();
	}

	@Override
	public void onShow() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Widget asWidget() {
		return this;
	}

	public InePlace getCurrentPlace() {
		return currentPlace;
	}
}

@@ -58,24 +58,90 @@
 til.Map;%0D%0A%0D%0A
+import org.apache.tools.ant.taskdefs.condition.IsFileSelected;%0D%0A%0D%0A
 import com.g
@@ -174,16 +174,16 @@
 idget;%0D%0A
-
 import c
@@ -421,16 +421,56 @@
 Place;%0D%0A
+%09protected Boolean isFirstShow = true;%0D%0A
 %09%0D%0A%09publ
@@ -811,42 +811,101 @@
 %0D%0A%09%09
-// TODO Auto-generated method stub
+if(isFirstShow)%7B%0D%0A%09%09%09isFirstShow = false;%0D%0A%09%09%09onShow(true);%0D%0A%09%09%7Delse%7B%0D%0A%09%09%09onShow(false);%0D%0A%09%09%7D
 %0D%0A%09%09
@@ -1009,24 +1009,24 @@
 tPlace() %7B%0D%0A
-
 %09%09return cur
@@ -1041,11 +1041,62 @@
 e;%0D%0A%09%7D%0D%0A
+%09public void onShow(boolean isfirstShow)%7B%0D%0A%09%09%0D%0A%09%7D%0D%0A
 %7D%0D%0A

Add method onShow(boolean) to LayoutPanelbased page. It indicates the first show of the page.