Work with Fields

Use the Field class to work with fields in Slack.

Field Class

Represents a field.

Field Methods

The following are methods for Field.

getTitle()

Signature

public String getTitle()

Return Value

Type: String

getValue()

Signature

public String getValue()

Return Value

Type: String

isValueShortEnough()

Signature

public Boolean isValueShortEnough()

Return Value

Type: Boolean

setTitle(title)

Signature

public void setTitle(String title)

Parameters

title

Type: String

Return Value

Type: void

setValue(value)

Signature

public void setValue(String value)

Parameters

value

Type: String

Return Value

Type: void

setValueShortEnough(valueShortEnough)

Signature

public void setValueShortEnough(Boolean valueShortEnough)

Parameters

valueShortEnough

Type: Boolean

Return Value

Type: void