Class WorkflowButtonElement
java.lang.Object
com.slack.api.model.block.element.BlockElement
com.slack.api.model.block.element.WorkflowButtonElement
https://api.slack.com/reference/block-kit/block-elements#workflow_button
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowButtonElement
(String actionId, PlainTextObject text, WorkflowObject workflow, String style, String accessibilityLabel) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
A label for longer descriptive text about a button element.getStyle()
Decorates buttons with alternative visual color schemes.getText()
A text object that defines the button's text.getType()
A workflow object that contains details about the workflow that will run when the button is clicked.int
hashCode()
void
setAccessibilityLabel
(String accessibilityLabel) A label for longer descriptive text about a button element.void
setActionId
(String actionId) void
Decorates buttons with alternative visual color schemes.void
setText
(PlainTextObject text) A text object that defines the button's text.void
setWorkflow
(WorkflowObject workflow) A workflow object that contains details about the workflow that will run when the button is clicked.toString()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
WorkflowButtonElement
public WorkflowButtonElement() -
WorkflowButtonElement
public WorkflowButtonElement(String actionId, PlainTextObject text, WorkflowObject workflow, String style, String accessibilityLabel)
-
-
Method Details
-
builder
-
getType
-
getActionId
-
getText
A text object that defines the button's text. Can only be of type: plain_text. text may truncate with ~30 characters. Maximum length for the text in this field is 75 characters. -
getWorkflow
A workflow object that contains details about the workflow that will run when the button is clicked. -
getStyle
Decorates buttons with alternative visual color schemes. Use this option with restraint. primary gives buttons a green outline and text, ideal for affirmation or confirmation actions. primary should only be used for one button within a set. danger gives buttons a red outline and text, and should be used when the action is destructive. Use danger even more sparingly than primary. If you don't include this field, the default button style will be used. -
getAccessibilityLabel
A label for longer descriptive text about a button element. This label will be read out by screen readers instead of the button text object. Maximum length for this field is 75 characters. -
setActionId
-
setText
A text object that defines the button's text. Can only be of type: plain_text. text may truncate with ~30 characters. Maximum length for the text in this field is 75 characters. -
setWorkflow
A workflow object that contains details about the workflow that will run when the button is clicked. -
setStyle
Decorates buttons with alternative visual color schemes. Use this option with restraint. primary gives buttons a green outline and text, ideal for affirmation or confirmation actions. primary should only be used for one button within a set. danger gives buttons a red outline and text, and should be used when the action is destructive. Use danger even more sparingly than primary. If you don't include this field, the default button style will be used. -
setAccessibilityLabel
A label for longer descriptive text about a button element. This label will be read out by screen readers instead of the button text object. Maximum length for this field is 75 characters. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-