Interface ItemDialogBody.Builder
- Enclosing interface:
ItemDialogBody
A builder for an item dialog body.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance ofItemDialogBody.description(@Nullable PlainMessageDialogBody description) Sets the description of the item dialog body, or null if not set.height(@org.jetbrains.annotations.Range(from=1L, to=256L) int height) Sets the height of the item body.showDecorations(boolean showDecorations) Sets whether to show decorations around the item.showTooltip(boolean showTooltip) Sets whether to show a tooltip for the item.width(@org.jetbrains.annotations.Range(from=1L, to=256L) int width) Sets the width of the item body.
-
Method Details
-
description
@Contract(value="_ -> this", mutates="this") ItemDialogBody.Builder description(@Nullable PlainMessageDialogBody description) Sets the description of the item dialog body, or null if not set.- Parameters:
description- the description of the body, or null- Returns:
- this builder
-
showDecorations
@Contract(value="_ -> this", mutates="this") ItemDialogBody.Builder showDecorations(boolean showDecorations) Sets whether to show decorations around the item.- Parameters:
showDecorations- true to show decorations, false otherwise- Returns:
- this builder
-
showTooltip
@Contract(value="_ -> this", mutates="this") ItemDialogBody.Builder showTooltip(boolean showTooltip) Sets whether to show a tooltip for the item.- Parameters:
showTooltip- true to show a tooltip, false otherwise- Returns:
- this builder
-
width
@Contract(value="_ -> this", mutates="this") ItemDialogBody.Builder width(@org.jetbrains.annotations.Range(from=1L, to=256L) int width) Sets the width of the item body.- Parameters:
width- the width, must be between 1 and 256- Returns:
- this builder
-
height
@Contract(value="_ -> this", mutates="this") ItemDialogBody.Builder height(@org.jetbrains.annotations.Range(from=1L, to=256L) int height) Sets the height of the item body.- Parameters:
height- the height, must be between 1 and 256- Returns:
- this builder
-
build
Builds a new instance ofItemDialogBody.- Returns:
- a new item dialog body instance
-