You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2022/04/06 18:27:56 UTC

[isis] branch master updated: ISIS-2297: updates site index

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new d317190271 ISIS-2297: updates site index
d317190271 is described below

commit d317190271d52c7c7bd4574522972ffa8897c4b1
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Apr 6 20:27:49 2022 +0200

    ISIS-2297: updates site index
---
 .../commons/pages/index/functional/Either.adoc     |  4 +--
 .../commons/pages/index/functional/Railway.adoc    | 32 +++++++++----------
 .../commons/pages/index/functional/Try.adoc        | 36 +++++++++++-----------
 .../ui/components/scalars/ScalarPanelAbstract.java |  5 +--
 4 files changed, 37 insertions(+), 40 deletions(-)

diff --git a/antora/components/refguide-index/modules/commons/pages/index/functional/Either.adoc b/antora/components/refguide-index/modules/commons/pages/index/functional/Either.adoc
index 45121306a2..b3844e42f2 100644
--- a/antora/components/refguide-index/modules/commons/pages/index/functional/Either.adoc
+++ b/antora/components/refguide-index/modules/commons/pages/index/functional/Either.adoc
@@ -1,4 +1,4 @@
-= Either
+= Either _(interface)_
 :Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
 
 The xref:refguide:commons:index/functional/Either.adoc[Either] type represents a value of one of two possible types (a disjoint union), referred to by _left_ or _right_ .
@@ -10,7 +10,7 @@ Factory methods _Either#left(Object)_ and _Either#right(Object)_ correspond to t
 [source,java]
 .Either.java
 ----
