Package io.codeworth.panelmatic
Interface PanelBuilderFactory
-
- All Known Implementing Classes:
GbPanelBuilderFactory
public interface PanelBuilderFactoryCreates panel builders. This is the easiest point to customize the builders, if you want to install application-widePanelMaticComponentCustomizers 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
All Methods Instance Methods Abstract Methods 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 Detail
-
build
PanelBuilder build()
- Returns:
- A new panel builder.
-
setLocalizationBundle
void setLocalizationBundle(ResourceBundle aBundle)
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
void setComponentOrientation(ComponentOrientation anOrientation)
Sets the component orientation of the to-be-created panels.- Parameters:
anOrientation- orientation of the panels created.
-
-