Class ButtonFormField.ButtonFormFieldBuilder

java.lang.Object
com.github.tadukoo.view.form.field.FormField.FormFieldBuilder<String>
com.github.tadukoo.view.form.field.ButtonFormField.ButtonFormFieldBuilder
Enclosing class:
ButtonFormField

public static class ButtonFormField.ButtonFormFieldBuilder extends FormField.FormFieldBuilder<String>
Builder to be used to create a ButtonFormField. It has the following parameters:
ButtonFormField Parameters
Name Description Default Value or Required
key The name of the field (used as a key in Forms) Required
defaultValue The starting value of the field Defaults to null
labelType The LabelType to use for the field Defaults to LabelType.NONE
labelForegroundPaint The SizablePaint for the foreground of the Label Defaults to null (to use the Look & Feel's default Label foreground paint)
labelBackgroundPaint The SizablePaint for the background of the Label Defaults to null (to use the Look & Feel's default Label background paint)
labelFont The Font to use for the Label - specified as a FontFamily, style, and size Defaults to null (to use the Look & Feel's default Label font)
labelShape The ShapeInfo to use for the Label Defaults to null (to use the Look & Feel's default Label shape)
labelBorder The Border to use for the Label Defaults to null (to use the Look & Feel's default Label border)
rowPos The row position of the field Required
colPos The column position of the field Required
rowSpan The row span of the field Defaults to 1
colSpan The column span of the field Defaults to 1
actionListener The action to perform on click of the Button Defaults to null (no action)
buttonForegroundPaint The SizablePaint to use for the foreground of the Button Defaults to null (to use the Look & Feel's default Button foreground paint)
buttonBackgroundPaint The SizablePaint to use for the background of the Button Defaults to null (to use the Look & Feel's default Button background paint)
buttonSelectPaint The SizablePaint to use for when the Button is selected Defaults to null (to use the Look & Feel's default Button select paint)
buttonFocusPaint The SizablePaint to use for when the Button is focused Defaults to null (to use the Look & Feel's default Button focus paint)
buttonDisabledTextPaint The SizablePaint to use for disabled text on the Button Defaults to null (to use the Look & Feel's default Button disabled text paint)
buttonFont The Font to use on the Button (specified via FontFamily, font style, and font size Defaults to null (to use the Look & Feel's default Button font)
buttonBorder The Border to use on the Button Defaults to null (to use the Look & Feel's default Button border)
buttonShape The ShapeInfo to use on the Button Defaults to null (to use the Look & Feel's default Button shape)
This builder also provides methods and parameters for font resource loading:
Font Resource Loading Parameters
Field Description Default Value
logFontResourceLoaderWarnings Whether to log warnings generated by the FontResourceLoader - can be ignored if you specify your own FontResourceLoader false
logger An EasyLogger that will be sent to the FontResourceLoader by default - can be ignored if you specify your own FontResourceLoader null (since logging warnings is set to false by default)
graphEnv The GraphicsEnvironment to load fonts to in the FontResourceLoader - can be ignored if you specify your own FontResourceLoader GraphicsEnvironment.getLocalGraphicsEnvironment()
fontFolder The path to the fonts folder to find font files in if needed in the FontResourceLoader - can be ignored if you specify your own FontResourceLoader "fonts/"
fontResourceLoader The FontResourceLoader to use in loading fonts and/or ensuring they're in the system a new FontResourceLoader with the specified values for logFontResourceLoaderWarnings(boolean), logger(com.github.tadukoo.util.logger.EasyLogger), graphEnv(java.awt.GraphicsEnvironment), and fontFolder(java.lang.String)
Since:
Alpha v.0.2
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)