org.riotfamily.pages.riot.command
Class GotoPageCommand

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

public class GotoPageCommand
extends PopupCommand

Since:
6.4
Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
static String STYLE_CLASS
           
 
Fields inherited from class org.riotfamily.riot.list.command.core.AbstractCommand
log
 
Constructor Summary
GotoPageCommand(PathCompleter pathCompleter)
           
 
Method Summary
 String getStyleClass()
          Returns the CSS class that is assigned to command's HTML element and therefore defines which icon is displayed. If no class is set, the default implementation will return the action instead.
protected  String getUrl(CommandContext context)
           
protected  String getUrl(Page page, HttpServletRequest request)
           
 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.PopupCommand
execute, getPopupBlockerMessage, setPopupArguments, setWindowName
 
Methods inherited from class org.riotfamily.riot.list.command.core.AbstractCommand
getAction, getConfirmationMessage, getDefaultMessageArgs, getId, getItemStyleClass, getLabel, getRuntime, isShowOnForm, setBeanName, setId, setRiotRuntime, setShowOnForm, setStyleClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLE_CLASS

public static final String STYLE_CLASS
See Also:
Constant Field Values
Constructor Detail

GotoPageCommand

public GotoPageCommand(PathCompleter pathCompleter)
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 PopupCommand

getUrl

protected String getUrl(CommandContext context)
Specified by:
getUrl in class PopupCommand

getUrl

protected String getUrl(Page page,
                        HttpServletRequest request)

getStyleClass

public String getStyleClass()
Description copied from class: AbstractCommand
Returns the CSS class that is assigned to command's HTML element and therefore defines which icon is displayed. If no class is set, the default implementation will return the action instead. If no class is set, the default implementation will return the action instead.

Specified by:
getStyleClass in interface Command
Overrides:
getStyleClass in class AbstractCommand