关于SecuredListAction的问题

SecuredListAction是一个抽象类,但是API文档实例直接NEW之后使用

Standard action that changes enabled property depending on selection of a bound ListComponent .
You can use fluent API to create instances of SecuredListAction and assign handlers to them:

     Action action = new SecuredListAction("moveToTrash")
             .withCaption("Move to trash")
             .withIcon("icons/trash.png")
             .withHandler(event -> {
                 // action logic here
             });
     docsTable.addAction(action);

public abstract class SecuredListAction extends ListAction implements Action.HasSecurityConstraint {

我现在需要做一个类似Remove的Action(当选中记录才能用)供列表的Button使用,应该怎么做?自己写个类去实现SecuredListAction吗?

应该是个BUG,该抽象类没有抽象方法了,应该变成普通类!和ItemTrackingAction一样

应该是文档错误。
现在有一个 RemoveAction,是不能满足你们的需求吗?

你意思我从RemoveAction派生?然后覆盖他的动作?应该可以把SecuredListAction 改成普通类,因为他上面没有需要实现的抽象方法了。

这块是API 文档错误,文档已经修复。你可以写类继承 SecuredListAction 。