Class DataAction

java.lang.Object
net.tnemc.menu.core.icon.action.IconAction
net.tnemc.menu.core.icon.action.impl.DataAction

public class DataAction extends IconAction
DataAction
Since:
1.5.0.0
Author:
creatorfromhell
  • Field Details

    • identifier

      private final String identifier
    • data

      private final Object data
  • Constructor Details

  • Method Details

    • onClick

      public boolean onClick(MenuClickHandler handler)
      Handles the click action for the icon using the provided MenuClickHandler.
      Specified by:
      onClick in class IconAction
      Parameters:
      handler - The MenuClickHandler to be executed upon the click action.
      Returns:
      true if the click action is blocked or has special behavior, otherwise false.