Class DataValidationHandler

  • All Implemented Interfaces:
    io.keikai.ui.UserActionHandler, java.io.Serializable

    public class DataValidationHandler
    extends io.keikai.ui.impl.ua.AbstractCellHandler
    Author:
    JerryChen
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isOverlapped​(io.keikai.api.Range range)
      Detect if current selection has two validation or 1 validation with any empty cells
      protected boolean processAction​(io.keikai.ui.UserActionContext ctx)  
      protected void showValidationDialog​(io.keikai.ui.UserActionContext ctx, io.keikai.api.model.Sheet sheet, io.keikai.api.AreaRef selection, java.util.List<io.keikai.api.model.Validation> validations)  
      protected void validTableTotalRows​(io.keikai.api.Range range)  
      • Methods inherited from class io.keikai.ui.impl.ua.AbstractCellHandler

        isEnabled
      • Methods inherited from class io.keikai.ui.impl.ua.AbstractHandler

        checkInArrayFormula, checkInCornerFreezePanel, checkSelectAllVisibleColumn, checkSelectAllVisibleRow, checkSelectAllVisibleRowColumn, process, showInfoMessage, showProtectMessage, showWarnMessage
      • Methods inherited from class java.lang.Object

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

      • DataValidationHandler

        public DataValidationHandler()
    • Method Detail

      • processAction

        protected boolean processAction​(io.keikai.ui.UserActionContext ctx)
        Specified by:
        processAction in class io.keikai.ui.impl.ua.AbstractHandler
      • validTableTotalRows

        protected void validTableTotalRows​(io.keikai.api.Range range)
      • isOverlapped

        protected boolean isOverlapped​(io.keikai.api.Range range)
        Detect if current selection has two validation or 1 validation with any empty cells
        Returns:
        true means current selection includes two or more validations, or 1 validation with empty cells.
      • showValidationDialog

        protected void showValidationDialog​(io.keikai.ui.UserActionContext ctx,
                                            io.keikai.api.model.Sheet sheet,
                                            io.keikai.api.AreaRef selection,
                                            java.util.List<io.keikai.api.model.Validation> validations)