Interface WidgetContainer


  • public interface WidgetContainer
    Description of a widget container that provides enough data for printing.
    • Method Detail

      • getName

        java.lang.String getName()
        Name of a container.
      • getWidgets

        java.lang.Iterable<? extends VisualWidgetHandle> getWidgets​(boolean onlyVisible)
        Provides all widgets in this container. It does not descend recursively. Only widgets managed by this container's scene are returned.
        Parameters:
        onlyVisible - only currently visible widgets will be returned (it is up to implementation to decide what to return if the container is not shown)
      • getContainers

        java.lang.Iterable<? extends WidgetContainer> getContainers​(boolean onlyVisible)
        Provides all sub-containers.
        Parameters:
        onlyVisible - only currently visible widgets will be returned (it is up to implementation to decide what to return if the container is not shown)
      • getContainerWidget

        VisualWidgetHandle getContainerWidget()
        Associated widget if this is a nested container or null.
      • getDimension

        java.awt.Dimension getDimension()
        Information about view width and length to enable proper scaling.
      • getInsets

        java.awt.Insets getInsets()
        Information about insets used in this container. Useful for computation of widget location if it is placed into a nested container.
        Returns:
        widget padding information.
      • getResultSet

        com.im.df.api.dml.DFResultSet getResultSet()
        Printed data.
      • isSingleWidgetPrintForm

        boolean isSingleWidgetPrintForm()
        Information about print form layout.
        Returns:
        true or false
      • getSingleWidgetPrintLayout

        FormViewSingleWidgetPrintLayout getSingleWidgetPrintLayout()
        Retrieves properties of print layout when widget is the only widget in the form.
        Returns:
        FormViewSingleWidgetPrintLayout bean
      • enableNUpPrinting

        boolean enableNUpPrinting()
        Returns whether N-UP printing tab should be enabled or not.
        Returns:
        true if enable, otherwise false