KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portal > faces > listener > share > ShowLastBodyComponentActionListener


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.portal.faces.listener.share;
6
7 import org.exoplatform.faces.core.component.UIExoCommand;
8 import org.exoplatform.faces.core.event.ExoActionEvent;
9 import org.exoplatform.faces.core.event.ExoActionListener;
10 import org.exoplatform.portal.faces.component.UIPortal;
11 /**
12  * Jun 10, 2004
13  * @author: Tuan Nguyen
14  * @email: tuan08@users.sourceforge.net
15  * @version: $Id: ShowLastBodyComponentActionListener.java,v 1.2 2004/09/27 18:25:52 tuan08 Exp $
16  */

17 public class ShowLastBodyComponentActionListener extends ExoActionListener {
18     public void execute(ExoActionEvent event) throws Exception JavaDoc {
19          UIExoCommand uiComponent = (UIExoCommand)event.getComponent() ;
20          UIPortal uiPortal = (UIPortal) uiComponent.getAncestorOfType(UIPortal.class) ;
21      uiPortal.setLastBodyComponent() ;
22     }
23 }
Popular Tags