org.apache.jetspeed.portlets.security.rolemgt
Class PanelTabStateListener

java.lang.Object
  extended byorg.apache.jetspeed.portlets.security.rolemgt.PanelTabStateListener
All Implemented Interfaces:
EventListener, javax.faces.event.FacesListener, Serializable, org.apache.myfaces.custom.tabbedpane.TabChangeListener

public class PanelTabStateListener
extends Object
implements Serializable, org.apache.myfaces.custom.tabbedpane.TabChangeListener

Controls the state of the role management tabs.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
private static String EDIT_ROLE_TAB_ID
          Edit role id.
static String PANEL_TAB_STATE
          The panel tab state bean.
private  boolean renderEditRole
          Whether to render edit role.
private  boolean renderViewRoles
          Whether to render view roles.
private static String ROLE_MGT_PANEL_TAB_STATE
          Role management panel tab state value binding.
 
Constructor Summary
PanelTabStateListener()
           
 
Method Summary
 boolean isRenderEditRole()
           
 boolean isRenderViewRoles()
           
 void processTabChange(org.apache.myfaces.custom.tabbedpane.TabChangeEvent tabChangeEvent)
           
 void renderEditRole()
           Render edit role.
 void renderViewRoles()
           Render view roles.
 void setRenderEditRole(boolean renderEditRole)
           
 void setRenderViewRoles(boolean renderViewRoles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PANEL_TAB_STATE

public static final String PANEL_TAB_STATE
The panel tab state bean.

See Also:
Constant Field Values

EDIT_ROLE_TAB_ID

private static final String EDIT_ROLE_TAB_ID
Edit role id.

See Also:
Constant Field Values

ROLE_MGT_PANEL_TAB_STATE

private static final String ROLE_MGT_PANEL_TAB_STATE
Role management panel tab state value binding.

See Also:
Constant Field Values

renderEditRole

private boolean renderEditRole
Whether to render edit role.


renderViewRoles

private boolean renderViewRoles
Whether to render view roles.

Constructor Detail

PanelTabStateListener

public PanelTabStateListener()
Method Detail

isRenderEditRole

public boolean isRenderEditRole()
Returns:
Returns the renderEditRole.

setRenderEditRole

public void setRenderEditRole(boolean renderEditRole)
Parameters:
renderEditRole - The renderEditRole to set.

isRenderViewRoles

public boolean isRenderViewRoles()
Returns:
Returns the renderViewRoles.

setRenderViewRoles

public void setRenderViewRoles(boolean renderViewRoles)
Parameters:
renderViewRoles - The renderViewRoles to set.

renderEditRole

public void renderEditRole()

Render edit role.


renderViewRoles

public void renderViewRoles()

Render view roles.


processTabChange

public void processTabChange(org.apache.myfaces.custom.tabbedpane.TabChangeEvent tabChangeEvent)
                      throws javax.faces.event.AbortProcessingException
Specified by:
processTabChange in interface org.apache.myfaces.custom.tabbedpane.TabChangeListener
Throws:
javax.faces.event.AbortProcessingException
See Also:
TabChangeListener.processTabChange(org.apache.myfaces.custom.tabbedpane.TabChangeEvent)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.