A builder for Card
objects.
Methods
Method | Return type | Brief description |
---|---|---|
addCardAction(cardAction) | CardBuilder | Adds a CardAction to this Card. |
addSection(section) | CardBuilder | Adds a section to this card. |
build() | Card | Builds the current card and validates it. |
setHeader(cardHeader) | CardBuilder | Sets the header for this card. |
setName(name) | CardBuilder | Sets the name for this card. |
Detailed documentation
addCardAction(cardAction)
Adds a CardAction
to this Card.
Parameters
Name | Type | Description |
---|---|---|
cardAction | CardAction | the CardAction to use. |
Return
CardBuilder
— this object, for chaining.
addSection(section)
Adds a section to this card.
Parameters
Name | Type | Description |
---|---|---|
section | CardSection | the CardSection to use. |
Return
CardBuilder
— this object, for chaining.
build()
setHeader(cardHeader)
Sets the header for this card.
Parameters
Name | Type | Description |
---|---|---|
cardHeader | CardHeader | the CardHeader to use. |
Return
CardBuilder
— this object, for chaining.
setName(name)
Sets the name for this card. The name can be used for navigation.
Parameters
Name | Type | Description |
---|---|---|
name | String | the name. |
Return
CardBuilder
— this object, for chaining.