Package io.keikai.ui.impl.ua
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancheckInArrayFormula(Range range)protected booleancheckInCornerFreezePanel(Range range)protected booleancheckSelectAllVisibleColumn(UserActionContext ctx)protected booleancheckSelectAllVisibleRow(UserActionContext ctx)protected booleancheckSelectAllVisibleRowColumn(UserActionContext ctx)booleanisEnabled(Book book, Sheet sheet)get the enabled state of this actionbooleanprocess(UserActionContext ctx)Handle the action.protected abstract booleanprocessAction(UserActionContext ctx)protected voidshowInfoMessage(String message)protected voidshowProtectMessage()protected voidshowWarnMessage(String message)
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled(Book book, Sheet sheet)
Description copied from interface:UserActionHandlerget the enabled state of this action- Specified by:
isEnabledin interfaceUserActionHandler- Parameters:
book- current book, null if no book selectedsheet- 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:UserActionHandlerHandle the action.- Specified by:
processin interfaceUserActionHandler- 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)
-
-