Class CommandMap
java.lang.Object
org.apache.myfaces.tobago.internal.renderkit.CommandMap
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
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionvoidaddCommand(ClientBehaviors name, Command command) getClick()getOther()booleanisEmpty()static CommandMapmerge(CommandMap m1, CommandMap m2) Merges these two maps.static CommandMaprestoreCommandMap(javax.faces.context.FacesContext facesContext) voidstatic voidstoreCommandMap(javax.faces.context.FacesContext facesContext, CommandMap map)
-
Constructor Details
-
CommandMap
public CommandMap()Creates an empty command map, which may hold different command triggered by different keys. -
CommandMap
Creates a command map, which hold the given command triggered by "click".
-
-
Method Details
-
setClick
-
getClick
-
addCommand
-
getOther
-
merge
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
-
storeCommandMap
-
isEmpty
public boolean isEmpty()
-