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 interfaceConfigurationBuilder.Applier<M>Applier.static classConfigurationBuilder.MessageOnlyApplyExceptionThrown fromConfigurationBuilder.Applierto indicate message only error.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(java.lang.String label, ConfigurationBuilder.Applier<M> applier)Configures aConfigurationBuilder.Applierto apply the configured model.voidclose(CloseListener closeListener)Specifies theCloseListener.voiderror(ErrorListener errorListener)Specifies theErrorListener.ConfigurationBuilder<M>title(java.lang.String title)Specifies the label for this configuration.voidvalidate(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.Applierto apply the configured model.- Parameters:
label- Label for the applyingActioner.applier-ConfigurationBuilder.Applierto apply the configured model.
-
close
void close(CloseListener closeListener)
Specifies theCloseListener.- Parameters:
closeListener-CloseListener.
-
-