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 a PanelBuilderFactory instance, or
  • Launching the application with the system property at PanelMatic.PANEL_BUILDER_FACTORY_CLASS_PROPERTY set 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 Details

    • build

      PanelBuilder build()
      Returns:
      A new panel builder.
    • setLocalizationBundle

      void setLocalizationBundle​(ResourceBundle aBundle)
      Sets the localization resource bundle for the to-be-created builders. If aBundle is not null, the string parameter of PanelBuilder's various addXXX methods is interpreted as a key for a string in the passed bundle. If aBundle is null, that string parameter is passed as-is.
      Parameters:
      aBundle - the localization resource bundle, may be null.
    • setComponentOrientation

      void setComponentOrientation​(ComponentOrientation anOrientation)
      Sets the component orientation of the to-be-created panels.
      Parameters:
      anOrientation - orientation of the panels created.