You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2021/07/22 16:56:00 UTC
[jira] [Created] (ISIS-2818) Add overrides for XxxDomainEvent for
hide/disable/veto to evaluate a function or supplier
Daniel Keir Haywood created ISIS-2818:
-----------------------------------------
Summary: Add overrides for XxxDomainEvent for hide/disable/veto to evaluate a function or supplier
Key: ISIS-2818
URL: https://issues.apache.org/jira/browse/ISIS-2818
Project: Isis
Issue Type: Improvement
Components: Isis Core
Affects Versions: 2.0.0-M5
Reporter: Daniel Keir Haywood
Fix For: 2.0.0-M6
Rather than:
{code:java}
if (hubCurrentService.currentHub().isEmpty()) {
ev.hide();
} {code}
I'd prefer to write:
{code:java}
ev.hideIf(hubCurrentService.currentHub().isEmpty());{code}
or more flexibly:
{code:java}
ev.hideIf(() -> hubCurrentService.currentHub().isEmpty()); {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)