Class NilHandler

  • All Implemented Interfaces:
    UserActionHandler

    public class NilHandler
    extends java.lang.Object
    implements UserActionHandler
    always disable and do nothing
    Since:
    3.0.0
    Author:
    dennis
    • Constructor Summary

      Constructors 
      Constructor Description
      NilHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEnabled​(Book book, Sheet sheet)
      get the enabled state of this action
      boolean process​(UserActionContext ctx)
      Handle the action.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NilHandler

        public NilHandler()
    • Method Detail

      • isEnabled

        public boolean isEnabled​(Book book,
                                 Sheet sheet)
        Description copied from interface: UserActionHandler
        get the enabled state of this action
        Specified by:
        isEnabled in interface UserActionHandler
        Parameters:
        book - current book, null if no book selected
        sheet - current sheet, null if no sheet selected
        Returns: