Class RemovePagesCommand

java.lang.Object
com.levigo.jadice.web.demo.common.client.commands.RemovePagesCommand
All Implemented Interfaces:
Command

public final class RemovePagesCommand extends Object implements Command
  • Constructor Details

    • RemovePagesCommand

      public RemovePagesCommand(ThumbnailView thumbnailView)
  • Method Details

    • getID

      public String getID()
      Description copied from interface: Command
      The ID of the command. This is typically the command class name. If the Command is parameterized the ID should comprise the class name + parameter information.
      Specified by:
      getID in interface Command
      Returns:
      the ID of the command
    • execute

      public void execute(Collection<Object> args)
      Description copied from interface: Command
      Execute the command.
      Specified by:
      execute in interface Command
      Parameters:
      args - arguments for the command (contains all items for all actions inside of the context!)
    • canExecute

      public boolean canExecute(Collection<Object> args)
      Description copied from interface: Command
      Permission checking for a command works as follows:

      1. Check user privileges if the command is executable.
      2. Ask if the command is executable with the given objects.

      Specified by:
      canExecute in interface Command
      Parameters:
      args - arguments for the command
      Returns:
      true - executable with these arguments,
      false - impossible to execute this command with these arguments