Package net.officefloor.gef.configurer
Interface ConfigurationBuilder<M>
-
- All Superinterfaces:
InputBuilder<M>
,ItemBuilder<M>
- All Known Implementing Classes:
AbstractConfigurationBuilder
,Configurer
public interface ConfigurationBuilder<M> extends InputBuilder<M>
Builds the configuration.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConfigurationBuilder.Applier<M>
Applier.static class
ConfigurationBuilder.MessageOnlyApplyException
Thrown fromConfigurationBuilder.Applier
to indicate message only error.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(java.lang.String label, ConfigurationBuilder.Applier<M> applier)
Configures aConfigurationBuilder.Applier
to apply the configured model.void
close(CloseListener closeListener)
Specifies theCloseListener
.void
error(ErrorListener errorListener)
Specifies theErrorListener
.ConfigurationBuilder<M>
title(java.lang.String title)
Specifies the label for this configuration.void
validate(ValueValidator<M,M> validator)
Validates the model.-
Methods inherited from interface net.officefloor.gef.configurer.InputBuilder
choices, clazz, list, map, multiple, optional, properties, resource, select
-
Methods inherited from interface net.officefloor.gef.configurer.ItemBuilder
flag, text
-
-
-
-
Method Detail
-
title
ConfigurationBuilder<M> title(java.lang.String title)
Specifies the label for this configuration.- Parameters:
title
- Title for this configuration.- Returns:
this
.
-
validate
void validate(ValueValidator<M,M> validator)
Validates the model.- Parameters:
validator
-ValueValidator
.
-
error
void error(ErrorListener errorListener)
Specifies theErrorListener
.- Parameters:
errorListener
-ErrorListener
.
-
apply
void apply(java.lang.String label, ConfigurationBuilder.Applier<M> applier)
Configures aConfigurationBuilder.Applier
to apply the configured model.- Parameters:
label
- Label for the applyingActioner
.applier
-ConfigurationBuilder.Applier
to apply the configured model.
-
close
void close(CloseListener closeListener)
Specifies theCloseListener
.- Parameters:
closeListener
-CloseListener
.
-
-