Package adams.gui.visualization.report
Class ReportFactory
- java.lang.Object
-
- adams.gui.visualization.report.ReportFactory
-
- Direct Known Subclasses:
InstanceReportFactory
,SpreadSheetRowReportFactory
public class ReportFactory extends Object
A factory for GUI components for reports.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReportFactory.Dialog<C extends ReportContainer,M extends ReportContainerManager>
A specialized dialog that displays reports.static class
ReportFactory.Model
A specialized model for a Report.static class
ReportFactory.Panel<C extends ReportContainer,M extends ReportContainerManager>
A specialized panel that displays reports.static class
ReportFactory.StandardsDialog
A specialized dialog that lets the user choose the field and minimum value for the standards to load.static class
ReportFactory.Table<R extends ReportProvider<?,?>>
A specialized table for displaying a Report.
-
Constructor Summary
Constructors Constructor Description ReportFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReportFactory.Dialog
getDialog(Dialog owner, Dialog.ModalityType modality)
Returns a new dialog for displaying reports.static ReportFactory.Dialog
getDialog(Frame owner, boolean modal)
Returns a new dialog for displaying reports.static ReportFactory.Model
getModel(Report report)
Returns a new model for the given report.static BasePanel
getPanel(Report report, boolean preview)
Returns a new panel for the given report.static ReportFactory.Panel
getPanel(List<ReportContainer> reports)
Returns a new table for the given reports.static ReportFactory.Panel
getPanelForReports(List reports)
Returns a new table for the given reports.static ReportFactory.StandardsDialog
getStandardsDialog(Dialog owner, Dialog.ModalityType modality)
Returns a new standards dialog for loading .static ReportFactory.StandardsDialog
getStandardsDialog(Frame owner, boolean modal)
Returns a new dialog for displaying reports.static ReportFactory.Table
getTable(Report report)
Returns a new table for the given report.
-
-
-
Method Detail
-
getModel
public static ReportFactory.Model getModel(Report report)
Returns a new model for the given report.- Parameters:
report
- the report to create a model for- Returns:
- the model
-
getTable
public static ReportFactory.Table getTable(Report report)
Returns a new table for the given report.- Parameters:
report
- the report to create a table for- Returns:
- the table
-
getPanel
public static BasePanel getPanel(Report report, boolean preview)
Returns a new panel for the given report.- Parameters:
report
- the report to create a table/panel forpreview
- whether to add a preview text field for the cell value- Returns:
- the panel
-
getPanel
public static ReportFactory.Panel getPanel(List<ReportContainer> reports)
Returns a new table for the given reports.- Parameters:
reports
- the reports to create a tabbed pane for- Returns:
- the tabbed pane
-
getPanelForReports
public static ReportFactory.Panel getPanelForReports(List reports)
Returns a new table for the given reports.- Parameters:
reports
- the reports to create a tabbed pane for- Returns:
- the tabbed pane
-
getDialog
public static ReportFactory.Dialog getDialog(Dialog owner, Dialog.ModalityType modality)
Returns a new dialog for displaying reports.- Parameters:
owner
- the owning componentmodality
- the type of modality- Returns:
- the dialog
-
getDialog
public static ReportFactory.Dialog getDialog(Frame owner, boolean modal)
Returns a new dialog for displaying reports.- Parameters:
owner
- the owning componentmodal
- if true then the dialog will be modal- Returns:
- the dialog
-
getStandardsDialog
public static ReportFactory.StandardsDialog getStandardsDialog(Dialog owner, Dialog.ModalityType modality)
Returns a new standards dialog for loading .- Parameters:
owner
- the owning componentmodality
- the type of modality- Returns:
- the dialog
-
getStandardsDialog
public static ReportFactory.StandardsDialog getStandardsDialog(Frame owner, boolean modal)
Returns a new dialog for displaying reports.- Parameters:
owner
- the owning componentmodal
- whether modal or not- Returns:
- the dialog
-
-