Skip to content

Commit 3a9c37b

Browse files
committed
Publish website
1 parent ed41f5c commit 3a9c37b

10 files changed

Lines changed: 1873 additions & 1666 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"code": "java.method.attributeWithDefaultAddedToAnnotationType",
4+
"description": "The annotation has a new attribute with a default value.",
5+
"newElement": "method react4j.annotations.Feature react4j.annotations.Input::observeOnRender()",
6+
"classification": {
7+
"SOURCE": "NON_BREAKING",
8+
"BINARY": "NON_BREAKING"
9+
},
10+
"attachments": {
11+
"classQualifiedName": "react4j.annotations.Input",
12+
"classSimpleName": "Input",
13+
"elementKind": "method",
14+
"methodName": "observeOnRender",
15+
"package": "react4j.annotations"
16+
}
17+
}
18+
]

api/index-all.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3130,6 +3130,11 @@ <h2 class="title" id="I:O">O</h2>
31303130
<dd>
31313131
<div class="block">Indicate whether the input should be annotated by <a href="https://arez.github.io/api/arez/annotations/Observable.html" title="class or interface in arez.annotations" class="external-link"><code>Observable</code></a>.</div>
31323132
</dd>
3133+
<dt><a href="react4j/annotations/Input.html#observeOnRender()" class="member-name-link">observeOnRender()</a> - Element in annotation interface react4j.annotations.<a href="react4j/annotations/Input.html" title="annotation interface in react4j.annotations">Input</a></dt>
3134+
<dd>
3135+
<div class="block">Return an enum indicating whether tracked renders should observe the input value during the generated render
3136+
prelude so that disposing the input can invalidate the render and trigger a rerender.</div>
3137+
</dd>
31333138
<dt><a href="react4j/ReactNode.html#of(byte)" class="member-name-link">of(byte)</a> - Static method in interface react4j.<a href="react4j/ReactNode.html" title="interface in react4j">ReactNode</a></dt>
31343139
<dd>&nbsp;</dd>
31353140
<dt><a href="react4j/ReactNode.html#of(double)" class="member-name-link">of(double)</a> - Static method in interface react4j.<a href="react4j/ReactNode.html" title="interface in react4j">ReactNode</a></dt>

