@PublicApi public final class CloneOptionConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static CloneOptionConfiguration |
DO_NOT_DISPLAY
An instance of CloneOptionConfiguration that indicates the clone option should not be displayed on the clone dialog.
|
Modifier and Type | Method and Description |
---|---|
String |
getOptionLabel() |
boolean |
isOptionSelectedByDefault() |
CloneOptionConfiguration |
selectOptionByDefault()
Creates an instance of CloneOptionConfiguration to represent a clone option that gets displayed in the clone dialog
with the same label as this option's label and is selected by default.
|
boolean |
shouldDisplayOption() |
static CloneOptionConfiguration |
withOptionLabel(String optionLabel)
Creates an instance of CloneOptionConfiguration to represent a clone option that gets displayed in the clone dialog
with the specified label.
|
public static final CloneOptionConfiguration DO_NOT_DISPLAY
public boolean shouldDisplayOption()
@Nonnull public String getOptionLabel()
public boolean isOptionSelectedByDefault()
@Nonnull public static CloneOptionConfiguration withOptionLabel(String optionLabel)
optionLabel
- Label of clone option@Nonnull public CloneOptionConfiguration selectOptionByDefault()
Copyright © 2002-2021 Atlassian. All Rights Reserved.