Class AbstractHandler

java.lang.Object
io.keikai.ui.impl.ua.AbstractHandler
All Implemented Interfaces:
UserActionHandler, Serializable
Direct Known Subclasses:
AbstractBookHandler, AbstractCellHandler, AbstractFilterHandler, AbstractObjectHandler, AbstractPasteSpecialHandler, AbstractProtectedHandler, AbstractSheetHandler, AddColumnHandler, AddRowHandler, ClearCellHandler, CustomSortHandler, CutHandler, DeleteColumnHandler, DeleteRowHandler, HeaderSizeHandler, HideHeaderHandler, HyperlinkHandler, InsertColumnHandler, InsertRowHandler, NewBookHandler, PasteHandler, SortHandler

public abstract class AbstractHandler extends Object implements UserActionHandler, Serializable
Since:
3.0.0
Author:
dennis
See Also:
  • Constructor Details

    • AbstractHandler

      public AbstractHandler()
  • Method Details

    • 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:
    • showProtectMessage

      protected void showProtectMessage()
    • showInfoMessage

      protected void showInfoMessage(String message)
    • showWarnMessage

      protected void showWarnMessage(String message)
    • process

      public boolean process(UserActionContext ctx)
      Description copied from interface: UserActionHandler
      Handle the action.
      Specified by:
      process in interface UserActionHandler
      Returns:
      true if the handler has processed and manager should ignore post process (if there is)
    • checkInCornerFreezePanel

      protected boolean checkInCornerFreezePanel(Range range)
    • checkInArrayFormula

      protected boolean checkInArrayFormula(Range range)
    • checkSelectAllVisibleRow

      protected boolean checkSelectAllVisibleRow(UserActionContext ctx)
    • checkSelectAllVisibleColumn

      protected boolean checkSelectAllVisibleColumn(UserActionContext ctx)
    • checkSelectAllVisibleRowColumn

      protected boolean checkSelectAllVisibleRowColumn(UserActionContext ctx)
    • processAction

      protected abstract boolean processAction(UserActionContext ctx)