PageRenderTime 65ms CodeModel.GetById 58ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/webportal/src/main/java/au/org/emii/portal/composer/ErrorMessageWithDetailAndRawDataComposer.java

http://alageospatialportal.googlecode.com/
Java | 37 lines | 22 code | 6 blank | 9 comment | 0 complexity | b601ff0a50f4ee20cb6018dafd72a5fd MD5 | raw file
 1package au.org.emii.portal.composer;
 2
 3import au.org.emii.portal.composer.MapComposer;
 4import org.zkoss.zk.ui.Executions;
 5
 6public class ErrorMessageWithDetailAndRawDataComposer extends
 7		ErrorMessageWithDetailComposer {
 8
 9	/**
10	 * 
11	 */
12	private static final long serialVersionUID = 1L;
13
14	public void onClick$close() {
15		close();
16		super.onClick$close();
17	}
18	
19	private void close() {
20		/* at this point the user has closed the message box - we
21		 * only have one more thing to do to stop the big zk error
22		 * and that is to grab the iframe back off the error message
23		 * window and put it back where we found it in the index.zul
24		 * page - not pretty or efficient but works a treat!  
25		 */
26		MapComposer mc = getMapComposer();
27		mc.getRawMessageIframeHack().setParent(
28				mc.getRawMessageHackHolder());
29	}
30	
31	public MapComposer getMapComposer() {
32		return (MapComposer) Executions.getCurrent()
33				.getDesktop()
34					.getPage("MapZul")
35						.getFellow("mapPortalPage");
36	}
37}