Class CommandMap
- java.lang.Object
-
- org.apache.myfaces.tobago.internal.renderkit.CommandMap
-
public class CommandMap extends Object
Map of commands to be send to the user agent. It contains the command which shall be executed by click or other events.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description CommandMap()
Creates an empty command map, which may hold different command triggered by different keys.CommandMap(Command click)
Creates a command map, which hold the given command triggered by "click".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommand(ClientBehaviors name, Command command)
Command
getClick()
Map<ClientBehaviors,Command>
getOther()
boolean
isEmpty()
static CommandMap
merge(CommandMap m1, CommandMap m2)
Merges these two maps.static CommandMap
restoreCommandMap(javax.faces.context.FacesContext facesContext)
void
setClick(Command click)
static void
storeCommandMap(javax.faces.context.FacesContext facesContext, CommandMap map)
-
-
-
Constructor Detail
-
CommandMap
public CommandMap()
Creates an empty command map, which may hold different command triggered by different keys.
-
CommandMap
public CommandMap(Command click)
Creates a command map, which hold the given command triggered by "click".
-
-
Method Detail
-
setClick
public void setClick(Command click)
-
getClick
public Command getClick()
-
addCommand
public void addCommand(ClientBehaviors name, Command command)
-
getOther
public Map<ClientBehaviors,Command> getOther()
-
merge
public static CommandMap merge(CommandMap m1, CommandMap m2)
Merges these two maps. If one is null, the other one will be return. It may also return null. If both are not null, m1 will be filled with the data of m2.- Parameters:
m1
- map 1m2
- map 2- Returns:
- m1 or m2
-
restoreCommandMap
public static CommandMap restoreCommandMap(javax.faces.context.FacesContext facesContext)
-
storeCommandMap
public static void storeCommandMap(javax.faces.context.FacesContext facesContext, CommandMap map)
-
isEmpty
public boolean isEmpty()
-
-