-class Either<L, R> {
+interface Either<L, R> {
   Either<L, R> left(L left)
   Either<L, R> right(R right)
   Optional<L> left()
diff --git a/antora/components/refguide-index/modules/commons/pages/index/functional/Railway.adoc b/antora/components/refguide-index/modules/commons/pages/index/functional/Railway.adoc
index 2c6ea7d956..1c874e9763 100644
--- a/antora/components/refguide-index/modules/commons/pages/index/functional/Railway.adoc
+++ b/antora/components/refguide-index/modules/commons/pages/index/functional/Railway.adoc
@@ -1,7 +1,7 @@
 = Railway _(interface)_
 :Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
 
-The xref:refguide:commons:index/functional/Railway.adoc[Railway] type represents a value of one of two possible types (a disjoint union) of _Success_ or _Failure_ .
+The xref:refguide:commons:index/functional/Railway.adoc[Railway] type represents a value of one of two possible types (a disjoint union) of _Success_ or _Failure_ , where chaining follows the *Railway Pattern* , that is, once failed, stays failed.
 
 Factory methods _Railway#success(Object)_ and _Railway#failure(Object)_ correspond to the two possible values.
 
@@ -20,7 +20,7 @@ interface Railway<F, S> {
   S getSuccessElseFail(Function<F, ? extends Throwable> toThrowable)
   Optional<F> getFailure()     // <.>
   F getFailureElseFail()
-  Railway<F, S> ifSuccess(Consumer<S> valueConsumer)     // <.>
+  Railway<F, S> ifSuccess(Consumer<S> successConsumer)     // <.>
   Railway<F, S> ifFailure(Consumer<F> failureConsumer)     // <.>
   Railway<F, R> mapSuccess(Function<S, R> successMapper)     // <.>
   Railway<R, S> mapFailure(Function<F, R> failureMapper)     // <.>
@@ -32,32 +32,32 @@ interface Railway<F, S> {
 <.> xref:#getSuccess__[getSuccess()]
 +
 --
-Optionally returns the contained _value_ based on presence, that is, if its a _Success_ .
+Optionally returns the contained _value_ based on presence, that is, if this is a _Success_ .
 --
 <.> xref:#getFailure__[getFailure()]
 +
 --
-Optionally returns the contained _failure_ based on presence, that is, if its a _Failure_ .
+Optionally returns the contained _failure_ based on presence, that is, if this is a _Failure_ .
 --
 <.> xref:#ifSuccess__Consumer[ifSuccess(Consumer)]
 +
 --
-Peeks into the contained _success_ if its a _Success_ .
+Peeks into the contained _success_ if this is a _Success_ .
 --
 <.> xref:#ifFailure__Consumer[ifFailure(Consumer)]
 +
 --
-Peeks into the contained _failure_ if its a _Failure_ .
+Peeks into the contained _failure_ if this is a _Failure_ .
 --
 <.> xref:#mapSuccess__Function[mapSuccess(Function)]
 +
 --
-Maps this xref:refguide:commons:index/functional/Railway.adoc[Railway] to another if its a _Success_ . Otherwise if this is a _Failure_ acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Railway.adoc[Railway] to another if this is a _Success_ . Otherwise if this is a _Failure_ acts as identity operator.
 --
 <.> xref:#mapFailure__Function[mapFailure(Function)]
 +
 --
-Maps this xref:refguide:commons:index/functional/Railway.adoc[Railway] to another if its a _Failure_ . Otherwise if this is a _Success_ acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Railway.adoc[Railway] to another if this is a _Failure_ . Otherwise if this is a _Success_ acts as identity operator.
 --
 <.> xref:#fold__Function_Function[fold(Function, Function)]
 +
@@ -67,7 +67,7 @@ Maps the contained _success_ or _failure_ to a new value of type _R_ using accor
 <.> xref:#chain__Function[chain(Function)]
 +
 --
-Railway PatternIf this is a _Success_ , returns a new xref:refguide:commons:index/functional/Railway.adoc[Railway] as produced by the chainingFunction, that receives the current success value as input. Otherwise if this is a _Failure_ acts as identity operator and the chainingFunction is not executed.
+ *Railway Pattern* If this is a _Success_ , returns a new xref:refguide:commons:index/functional/Railway.adoc[Railway] as produced by the chainingFunction, that receives the current success value as input. Otherwise if this is a _Failure_ acts as identity operator and the chainingFunction is not executed.
 --
 
 == Members
@@ -75,32 +75,32 @@ Railway PatternIf this is a _Success_ , returns a new xref:refguide:commons:inde
 [#getSuccess__]
 === getSuccess()
 
-Optionally returns the contained _value_ based on presence, that is, if its a _Success_ .
+Optionally returns the contained _value_ based on presence, that is, if this is a _Success_ .
 
 [#getFailure__]
 === getFailure()
 
-Optionally returns the contained _failure_ based on presence, that is, if its a _Failure_ .
+Optionally returns the contained _failure_ based on presence, that is, if this is a _Failure_ .
 
 [#ifSuccess__Consumer]
 === ifSuccess(Consumer)
 
-Peeks into the contained _success_ if its a _Success_ .
+Peeks into the contained _success_ if this is a _Success_ .
 
 [#ifFailure__Consumer]
 === ifFailure(Consumer)
 
-Peeks into the contained _failure_ if its a _Failure_ .
+Peeks into the contained _failure_ if this is a _Failure_ .
 
 [#mapSuccess__Function]
 === mapSuccess(Function)
 
-Maps this xref:refguide:commons:index/functional/Railway.adoc[Railway] to another if its a _Success_ . Otherwise if this is a _Failure_ acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Railway.adoc[Railway] to another if this is a _Success_ . Otherwise if this is a _Failure_ acts as identity operator.
 
 [#mapFailure__Function]
 === mapFailure(Function)
 
-Maps this xref:refguide:commons:index/functional/Railway.adoc[Railway] to another if its a _Failure_ . Otherwise if this is a _Success_ acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Railway.adoc[Railway] to another if this is a _Failure_ . Otherwise if this is a _Success_ acts as identity operator.
 
 [#fold__Function_Function]
 === fold(Function, Function)
@@ -110,6 +110,6 @@ Maps the contained _success_ or _failure_ to a new value of type _R_ using accor
 [#chain__Function]
 === chain(Function)
 
-Railway PatternIf this is a _Success_ , returns a new xref:refguide:commons:index/functional/Railway.adoc[Railway] as produced by the chainingFunction, that receives the current success value as input. Otherwise if this is a _Failure_ acts as identity operator and the chainingFunction is not executed.
+ *Railway Pattern* If this is a _Success_ , returns a new xref:refguide:commons:index/functional/Railway.adoc[Railway] as produced by the chainingFunction, that receives the current success value as input. Otherwise if this is a _Failure_ acts as identity operator and the chainingFunction is not executed.
 
 In other words: if once failed stays failed
diff --git a/antora/components/refguide-index/modules/commons/pages/index/functional/Try.adoc b/antora/components/refguide-index/modules/commons/pages/index/functional/Try.adoc
index 5426a141b0..ba43780bbe 100644
--- a/antora/components/refguide-index/modules/commons/pages/index/functional/Try.adoc
+++ b/antora/components/refguide-index/modules/commons/pages/index/functional/Try.adoc
@@ -36,22 +36,22 @@ interface Try<T> {
 <.> xref:#getValue__[getValue()]
 +
 --
-Optionally returns the contained _value_ based on presence, that is, if its a _Success_ and the value is not _null_ .
+Optionally returns the contained _value_ based on presence, that is, if this is a _Success_ and the value is not _null_ .
 --
 <.> xref:#getFailure__[getFailure()]
 +
 --
-Optionally returns the contained _failure_ based on presence, that is, if its a _Failure_ .
+Optionally returns the contained _failure_ based on presence, that is, if this is a _Failure_ .
 --
 <.> xref:#ifSuccess__Consumer[ifSuccess(Consumer)]
 +
 --
-Peeks into the _value_ if its a _Success_ .
+Peeks into the _value_ if this is a _Success_ .
 --
 <.> xref:#ifFailure__Consumer[ifFailure(Consumer)]
 +
 --
-Peeks into the _failure_ if its a _Failure_ .
+Peeks into the _failure_ if this is a _Failure_ .
 --
 <.> xref:#ifFailureFail__[ifFailureFail()]
 +
@@ -66,17 +66,17 @@ Throws _NoSuchElementException_ if _value_ is _null_ .
 <.> xref:#mapSuccess__Function[mapSuccess(Function)]
 +
 --
-Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to another if its a _Success_ . Otherwise if its a _Failure_ acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to another if this is a _Success_ . Otherwise if this is a _Failure_ acts as identity operator.
 --
 <.> xref:#mapFailure__UnaryOperator[mapFailure(UnaryOperator)]
 +
 --
-Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to another if its a _Failure_ . Otherwise if its a _Success_ acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to another if its a _Failure_ . Otherwise if this is a _Success_ acts as identity operator.
 --
 <.> xref:#mapEmptyToFailure__[mapEmptyToFailure()]
 +
 --
-Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to _Failure_ if its a _Success_ with an empty _value_ . Otherwise acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to _Failure_ if this is a _Success_ with an empty _value_ . Otherwise acts as identity operator.
 --
 <.> xref:#map__Function_Function[map(Function, Function)]
 +
@@ -91,12 +91,12 @@ Maps the contained _value_ or _failure_ to a new value of type _R_ using accordi
 <.> xref:#thenCall__Callable[thenCall(Callable)]
 +
 --
-If its a _Success_ , maps it to another based on given _Callable_ . Otherwise if its a _Failure_ acts as identity operator.
+If this is a _Success_ , maps it to another based on given _Callable_ . Otherwise if its a _Failure_ acts as identity operator.
 --
 <.> xref:#thenRun__ThrowingRunnable[thenRun(ThrowingRunnable)]
 +
 --
-If its a _Success_ , maps it to another based on given _ThrowingRunnable_ . Otherwise if its a _Failure_ acts as identity operator.
+If this is a _Success_ , maps it to another based on given _ThrowingRunnable_ . Otherwise if its a _Failure_ acts as identity operator.
 --
 
 == Members
@@ -104,22 +104,22 @@ If its a _Success_ , maps it to another based on given _ThrowingRunnable_ . Othe
 [#getValue__]
 === getValue()
 
-Optionally returns the contained _value_ based on presence, that is, if its a _Success_ and the value is not _null_ .
+Optionally returns the contained _value_ based on presence, that is, if this is a _Success_ and the value is not _null_ .
 
 [#getFailure__]
 === getFailure()
 
-Optionally returns the contained _failure_ based on presence, that is, if its a _Failure_ .
+Optionally returns the contained _failure_ based on presence, that is, if this is a _Failure_ .
 
 [#ifSuccess__Consumer]
 === ifSuccess(Consumer)
 
-Peeks into the _value_ if its a _Success_ .
+Peeks into the _value_ if this is a _Success_ .
 
 [#ifFailure__Consumer]
 === ifFailure(Consumer)
 
-Peeks into the _failure_ if its a _Failure_ .
+Peeks into the _failure_ if this is a _Failure_ .
 
 [#ifFailureFail__]
 === ifFailureFail()
@@ -134,17 +134,17 @@ Throws _NoSuchElementException_ if _value_ is _null_ .
 [#mapSuccess__Function]
 === mapSuccess(Function)
 
-Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to another if its a _Success_ . Otherwise if its a _Failure_ acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to another if this is a _Success_ . Otherwise if this is a _Failure_ acts as identity operator.
 
 [#mapFailure__UnaryOperator]
 === mapFailure(UnaryOperator)
 
-Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to another if its a _Failure_ . Otherwise if its a _Success_ acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to another if its a _Failure_ . Otherwise if this is a _Success_ acts as identity operator.
 
 [#mapEmptyToFailure__]
 === mapEmptyToFailure()
 
-Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to _Failure_ if its a _Success_ with an empty _value_ . Otherwise acts as identity operator.
+Maps this xref:refguide:commons:index/functional/Try.adoc[Try] to _Failure_ if this is a _Success_ with an empty _value_ . Otherwise acts as identity operator.
 
 [#map__Function_Function]
 === map(Function, Function)
@@ -159,9 +159,9 @@ Maps the contained _value_ or _failure_ to a new value of type _R_ using accordi
 [#thenCall__Callable]
 === thenCall(Callable)
 
-If its a _Success_ , maps it to another based on given _Callable_ . Otherwise if its a _Failure_ acts as identity operator.
+If this is a _Success_ , maps it to another based on given _Callable_ . Otherwise if its a _Failure_ acts as identity operator.
 
 [#thenRun__ThrowingRunnable]
 === thenRun(ThrowingRunnable)
 
-If its a _Success_ , maps it to another based on given _ThrowingRunnable_ . Otherwise if its a _Failure_ acts as identity operator.
+If this is a _Success_ , maps it to another based on given _ThrowingRunnable_ . Otherwise if its a _Failure_ acts as identity operator.
diff --git a/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/scalars/ScalarPanelAbstract.java b/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/scalars/ScalarPanelAbstract.java
index e0384902db..161fd23a7a 100644
--- a/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/scalars/ScalarPanelAbstract.java
+++ b/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/scalars/ScalarPanelAbstract.java
@@ -611,6 +611,7 @@ implements ScalarModelSubscriber {
     public void repaint(final AjaxRequestTarget target) {
         target.add(this);
     }
+
     /**
     *
     * @param paramModel - the action being invoked
@@ -618,7 +619,6 @@ implements ScalarModelSubscriber {
     *
     * @return - true if changed as a result of these pending arguments.
     */
-
    public Repaint updateIfNecessary(
            final @NonNull ParameterUiModel paramModel,
            final @NonNull Optional<AjaxRequestTarget> target) {
@@ -650,7 +650,6 @@ implements ScalarModelSubscriber {
            }
        }
 
-
        // repaint the entire form if visibility has changed
        if (!visibilityBefore || !visibilityAfter) {
            return Repaint.ENTIRE_FORM;
@@ -667,6 +666,4 @@ implements ScalarModelSubscriber {
                : Repaint.NOTHING;
    }
 
-
-
 }