/** * Returns this builder's component factory. If no factory * has been set before, it is lazily initialized from the global * default as returned by {@link #getDefaultComponentFactory()}. * * @return the component factory * * @see #setComponentFactory(ComponentFactory) */ public final ComponentFactory getComponentFactory() { if (componentFactory == null) { componentFactory = createComponentFactory(); } return componentFactory; }
/** * Invoked when the per-instance component factory is lazily initialized. * This implementation returns the global default factory.<p> * * Subclasses may override to use a factory other than the global default. * However, in most cases it is sufficient to just set a new gobal default * using {@link #setDefaultComponentFactory(ComponentFactory2)}. * * @return the factory used during the lazy initialization of * the per-instance component factory */ protected ComponentFactory createComponentFactory() { return getDefaultComponentFactory(); }
/** * Returns the number of rows in the form. * * @return the number of rows */ public final int getRowCount() { return getLayout().getRowCount(); }
/** * Returns the number of columns in the form. * * @return the number of columns */ public final int getColumnCount() { return getLayout().getColumnCount(); }