public abstract class AbstractHandler extends Object implements UserActionHandler, Serializable
Constructor and Description |
---|
AbstractHandler() |
Modifier and Type | Method and Description |
---|---|
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 action
|
boolean |
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) |
public boolean isEnabled(Book book, Sheet sheet)
UserActionHandler
isEnabled
in interface UserActionHandler
book
- current book, null if no book selectedsheet
- current sheet, null if no sheet selectedprotected void showProtectMessage()
protected void showInfoMessage(String message)
protected void showWarnMessage(String message)
public boolean process(UserActionContext ctx)
UserActionHandler
process
in interface UserActionHandler
protected boolean checkInCornerFreezePanel(Range range)
protected boolean checkSelectAllVisibleRow(UserActionContext ctx)
protected boolean checkSelectAllVisibleColumn(UserActionContext ctx)
protected boolean checkSelectAllVisibleRowColumn(UserActionContext ctx)
protected abstract boolean processAction(UserActionContext ctx)
Copyright © 2020. All rights reserved.