public class FloatingActionButtonBuilder extends AbstractComponentBuilder<FloatingActionButton>
Constructor and Description |
---|
FloatingActionButtonBuilder(ViewContext context,
String tagName,
Map<String,String> attributes) |
Modifier and Type | Method and Description |
---|---|
FloatingActionButton |
build() |
FloatingActionButtonBuilder |
icon(char icon) |
Object |
parseConstraint(String constraint) |
FloatingActionButtonBuilder |
target(String target)
Sets a selector to specify the "target" component for this floating action button.
|
FloatingActionButtonBuilder |
uiid(String uiid)
Sets the UIID of the button.
|
doNotAddToParentContainer, getAttribute, getAttributes, getComponent, getContext, getParentContainer, getTagName, hasAttribute, setParentContainer
public FloatingActionButtonBuilder(ViewContext context, String tagName, Map<String,String> attributes)
public FloatingActionButtonBuilder uiid(String uiid)
Sets the UIID of the button.
uiid
- public FloatingActionButtonBuilder icon(char icon)
public FloatingActionButtonBuilder target(String target)
Sets a selector to specify the "target" component for this floating action button. The target component is the one that the button will hover above, and anchor itself to. If no target is specified, then the fab will target the "parent" container in the component hierarchy.
target
- Selector that identifies target component. See ComponentSelector
public FloatingActionButton build()
Copyright © 2021. All Rights Reserved.