Example #1
0
 public AbstractAction(
     String id,
     Action ownerAction,
     String icon,
     String text,
     String clazz,
     Controller<?> controller,
     View<?> view,
     Long entityTypeId,
     Boolean needConfirmation,
     Boolean checkLock,
     Long ownerEntityId) {
   this.id = id;
   this.ownerAction = ownerAction;
   this.icon = icon;
   this.text = text;
   this.clazz = clazz;
   this.controller = controller;
   this.view = view;
   this.entityTypeId = entityTypeId;
   this.ownerEntityId = ownerEntityId;
   this.setNeedConfirmation(needConfirmation);
   this.setCheckLock(checkLock);
   if (ownerAction != null) ownerAction.addAction(this);
 }
Example #2
0
 @Override
 public void setOwnerAction(Action ownerAction) {
   this.ownerAction = ownerAction;
   if (ownerAction != null) ownerAction.addAction(this);
 }