Class AbstractContextCommand

java.lang.Object
com.levigo.jadice.web.client.util.command.InjectedCommand
com.levigo.jadice.web.client.commands.AbstractContextCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AbstractPageViewCommand, ToggleNotificationsCommand

public abstract class AbstractContextCommand extends InjectedCommand
Abstract base class for context aware injected commands.
  • Constructor Details

    • AbstractContextCommand

      public AbstractContextCommand()
  • Method Details

    • getContext

      protected Context getContext()
      Returns:
      the context
    • propagateContextChange

      protected void propagateContextChange()
      Propagate a change of the context from which this command is currently being executed. Silently skip propagating a change, if there is no current context.
    • setContext

      public void setContext(Context context)
      Invoked by command injection.

      Developers should not invoke this method in any direct way.

      Parameters:
      context - The context to be set.