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吗?