Class IJCWidgetFactoriesProvider

  • All Implemented Interfaces:
    IJCWidgetFactory.Provider

    public final class IJCWidgetFactoriesProvider
    extends java.lang.Object
    implements IJCWidgetFactory.Provider
    Allows to access instances of the registered widget factories. They should be registered in IJC/FormComponents folder in layer.xml. They have two attributes - category and iconBase. The category points to IJC/FormPaletteCategories folder and defines in which part of widgets palette the widget should appear. If the category is unspecified, the factory is registered into the "Other" category.

    Example of registration of widget with category:

     <filesystem>
      <folder name="IJC">
          <folder name="FormComponents">
              <file name="com-im-ijc-formview-widgets-panel-WBPanelFactory.instance">
                  <attr name="iconBase" stringvalue="com/im/ijc/formview/widgets/panel/panel.png"/>
                  <attr name="category" stringvalue="my-own-category"/>
              </file>
          </folder>
          <folder name="FormPaletteCategories">
              <folder name="my-own-category">
                  <attr name="displayName" stringvalue="My category"/>
                  <attr name="position" intvalue="500"/>
              </folder>
          </folder>
      </folder>
     </filesystem>