You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extends <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><<ahref="../../react4j/annotations/Input.Source.html" title="enum in react4j.annotations">Input.Source</a>></pre>
125
125
<divclass="block">Enum where the input is sourced from.</div>
126
126
</li>
@@ -213,7 +213,7 @@ <h3>Enum Constant Detail</h3>
213
213
<ulclass="blockList">
214
214
<liclass="blockList">
215
215
<h4>DEFAULT</h4>
216
-
<pre>public static final <ahref="../../react4j/annotations/Input.Source.html" title="enum in react4j.annotations">Input.Source</a><ahref="../../src-html/react4j/annotations/Input.Source.html#line.166">DEFAULT</a></pre>
216
+
<pre>public static final <ahref="../../react4j/annotations/Input.Source.html" title="enum in react4j.annotations">Input.Source</a><ahref="../../src-html/react4j/annotations/Input.Source.html#line.157">DEFAULT</a></pre>
217
217
<divclass="block">The input value is passed to the view during construction.</div>
218
218
</li>
219
219
</ul>
@@ -223,7 +223,7 @@ <h4>DEFAULT</h4>
223
223
<ulclass="blockListLast">
224
224
<liclass="blockList">
225
225
<h4>CONTEXT</h4>
226
-
<pre>public static final <ahref="../../react4j/annotations/Input.Source.html" title="enum in react4j.annotations">Input.Source</a><ahref="../../src-html/react4j/annotations/Input.Source.html#line.170">CONTEXT</a></pre>
226
+
<pre>public static final <ahref="../../react4j/annotations/Input.Source.html" title="enum in react4j.annotations">Input.Source</a><ahref="../../src-html/react4j/annotations/Input.Source.html#line.161">CONTEXT</a></pre>
227
227
<divclass="block">The input value is retrieved from the react context.</div>
228
228
</li>
229
229
</ul>
@@ -241,7 +241,7 @@ <h3>Method Detail</h3>
241
241
<ulclass="blockList">
242
242
<liclass="blockList">
243
243
<h4>values</h4>
244
-
<pre>public static <ahref="../../react4j/annotations/Input.Source.html" title="enum in react4j.annotations">Input.Source</a>[] <ahref="../../src-html/react4j/annotations/Input.Source.html#line.161">values</a>()</pre>
244
+
<pre>public static <ahref="../../react4j/annotations/Input.Source.html" title="enum in react4j.annotations">Input.Source</a>[] <ahref="../../src-html/react4j/annotations/Input.Source.html#line.152">values</a>()</pre>
245
245
<divclass="block">Returns an array containing the constants of this enum type, in
246
246
the order they are declared. This method may be used to iterate
247
247
over the constants as follows:
@@ -261,7 +261,7 @@ <h4>values</h4>
261
261
<ulclass="blockListLast">
262
262
<liclass="blockList">
263
263
<h4>valueOf</h4>
264
-
<pre>public static <ahref="../../react4j/annotations/Input.Source.html" title="enum in react4j.annotations">Input.Source</a> <ahref="../../src-html/react4j/annotations/Input.Source.html#line.161">valueOf</a>(<ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
264
+
<pre>public static <ahref="../../react4j/annotations/Input.Source.html" title="enum in react4j.annotations">Input.Source</a> <ahref="../../src-html/react4j/annotations/Input.Source.html#line.152">valueOf</a>(<ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
265
265
<divclass="block">Returns the enum constant of this type with the specified name.
266
266
The string must match <i>exactly</i> an identifier used to declare an
267
267
enum constant in this type. (Extraneous whitespace characters are
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/Input.html#line.95">shouldUpdateOnChange</a></pre>
315
-
<divclass="block">Indicate whether changing the value of the input should schedule a re-render.
316
-
If set to <ahref="../../react4j/annotations/Feature.html#AUTODETECT"><code>Feature.AUTODETECT</code></a> then the annotation processor will treat it as
317
-
<ahref="../../react4j/annotations/Feature.html#ENABLE"><code>Feature.ENABLE</code></a> unless <ahref="../../react4j/annotations/Input.html#immutable--"><code>immutable()</code></a> is set to <code>true</code>.</div>
318
-
<dl>
319
-
<dt><spanclass="returnLabel">Returns:</span></dt>
320
-
<dd>the enum indicating whether input should trigger a render if it is modified.</dd>
321
-
</dl>
322
-
<dl>
323
-
<dt>Default:</dt>
324
-
<dd>react4j.annotations.Feature.AUTODETECT</dd>
325
-
</dl>
326
-
</li>
327
-
</ul>
328
-
</li>
329
-
</ul>
330
-
<ulclass="blockList">
331
302
<liclass="blockList"><aname="observable--">
332
303
<!-- -->
333
304
</a>
334
305
<ulclass="blockList">
335
306
<liclass="blockList">
336
307
<h4>observable</h4>
337
-
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/Input.html#line.108">observable</a></pre>
308
+
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/Input.html#line.99">observable</a></pre>
338
309
<divclass="block">Indicate whether the input should be annotated by <ahref="https://arez.github.io/api/arez/annotations/Observable.html?is-external=true" title="class or interface in arez.annotations"><code>Observable</code></a>.
339
310
340
311
<p>If set to <ahref="../../react4j/annotations/Feature.html#AUTODETECT"><code>Feature.AUTODETECT</code></a> then the input will be observable if and only if:</p>
341
312
<ul>
342
-
<li><ahref="../../react4j/annotations/Input.html#shouldUpdateOnChange--"><code>shouldUpdateOnChange()</code></a> is not set to <ahref="../../react4j/annotations/Feature.html#DISABLE"><code>Feature.DISABLE</code></a>.</li>
313
+
<li><ahref="../../react4j/annotations/Input.html#immutable--"><code>immutable()</code></a>()} is not set to <code>true</code>.</li>
343
314
<li>the view has at least one method annotated with <ahref="https://arez.github.io/api/arez/annotations/Memoize.html?is-external=true" title="class or interface in arez.annotations"><code>Memoize</code></a> or <ahref="https://arez.github.io/api/arez/annotations/Observe.html?is-external=true" title="class or interface in arez.annotations"><code>Observe</code></a>.</li>
344
315
</ul></div>
345
316
<dl>
@@ -361,7 +332,7 @@ <h4>observable</h4>
361
332
<ulclass="blockList">
362
333
<liclass="blockList">
363
334
<h4>disposable</h4>
364
-
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/Input.html#line.119">disposable</a></pre>
335
+
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/Input.html#line.110">disposable</a></pre>
365
336
<divclass="block">Return an enum indicating whether the view should check whether the value of the input is disposed
366
337
prior to rendering. If the value is disposed then the render method will exit early and return null.
367
338
If this parameter is set to <ahref="../../react4j/annotations/Feature.html#AUTODETECT"><code>Feature.AUTODETECT</code></a> then the annotation processor will inspect the
@@ -386,7 +357,7 @@ <h4>disposable</h4>
386
357
<ulclass="blockList">
387
358
<liclass="blockList">
388
359
<h4>dependency</h4>
389
-
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/Input.html#line.131">dependency</a></pre>
360
+
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/Input.html#line.122">dependency</a></pre>
390
361
<divclass="block">Return an enum indicating whether the view should be disposed if the input is disposed. To enable this feature,
391
362
the input MUST set <ahref="../../react4j/annotations/Input.html#immutable--"><code>immutable()</code></a> to <code>true</code>, <ahref="../../react4j/annotations/Input.html#disposable--"><code>disposable()</code></a> MUST resolve to
392
363
<ahref="../../react4j/annotations/Feature.html#ENABLE"><code>Feature.ENABLE</code></a>. The type of the input is expected to implement the <ahref="https://arez.github.io/api/arez/component/DisposeNotifier.html?is-external=true" title="class or interface in arez.component"><code>DisposeNotifier</code></a>
<pre>public static final <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a><ahref="../../src-html/react4j/annotations/View.Type.html#line.32">STATEFUL</a></pre>
229
+
<pre>public static final <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a><ahref="../../src-html/react4j/annotations/View.Type.html#line.31">STATEFUL</a></pre>
230
230
<divclass="block">The view can store state in fields, can declared lifecycle methods and may contain methods annotated by
231
231
the <ahref="../../react4j/annotations/ScheduleRender.html" title="annotation in react4j.annotations"><code>ScheduleRender</code></a> annotation.
232
-
The view will be scheduled to re-render if the views container re-renders and any inputs with
233
-
<ahref="../../react4j/annotations/Input.html#shouldUpdateOnChange--"><code>Input.shouldUpdateOnChange()</code></a> set to <code>true</code> has changed value from last render. A input
234
-
is considered changed if when the new value and the old value are passed to
232
+
The view will be scheduled to re-render if the views container re-renders and any input has changed
233
+
value from last render. A input is considered changed when the new value and the old value are passed to
235
234
<ahref="https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html?is-external=true#equals-java.lang.Object-java.lang.Object-" title="class or interface in java.util"><code>Objects.equals(Object, Object)</code></a> and that method returns <code>false</code>. A view will also
236
235
be scheduled to re-render if the view invokes a method annotated by the <ahref="../../react4j/annotations/ScheduleRender.html" title="annotation in react4j.annotations"><code>ScheduleRender</code></a> annotation.</div>
237
236
</li>
@@ -242,7 +241,7 @@ <h4>STATEFUL</h4>
242
241
<ulclass="blockList">
243
242
<liclass="blockList">
244
243
<h4>TRACKING</h4>
245
-
<pre>public static final <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a><ahref="../../src-html/react4j/annotations/View.Type.html#line.37">TRACKING</a></pre>
244
+
<pre>public static final <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a><ahref="../../src-html/react4j/annotations/View.Type.html#line.36">TRACKING</a></pre>
246
245
<divclass="block">The view is a <ahref="../../react4j/annotations/View.Type.html#STATEFUL"><code>STATEFUL</code></a> view <b>and</b> will re-render the view if any Arez
247
246
dependencies change. The framework uses the <ahref="https://arez.github.io/api/arez/annotations/Observe.html?is-external=true" title="class or interface in arez.annotations"><code>Observe</code></a> annotation to track Arez dependencies.</div>
248
247
</li>
@@ -253,7 +252,7 @@ <h4>TRACKING</h4>
253
252
<ulclass="blockList">
254
253
<liclass="blockList">
255
254
<h4>MAYBE_TRACKING</h4>
256
-
<pre>public static final <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a><ahref="../../src-html/react4j/annotations/View.Type.html#line.42">MAYBE_TRACKING</a></pre>
255
+
<pre>public static final <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a><ahref="../../src-html/react4j/annotations/View.Type.html#line.41">MAYBE_TRACKING</a></pre>
257
256
<divclass="block">The view is a <ahref="../../react4j/annotations/View.Type.html#TRACKING"><code>TRACKING</code></a> view but it will not generate an invariant failure if a
258
257
render results in zero Arez dependencies.</div>
259
258
</li>
@@ -264,7 +263,7 @@ <h4>MAYBE_TRACKING</h4>
264
263
<ulclass="blockListLast">
265
264
<liclass="blockList">
266
265
<h4>NO_RENDER</h4>
267
-
<pre>public static final <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a><ahref="../../src-html/react4j/annotations/View.Type.html#line.48">NO_RENDER</a></pre>
266
+
<pre>public static final <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a><ahref="../../src-html/react4j/annotations/View.Type.html#line.47">NO_RENDER</a></pre>
268
267
<divclass="block">The view must not have a method annotated with <ahref="../../react4j/annotations/Render.html" title="annotation in react4j.annotations"><code>Render</code></a>.
269
268
This is useful for "view" instances that provide capabilities or interact
270
269
with services and thus need not have a render method.</div>
Copy file name to clipboardExpand all lines: api/react4j/annotations/View.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ <h3>Element Detail</h3>
159
159
<liclass="blockList">
160
160
<h4>name</h4>
161
161
<pre><ahref="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a>
162
-
public abstract <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <ahref="../../src-html/react4j/annotations/View.html#line.62">name</a></pre>
162
+
public abstract <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <ahref="../../src-html/react4j/annotations/View.html#line.61">name</a></pre>
163
163
<divclass="block">Return the name of the view.
164
164
The value defaults to the simple name name of the class. If the value is specified, the
165
165
value must conform to the requirements of a java identifier. It should also be unique
@@ -186,7 +186,7 @@ <h4>name</h4>
186
186
<liclass="blockList">
187
187
<h4>type</h4>
188
188
<pre><ahref="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a>
189
-
public abstract <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a> <ahref="../../src-html/react4j/annotations/View.html#line.72">type</a></pre>
189
+
public abstract <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations">View.Type</a> <ahref="../../src-html/react4j/annotations/View.html#line.71">type</a></pre>
190
190
<divclass="block">Enum indicating the capabilities of the view.
191
191
See the <ahref="../../react4j/annotations/View.Type.html" title="enum in react4j.annotations"><code>View.Type</code></a> enum for further details.</div>
192
192
<dl>
@@ -210,7 +210,7 @@ <h4>type</h4>
210
210
<ulclass="blockList">
211
211
<liclass="blockList">
212
212
<h4>inject</h4>
213
-
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/View.html#line.85">inject</a></pre>
213
+
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/View.html#line.84">inject</a></pre>
214
214
<divclass="block">Enum controlling whether javax.inject integration is generated for the view.
215
215
The generated class is the same name as the view with the "Factory" suffix.
216
216
React4j only supports constructor injection and thus this MUST NOT be set to <ahref="../../react4j/annotations/Feature.html#ENABLE"><code>Feature.ENABLE</code></a>
@@ -237,7 +237,7 @@ <h4>inject</h4>
237
237
<ulclass="blockListLast">
238
238
<liclass="blockList">
239
239
<h4>sting</h4>
240
-
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/View.html#line.98">sting</a></pre>
240
+
<pre>public abstract <ahref="../../react4j/annotations/Feature.html" title="enum in react4j.annotations">Feature</a> <ahref="../../src-html/react4j/annotations/View.html#line.97">sting</a></pre>
241
241
<divclass="block">Enum controlling whether Sting injection integration is generated for the view.
242
242
The generated class is the same name as the view with the "Factory" suffix.
243
243
React4j only supports constructor injection and thus this MUST NOT be set to <ahref="../../react4j/annotations/Feature.html#ENABLE"><code>Feature.ENABLE</code></a>
0 commit comments