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 Details

    • 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 Details

    • 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 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()