Interface InputPanelBuilder

All Superinterfaces:
ComponentBuilder<JPanel,InputPanelBuilder>, Supplier<JPanel>

public interface InputPanelBuilder extends ComponentBuilder<JPanel,InputPanelBuilder>
Builds an input panel with a label and input component.

The panel contains its label, so the label() methods below and the inherited ComponentBuilder.label(String), ComponentBuilder.label(javax.swing.JLabel) and ComponentBuilder.label(java.util.function.Consumer) all specify the same thing: the label the panel displays. They differ only in what they accept, the ones here lifting the restriction to a JLabel. The last call wins, whichever was used, so a label supplied by a factory - the caption based one the entity components come with, say - is replaced by specifying another.

Note that the panel itself is therefore never the target of JLabel.setLabelFor(java.awt.Component): a label carrying no association of its own is associated with the input component, which is what it labels.