Class AbstractBuilder

    • Field Detail

      • container

        private final java.awt.Container container
        Holds the layout container that we are building.
      • layout

        private final FormLayout layout
        Holds the FormLayout instance that is used to specify, fill and layout this form.
      • currentCellConstraints

        protected final CellConstraints currentCellConstraints
        Holds an instance of CellConstraints that will be used to specify the location, extent and alignments of the component to be added next.
      • componentFactory

        private ComponentFactory componentFactory
        Refers to a factory that is used to create labels, titles, separators, and buttons.
    • Constructor Detail

      • AbstractBuilder

        protected AbstractBuilder​(FormLayout layout,
                                  java.awt.Container container)
        Constructs an AbstractBuilder for the given FormLayout and layout container.
        Parameters:
        layout - the FormLayout to use
        container - the layout container
        Throws:
        java.lang.NullPointerException - if layout or container is null
    • Method Detail

      • getContainer

        public final java.awt.Container getContainer()
        Returns the container used to build the form.
        Returns:
        the layout container
      • getLayout

        public final FormLayout getLayout()
        Returns the FormLayout instance used to build this form.
        Returns:
        the FormLayout
      • getColumnCount

        public final int getColumnCount()
        Returns the number of columns in the form.
        Returns:
        the number of columns
      • getRowCount

        public final int getRowCount()
        Returns the number of rows in the form.
        Returns:
        the number of rows
      • createComponentFactory

        protected ComponentFactory createComponentFactory()
        Invoked when the per-instance component factory is lazily initialized. This implementation returns the global default factory.

        Subclasses may override to use a factory other than the global default. However, in most cases it is sufficient to just set a new global default using FormsSetup.setComponentFactoryDefault(ComponentFactory).

        Returns:
        the factory used during the lazy initialization of the per-instance component factory