Class ReportFactory.Dialog<C extends ReportContainer,​M extends ReportContainerManager>

    • Constructor Detail

      • Dialog

        public Dialog​(Dialog owner,
                      Dialog.ModalityType modality)
        Initializes the dialog.
        Parameters:
        owner - the component that controls the dialog
        modality - the type of modality
      • Dialog

        public Dialog​(Frame owner,
                      boolean modal)
        Initializes the dialog.
        Parameters:
        owner - the component that controls the dialog
        modal - if true then the dialog will be modal
    • Method Detail

      • initialize

        protected void initialize()
        For initializing members.
        Overrides:
        initialize in class BaseDialog
      • newPanel

        protected ReportFactory.Panel<C,​M> newPanel()
        Returns a new tabbed pane instance.
        Returns:
        the tabbed pane
      • initGUI

        protected void initGUI()
        Initializes the components.
        Overrides:
        initGUI in class BaseDialog
      • setContainerManager

        public void setContainerManager​(M value)
        Sets the underlying manager.
        Parameters:
        value - the manager
      • getContainerManager

        public M getContainerManager()
        Returns the underlying manager.
        Returns:
        the manager, can be null if not set
      • setDataContainerPanel

        public void setDataContainerPanel​(DataContainerPanel value)
        Sets the data container panel to use.
        Parameters:
        value - the panel to use
      • getDataContainerPanel

        public DataContainerPanel getDataContainerPanel()
        Returns the data container panel in use.
        Returns:
        the panel, can be null if none set
      • setDividerLocation

        public void setDividerLocation​(int value)
        Sets the divider location in pixel.
        Parameters:
        value - the location in pixel
      • setDividerLocation

        public void setDividerLocation​(double value)
        Sets the divider location as ration (0.0-1.0).
        Parameters:
        value - the ratio
      • getDividerLocation

        public int getDividerLocation()
        Returns the current divider location.
        Returns:
        the location in pixel
      • setReportContainerListWidth

        public void setReportContainerListWidth​(int width)
        Sets the preferred width of the ReportContainerList panel.
        Parameters:
        width - the preferred width
      • setData

        public void setData​(List<C> value)
        Sets the data to display.
        Parameters:
        value - the underlying containers
      • getData

        public List<C> getData()
        Returns the underlying data.
        Returns:
        the containers
      • beforeShow

        protected void beforeShow()
        Hook method just before the dialog is made visible.
        Overrides:
        beforeShow in class BaseDialog