api/member-search-index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/react4j/annotations/Input.Source.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h1 title="Enum Class Input.Source" class="title">Enum Class Input.Source</h1>
8585
<dd><a href="Input.html" title="annotation interface in react4j.annotations">Input</a></dd>
8686
</dl>
8787
<hr>
88-
<div class="type-signature"><span class="modifiers">public static enum </span><span class="element-name"><a href="../../src-html/react4j/annotations/Input.html#line-161">Input.Source</a></span>
88+
<div class="type-signature"><span class="modifiers">public static enum </span><span class="element-name"><a href="../../src-html/react4j/annotations/Input.html#line-176">Input.Source</a></span>
8989
<span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html" title="class or interface in java.lang" class="external-link">Enum</a>&lt;<a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a>&gt;</span></div>
9090
<div class="block">Enum where the input is sourced from.</div>
9191
</section>
@@ -164,14 +164,14 @@ <h2>Enum Constant Details</h2>
164164
<li>
165165
<section class="detail" id="DEFAULT">
166166
<h3>DEFAULT</h3>
167-
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type"><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.Source.html#line-166">DEFAULT</a></span></div>
167+
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type"><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.Source.html#line-181">DEFAULT</a></span></div>
168168
<div class="block">The input value is passed to the view during construction.</div>
169169
</section>
170170
</li>
171171
<li>
172172
<section class="detail" id="CONTEXT">
173173
<h3>CONTEXT</h3>
174-
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type"><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.Source.html#line-170">CONTEXT</a></span></div>
174+
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type"><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.Source.html#line-185">CONTEXT</a></span></div>
175175
<div class="block">The input value is retrieved from the react context.</div>
176176
</section>
177177
</li>
@@ -186,7 +186,7 @@ <h2>Method Details</h2>
186186
<li>
187187
<section class="detail" id="values()">
188188
<h3>values</h3>
189-
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a>[]</span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.Source.html#line-161">values</a></span>()</div>
189+
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a>[]</span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.Source.html#line-176">values</a></span>()</div>
190190
<div class="block">Returns an array containing the constants of this enum class, in
191191
the order they are declared.</div>
192192
<dl class="notes">
@@ -198,7 +198,7 @@ <h3>values</h3>
198198
<li>
199199
<section class="detail" id="valueOf(java.lang.String)">
200200
<h3>valueOf</h3>
201-
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.Source.html#line-161">valueOf</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;name)</span></div>
201+
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.Source.html#line-176">valueOf</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;name)</span></div>
202202
<div class="block">Returns the enum constant of this class with the specified name.
203203
The string must match <i>exactly</i> an identifier used to declare an
204204
enum constant in this class. (Extraneous whitespace characters are

api/react4j/annotations/Input.html

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,25 @@ <h2>Optional Element Summary</h2>
153153
<div class="col-last even-row-color">
154154
<div class="block">Indicate whether the input should be annotated by <a href="https://arez.github.io/api/arez/annotations/Observable.html" title="class or interface in arez.annotations" class="external-link"><code>Observable</code></a>.</div>
155155
</div>
156-
<div class="col-first odd-row-color"><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
157-
<div class="col-second odd-row-color"><code><a href="#qualifier()" class="member-name-link">qualifier</a></code></div>
156+
<div class="col-first odd-row-color"><code><a href="Feature.html" title="enum class in react4j.annotations">Feature</a></code></div>
157+
<div class="col-second odd-row-color"><code><a href="#observeOnRender()" class="member-name-link">observeOnRender</a></code></div>
158158
<div class="col-last odd-row-color">
159-
<div class="block">Return the qualifier used to access value from context.</div>
159+
<div class="block">Return an enum indicating whether tracked renders should observe the input value during the generated render
160+
prelude so that disposing the input can invalidate the render and trigger a rerender.</div>
160161
</div>
161-
<div class="col-first even-row-color"><code><a href="Feature.html" title="enum class in react4j.annotations">Feature</a></code></div>
162-
<div class="col-second even-row-color"><code><a href="#require()" class="member-name-link">require</a></code></div>
162+
<div class="col-first even-row-color"><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
163+
<div class="col-second even-row-color"><code><a href="#qualifier()" class="member-name-link">qualifier</a></code></div>
163164
<div class="col-last even-row-color">
164-
<div class="block">Setting indicating whether the input should be supplied when the view is constructed.</div>
165+
<div class="block">Return the qualifier used to access value from context.</div>
165166
</div>
166-
<div class="col-first odd-row-color"><code><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a></code></div>
167-
<div class="col-second odd-row-color"><code><a href="#source()" class="member-name-link">source</a></code></div>
167+
<div class="col-first odd-row-color"><code><a href="Feature.html" title="enum class in react4j.annotations">Feature</a></code></div>
168+
<div class="col-second odd-row-color"><code><a href="#require()" class="member-name-link">require</a></code></div>
168169
<div class="col-last odd-row-color">
170+
<div class="block">Setting indicating whether the input should be supplied when the view is constructed.</div>
171+
</div>
172+
<div class="col-first even-row-color"><code><a href="Input.Source.html" title="enum class in react4j.annotations">Input.Source</a></code></div>
173+
<div class="col-second even-row-color"><code><a href="#source()" class="member-name-link">source</a></code></div>
174+
<div class="col-last even-row-color">
169175
<div class="block">The setting controlling where the input value is source from.</div>
170176
</div>
171177
</div>
@@ -279,16 +285,12 @@ <h3>observable</h3>
279285
<li>
280286
<section class="detail" id="disposable()">
281287
<h3>disposable</h3>
282-
<div class="member-signature"><span class="return-type"><a href="Feature.html" title="enum class in react4j.annotations">Feature</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.html#line-119">disposable</a></span></div>
288+
<div class="member-signature"><span class="return-type"><a href="Feature.html" title="enum class in react4j.annotations">Feature</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.html#line-115">disposable</a></span></div>
283289
<div class="block">Return an enum indicating whether the view should check whether the value of the input is disposed
284290
prior to rendering. If the value is disposed then the render method will exit early and return null.
285291
If this parameter is set to <a href="Feature.html#AUTODETECT"><code>Feature.AUTODETECT</code></a> then the annotation processor will inspect the
286292
type of the input and treat it as <a href="Feature.html#ENABLE"><code>Feature.ENABLE</code></a> if the type is annotated with the <a href="https://arez.github.io/api/arez/annotations/ArezComponent.html" title="class or interface in arez.annotations" class="external-link"><code>ArezComponent</code></a>
287-
annotation or the <a href="https://arez.github.io/api/arez/annotations/ActAsComponent.html" title="class or interface in arez.annotations" class="external-link"><code>ActAsComponent</code></a> annotation.
288-
289-
<p>For tracked renders, disposable inputs whose declared type is annotated with <a href="https://arez.github.io/api/arez/annotations/ArezComponent.html" title="class or interface in arez.annotations" class="external-link"><code>ArezComponent</code></a> or
290-
<a href="https://arez.github.io/api/arez/annotations/ActAsComponent.html" title="class or interface in arez.annotations" class="external-link"><code>ActAsComponent</code></a> will also be observed during render so that disposing the input can invalidate the
291-
render and trigger a rerender.</p></div>
293+
annotation or the <a href="https://arez.github.io/api/arez/annotations/ActAsComponent.html" title="class or interface in arez.annotations" class="external-link"><code>ActAsComponent</code></a> annotation.</div>
292294
<dl class="notes">
293295
<dt>Returns:</dt>
294296
<dd>an enum indicating whether the view should check whether the value of the input is disposed prior to rendering.</dd>
@@ -300,9 +302,36 @@ <h3>disposable</h3>
300302
</section>
301303
</li>
302304
<li>
305+
<section class="detail" id="observeOnRender()">
306+
<h3>observeOnRender</h3>
307+
<div class="member-signature"><span class="return-type"><a href="Feature.html" title="enum class in react4j.annotations">Feature</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.html#line-134">observeOnRender</a></span></div>
308+
<div class="block">Return an enum indicating whether tracked renders should observe the input value during the generated render
309+
prelude so that disposing the input can invalidate the render and trigger a rerender.
310+
This parameter is independent of <a href="#disposable()"><code>disposable()</code></a> and is only relevant to views with render tracking enabled.
311+
312+
<p>If this parameter is set to <a href="Feature.html#AUTODETECT"><code>Feature.AUTODETECT</code></a> then the annotation processor will inspect the
313+
type of the input and treat it as <a href="Feature.html#ENABLE"><code>Feature.ENABLE</code></a> in the following circumstances:</p>
314+
<ul>
315+
<li>the type is compatible with <code>arez.component.ComponentObservable</code>.</li>
316+
<li>the type is annotated with <a href="https://arez.github.io/api/arez/annotations/ArezComponent.html" title="class or interface in arez.annotations" class="external-link"><code>ArezComponent</code></a> and the <a href="https://arez.github.io/api/arez/annotations/ArezComponent.html#observable()" title="class or interface in arez.annotations" class="external-link"><code>ArezComponent.observable()</code></a> parameter
317+
resolves to enabled.</li>
318+
<li>the type is annotated with <a href="https://arez.github.io/api/arez/annotations/ActAsComponent.html" title="class or interface in arez.annotations" class="external-link"><code>ActAsComponent</code></a>. In this scenario the generated code will verify
319+
compatibility with <code>arez.component.ComponentObservable</code> at runtime before observing the value.</li>
320+
</ul></div>
321+
<dl class="notes">
322+
<dt>Returns:</dt>
323+
<dd>an enum indicating whether tracked renders should observe the input value during render.</dd>
324+
</dl>
325+
<dl class="notes">
326+
<dt>Default:</dt>
327+
<dd>AUTODETECT</dd>
328+
</dl>
329+
</section>
330+
</li>
331+
<li>
303332
<section class="detail" id="dependency()">
304333
<h3>dependency</h3>
305-
<div class="member-signature"><span class="return-type"><a href="Feature.html" title="enum class in react4j.annotations">Feature</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.html#line-131">dependency</a></span></div>
334+
<div class="member-signature"><span class="return-type"><a href="Feature.html" title="enum class in react4j.annotations">Feature</a></span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.html#line-146">dependency</a></span></div>
306335
<div class="block">Return an enum indicating whether the view should be disposed if the input is disposed. To enable this feature,
307336
the input MUST set <a href="#immutable()"><code>immutable()</code></a> to <code>true</code>, <a href="#disposable()"><code>disposable()</code></a> MUST resolve to
308337
<a href="Feature.html#ENABLE"><code>Feature.ENABLE</code></a>. The type of the input is expected to implement the <a href="https://arez.github.io/api/arez/component/DisposeNotifier.html" title="class or interface in arez.component" class="external-link"><code>DisposeNotifier</code></a>
@@ -322,7 +351,7 @@ <h3>dependency</h3>
322351
<li>
323352
<section class="detail" id="immutable()">
324353
<h3>immutable</h3>
325-
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.html#line-156">immutable</a></span></div>
354+
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../src-html/react4j/annotations/Input.html#line-171">immutable</a></span></div>
326355
<div class="block">True if the input is not expected to change after initial value is set. If the value of the input does change
327356
then it is expected that the view will be unmounted and a new view created. This is implemented
328357
by synthesizing a key for the view every time the view that is derived from this input. To enable this

0 commit comments

Comments
 (0)