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 boolean
checkInArrayFormula(Range range)
protected boolean
checkInCornerFreezePanel(Range range)
protected boolean
checkSelectAllVisibleColumn(UserActionContext ctx)
protected boolean
checkSelectAllVisibleRow(UserActionContext ctx)
protected boolean
checkSelectAllVisibleRowColumn(UserActionContext ctx)
boolean
isEnabled(Book book, Sheet sheet)
get the enabled state of this actionboolean
process(UserActionContext ctx)
Handle the action.protected abstract boolean
processAction(UserActionContext ctx)
protected void
showInfoMessage(String message)
protected void
showProtectMessage()
protected void
showWarnMessage(String message)
-
-
-
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 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:UserActionHandler
Handle the action.- Specified by:
process
in 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)
-
-