Class PropertyTypeSelection.Builder
java.lang.Object
com.pnfsoftware.jeb.core.properties.impl.PropertyTypeSelection.Builder
- Enclosing class:
PropertyTypeSelection
Builder used to define a selection property type.
-
Method Summary
Modifier and TypeMethodDescriptionaddDefaultEntry(int id, String value, String description) Add an entry and mark it as the default selection.Add a selectable entry.build()Build the selection property type.create()Create a builder.setDefault(int id) Set the default selection by identifier.Set the default selection entry.
-
Method Details
-
create
Create a builder.- Returns:
- a new builder
-
addDefaultEntry
Add an entry and mark it as the default selection.- Parameters:
id- stored integer identifiervalue- display valuedescription- optional description- Returns:
- this builder
-
addEntry
Add a selectable entry.- Parameters:
id- stored integer identifiervalue- display valuedescription- optional description- Returns:
- this builder
-
setDefault
Set the default selection entry.- Parameters:
def- entry to use as the default selection- Returns:
- this builder
-
setDefault
Set the default selection by identifier.- Parameters:
id- identifier of the default entry- Returns:
- this builder
-
build
Build the selection property type.- Returns:
- the property type
-