public abstract class DynamicEnumParameter<T> extends Object
DynamicEnumParameterSettings
to define a supplier for the
items. Alternatively, use allowedValues to supply items.
allowedValues is preferred. If allowedValues is null, you have to use DynamicEnumParameterSettings
.Constructor and Description |
---|
DynamicEnumParameter()
Creates a new instance with null value
|
DynamicEnumParameter(T value)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
List<T> |
getAllowedValues()
Returns the list of allowed choices
Please note that if isEditable() is true, other options might be available
|
String |
getSearchString(T value)
The search string used for the searchable mode
|
T |
getValue() |
boolean |
isEditable()
If this returns true, the user can freely edit the entry
|
Icon |
renderIcon(T value)
Function that renders the icon.
|
String |
renderLabel(T value)
Function that renders the label.
|
String |
renderTooltip(T value)
Function that renders the tooltip.
|
void |
setAllowedValues(List<T> allowedValues) |
void |
setValue(T value) |
public DynamicEnumParameter()
public DynamicEnumParameter(T value)
value
- initial valuepublic T getValue()
public void setValue(T value)
public List<T> getAllowedValues()
public String renderLabel(T value)
value
- the valuepublic String renderTooltip(T value)
value
- the tooltippublic Icon renderIcon(T value)
value
- the valuepublic String getSearchString(T value)
public boolean isEditable()
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.