|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aspsimon.termcomp.infrastructure.MenuTracker
@Name(value="menuTracker") @Scope(value=SESSION) public class MenuTracker
This class implements the state of the drop-down menu for the current
session. The drop-down menu currently has three panels. This class uses an
AutoHashMap to track the state of the panels.
As this bean is marked @Stateful with scope SESSION, it
should be destroyed when a session expires.
| Constructor Summary | |
|---|---|
MenuTracker()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(javax.faces.event.ActionEvent action)
This method stores the current state of the menu panel passed as parameter. |
void |
create()
This is the default create method, initializes the AutoHashMap. |
void |
destroy()
Stateful beans require a method marked @Remove. |
java.util.Map<java.lang.String,java.lang.Boolean> |
getMenuMap()
Return the Map tracking the state of the panels. |
void |
setMenuMap(java.util.Map<java.lang.String,java.lang.Boolean> menuMap)
Set the menu panel map. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuTracker()
| Method Detail |
|---|
@Create public void create()
AutoHashMap.
create in interface MenuInterfacepublic void destroy()
@Remove.
destroy in interface MenuInterfacepublic java.util.Map<java.lang.String,java.lang.Boolean> getMenuMap()
getMenuMap in interface MenuInterfacepublic void setMenuMap(java.util.Map<java.lang.String,java.lang.Boolean> menuMap)
setMenuMap in interface MenuInterfacemenuMap - The menu panel map to set.public void actionPerformed(javax.faces.event.ActionEvent action)
actionPerformed in interface MenuInterfaceaction - An ActionEvent fired by the click on the panel header.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||