Class ShowInHandler

All Implemented Interfaces:
IHandler, IHandler2, IElementUpdater

public class ShowInHandler extends AbstractHandler implements IElementUpdater
The show in command, which only needs a target id.
Since:
3.4
  • Constructor Details

    • ShowInHandler

      public ShowInHandler()
  • Method Details

    • execute

      public Object execute(ExecutionEvent event) throws ExecutionException
      Description copied from interface: IHandler
      Executes with the map of parameter values by name.
      Specified by:
      execute in interface IHandler
      Parameters:
      event - An event containing all the information about the current state of the application; must not be null.
      Returns:
      the result of the execution. Reserved for future use, must be null.
      Throws:
      ExecutionException - if an exception occurred during execution.
    • updateElement

      public void updateElement(UIElement element, Map parameters)
      Description copied from interface: IElementUpdater
      Whenever the elements for a command are refreshed, this method is called on the active handler for that command.

      Note: Handlers must never cache the element, which can disappear or be replaced at any time. Everybody should go through the ICommandService refreshElements(*) method.

      Specified by:
      updateElement in interface IElementUpdater
      Parameters:
      element - An element for a specific UI element. Will not be null.
      parameters - Any parameters registered with the callback. Will not be null, but it may be empty.