Package io.codeworth.panelmatic
Interface PanelBuilderFactory
- All Known Implementing Classes:
GbPanelBuilderFactory
public interface PanelBuilderFactory
Creates panel builders. This is the easiest point to customize the builders,
if you want to install application-wide
PanelMaticComponentCustomizers you
probably want to implement this class.
The default panel factory can be set by either:
- Calling
PanelMatic.setBuilderFactory(org.panelmatic.PanelBuilderFactory)with aPanelBuilderFactoryinstance, or - Launching the application with the system property at
PanelMatic.PANEL_BUILDER_FACTORY_CLASS_PROPERTYset to the qualified classname of the factory class. If this method is used, the factory class must have a no-args constructor.
- Author:
- michael
-
Method Summary
Modifier and Type Method Description PanelBuilderbuild()voidsetComponentOrientation(ComponentOrientation anOrientation)Sets the component orientation of the to-be-created panels.voidsetLocalizationBundle(ResourceBundle aBundle)Sets the localization resource bundle for the to-be-created builders.
-
Method Details
-
build
PanelBuilder build()- Returns:
- A new panel builder.
-
setLocalizationBundle
Sets the localization resource bundle for the to-be-created builders. IfaBundleis notnull, the string parameter ofPanelBuilder's variousaddXXXmethods is interpreted as a key for a string in the passed bundle. IfaBundleisnull, that string parameter is passed as-is.- Parameters:
aBundle- the localization resource bundle, may benull.
-
setComponentOrientation
Sets the component orientation of the to-be-created panels.- Parameters:
anOrientation- orientation of the panels created.
-