Class GbPanelBuilder
- java.lang.Object
-
- io.codeworth.panelmatic.impl.AbstractPanelBuilder
-
- io.codeworth.panelmatic.impl.gridbagpanelbuilder.GbPanelBuilder
-
- All Implemented Interfaces:
PanelBuilder
public class GbPanelBuilder extends AbstractPanelBuilder
GridBagLayout-based implementation of thePanelBuilderinterface.- Author:
- michael
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.codeworth.panelmatic.PanelBuilder
PanelBuilder.HeaderLevel
-
-
Constructor Summary
Constructors Constructor Description GbPanelBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddHeaderImpl(JComponent aHeaderComp)Implementation of adding a header to the product.protected voidaddImpl(JComponent aLabelComp, JComponent aComp, ComponentBehavior aBehavior)The actual addition of the component to the product is done here.protected voidbeginImpl(JComponent aBaseComp)Implementation of theAbstractPanelBuilder.begin(org.panelmatic.PanelMaticComponentCustomizer[])method.protected GridBagConstraintsconvertBehavior(ComponentBehavior b)protected JComponentgetImpl()Implementation of theAbstractPanelBuilder.get(org.panelmatic.PanelPostProcessor[])method.protected JComponentgetProduct()voidsetHeaderBehavior(ComponentBehavior aHeaderBehavior)voidsetLabelBehavior(ComponentBehavior aLabelBehavior)-
Methods inherited from class io.codeworth.panelmatic.impl.AbstractPanelBuilder
add, add, add, add, add, addFlexibleSpace, addHeader, addHeader, begin, begin, customizeComponent, get, getBaseComponentBehavior, getComponentFactory, getCustomizerChain, getHeaderBehavior, getLabelBehavior, getResourceBundle, getResourceString, setBaseComponentBehavior, setBuilderPool, setComponentFactory, setResourceBundle
-
-
-
-
Method Detail
-
setHeaderBehavior
public void setHeaderBehavior(ComponentBehavior aHeaderBehavior)
- Overrides:
setHeaderBehaviorin classAbstractPanelBuilder
-
setLabelBehavior
public void setLabelBehavior(ComponentBehavior aLabelBehavior)
- Overrides:
setLabelBehaviorin classAbstractPanelBuilder
-
beginImpl
protected void beginImpl(JComponent aBaseComp)
Implementation of theAbstractPanelBuilder.begin(org.panelmatic.PanelMaticComponentCustomizer[])method.- Specified by:
beginImplin classAbstractPanelBuilder- Parameters:
aBaseComp- The starting component, may benull.
-
addHeaderImpl
protected void addHeaderImpl(JComponent aHeaderComp)
Description copied from class:AbstractPanelBuilderImplementation of adding a header to the product.- Specified by:
addHeaderImplin classAbstractPanelBuilder- Parameters:
aHeaderComp- The component to be used as a header.
-
addImpl
protected void addImpl(JComponent aLabelComp, JComponent aComp, ComponentBehavior aBehavior)
Description copied from class:AbstractPanelBuilderThe actual addition of the component to the product is done here.- Specified by:
addImplin classAbstractPanelBuilder- Parameters:
aLabelComp- The component that will be used as a label. Can benull.aComp- The (customized) component that we add to the product.aBehavior- The (modified) behavior thataCompshould have.
-
getImpl
protected JComponent getImpl()
Implementation of theAbstractPanelBuilder.get(org.panelmatic.PanelPostProcessor[])method. Return the product and clean the state.- Specified by:
getImplin classAbstractPanelBuilder- Returns:
- The built panel.
-
convertBehavior
protected GridBagConstraints convertBehavior(ComponentBehavior b)
-
getProduct
protected JComponent getProduct()
-
-