org.riotfamily.pages.riot.command
Class SwapPageCommand

java.lang.Object
  extended by org.riotfamily.riot.list.command.core.AbstractCommand
      extended by org.riotfamily.riot.list.command.core.SwapCommand
          extended by org.riotfamily.pages.riot.command.SwapPageCommand
All Implemented Interfaces:
Command, RiotRuntimeAware, BeanNameAware

public class SwapPageCommand
extends SwapCommand

Since:
6.5
Author:
Carsten Woelk [cwoelk at neteye dot de]

Field Summary
 
Fields inherited from class org.riotfamily.riot.list.command.core.SwapCommand
ACTION_MOVE_DOWN, ACTION_MOVE_UP
 
Fields inherited from class org.riotfamily.riot.list.command.core.AbstractCommand
log
 
Constructor Summary
SwapPageCommand()
           
 
Method Summary
 boolean isEnabled(CommandContext context)
          Implementors may inspect the given context to decide whether the command should be enabled. The default implementation always returns true.
 
Methods inherited from class org.riotfamily.riot.list.command.core.SwapCommand
execute, getAction, setSwapWith
 
Methods inherited from class org.riotfamily.riot.list.command.core.AbstractCommand
getConfirmationMessage, getDefaultMessageArgs, getId, getItemStyleClass, getLabel, getRuntime, getStyleClass, isShowOnForm, setBeanName, setId, setRiotRuntime, setShowOnForm, setStyleClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwapPageCommand

public SwapPageCommand()
Method Detail

isEnabled

public boolean isEnabled(CommandContext context)
Description copied from class: AbstractCommand
Implementors may inspect the given context to decide whether the command should be enabled. Commands don't need to check the policy since commands will be automatically disabled if the action returned by Command.getAction() is denied. The default implementation always returns true.

Specified by:
isEnabled in interface Command
Overrides:
isEnabled in class SwapCommand