public static class ComponentHelper.Options
extends java.lang.Object
| Constructor and Description |
|---|
Options()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
layoutResource()
Returns the layout resource.
|
ComponentHelper.Options |
layoutResource(Resource r)
Sets the layout resource.
|
boolean |
rootField()
Returns
true if the renderer (the field) should render
itself as root field. |
ComponentHelper.Options |
rootField(boolean flag)
Sets
true to make the renderer (the field) should render
itself as root field; false otherwise. |
Tag |
tag()
Returns the tag.
|
ComponentHelper.Options |
tag(Tag tag)
Sets the tag.
|
public Tag tag()
public ComponentHelper.Options tag(Tag tag)
tag - the tagpublic boolean rootField()
true if the renderer (the field) should render
itself as root field. See rootField(boolean) for details.true if the renderer (the field) should render
itself as root field.public ComponentHelper.Options rootField(boolean flag)
true to make the renderer (the field) should render
itself as root field; false otherwise.
A root field is a field that acts in its own context, instead of as
part of a composite field. For example, sizing field consists of
weight and height fields. So sizing field is a composite field and
wants to leverage the existing number field for width and height. In
this case when sizing field is including (
ComponentHelper.include(Resource, Options)) the number field,
it should set this option as false.
The field implementation is free to interpret the exact behaviour of root/non-root field. Most likely scenario, the root field will handle it own sizing state (e.g. inline-block/block state), while non root field will not, where the parent composite field is managing it.
flag - the flagpublic Resource layoutResource()
public ComponentHelper.Options layoutResource(Resource r)
r - the layout resource to set"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"