Package com.adobe.granite.ui.components
Class Options
- java.lang.Object
 - 
- com.adobe.granite.ui.components.Options
 
 
- 
- Direct Known Subclasses:
 ComponentHelper.Options
public class Options extends java.lang.ObjectThe class representing the options during Sling include. 
- 
- 
Constructor Summary
Constructors Constructor Description Options() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanrootField()Returnstrueif the renderer (the field) should render itself as root field.OptionsrootField(boolean flag)Setstrueto make the renderer (the field) should render itself as root field;falseotherwise.Tagtag()Returns the tag.Optionstag(Tag tag)Sets the tag. 
 - 
 
- 
- 
Method Detail
- 
tag
@CheckForNull public Tag tag()
Returns the tag.- Returns:
 - the tag
 
 
- 
tag
@Nonnull public Options tag(@CheckForNull Tag tag)
Sets the tag.- Parameters:
 tag- the tag- Returns:
 - the options
 
 
- 
rootField
public boolean rootField()
Returnstrueif the renderer (the field) should render itself as root field. SeerootField(boolean)for details.- Returns:
 trueif the renderer (the field) should render itself as root field.
 
- 
rootField
@Nonnull public Options rootField(boolean flag)
Setstrueto make the renderer (the field) should render itself as root field;falseotherwise.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(org.apache.sling.api.resource.Resource, ComponentHelper.Options)) the number field, it should set this option asfalse.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.
- Parameters:
 flag- the flag- Returns:
 - this instance
 
 
 - 
 
 -