Class 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 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()
      • 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 1
        m2 - 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()