001: /*
002: * Copyright 2006 Pentaho Corporation. All rights reserved.
003: * This software was developed by Pentaho Corporation and is provided under the terms
004: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
005: * this file except in compliance with the license. If you need a copy of the license,
006: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
007: * BI Platform. The Initial Developer is Pentaho Corporation.
008: *
009: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
010: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
011: * the license for the specific language governing your rights and limitations.
012: */
013: package org.pentaho.plugin.jfreereport;
014:
015: import org.pentaho.plugin.ComponentBase;
016:
017: public abstract class AbstractJFreeReportComponent extends
018: ComponentBase {
019:
020: protected AbstractJFreeReportComponent() {
021: }
022:
023: /*
024: * These are the inputs and component settings that are known by the various
025: * JFreeReport components.
026: */
027: // Data Component
028: public static final String DATACOMPONENT_SOURCE = "source"; //$NON-NLS-1$
029:
030: public static final String DATACOMPONENT_SQLSOURCE = "sql"; //$NON-NLS-1$
031:
032: public static final String DATACOMPONENT_SQLCLASS = "org.pentaho.plugin.sql.SQLDataComponent"; //$NON-NLS-1$
033:
034: public static final String DATACOMPONENT_MDXSOURCE = "mdx"; //$NON-NLS-1$
035:
036: public static final String DATACOMPONENT_MDXCLASS = "org.pentaho.plugin.mdx.MDXDataComponent"; //$NON-NLS-1$
037:
038: public static final String DATACOMPONENT_DATAINPUT = "data"; //$NON-NLS-1$
039:
040: /** the default datasource name used in jfreereport, now supported by the platform in addition to data above */
041: public static final String DATACOMPONENT_DEFAULTINPUT = "default"; //$NON-NLS-1$
042:
043: public static final String DATACOMPONENT_JARINPUT = "report-jar"; //$NON-NLS-1$
044:
045: public static final String DATACOMPONENT_CLASSLOCINPUT = "class-location"; //$NON-NLS-1$
046:
047: // Report Generate Definition Component
048: public static final String REPORTGENERATEDEFN_REPORTSPECINPUT = "report-spec"; //$NON-NLS-1$
049:
050: public static final String REPORTGENERATEDEFN_REPORTDEFN = "report-definition"; //$NON-NLS-1$
051:
052: // Load Component
053: public static final String REPORTLOAD_RESOURCENAME = "resource-name"; //$NON-NLS-1$
054:
055: public static final String REPORTLOAD_REPORTLOC = "report-location"; //$NON-NLS-1$
056:
057: public static final String REPORTLOAD_RESURL = "res-url"; //$NON-NLS-1$
058:
059: public static final String REPORTGENERATE_YIELDRATE = "yield-rate"; //$NON-NLS-1$
060:
061: public static final String REPORTGENERATE_PRIORITYINPUT = "report-priority"; //$NON-NLS-1$
062:
063: public static final String REPORTGENERATE_PRIORITYNORMAL = "normal"; //$NON-NLS-1$
064:
065: public static final String REPORTGENERATE_PRIORITYLOWER = "lower"; //$NON-NLS-1$
066:
067: public static final String REPORTGENERATE_PRIORITYLOWEST = "lowest"; //$NON-NLS-1$
068:
069: // All Content Component
070: public static final String REPORTALLCONTENT_OUTPUTTYPE = "output-type"; //$NON-NLS-1$
071:
072: public static final String REPORTALLCONTENT_OUTPUTTYPE_HTML = "html"; //$NON-NLS-1$
073:
074: public static final String REPORTALLCONTENT_OUTPUTTYPE_PDF = "pdf"; //$NON-NLS-1$
075:
076: public static final String REPORTALLCONTENT_OUTPUTTYPE_CSV = "csv"; //$NON-NLS-1$
077:
078: public static final String REPORTALLCONTENT_OUTPUTTYPE_XML = "xml"; //$NON-NLS-1$
079:
080: public static final String REPORTALLCONTENT_OUTPUTTYPE_RTF = "rtf"; //$NON-NLS-1$
081:
082: public static final String REPORTALLCONTENT_OUTPUTTYPE_XLS = "xls"; //$NON-NLS-1$
083:
084: public static final String REPORTALLCONTENT_OUTPUTTYPE_SWING = "swing-preview"; //$NON-NLS-1$
085:
086: // Directory Html Component
087: public static final String REPORTDIRECTORYHTML_TARGETFILE = "target-file"; //$NON-NLS-1$
088:
089: public static final String REPORTDIRECTORYHTML_DATADIR = "data-directory"; //$NON-NLS-1$
090:
091: // Report Excel Component
092: public static final String WORKBOOK_PARAM = "workbook"; //$NON-NLS-1$
093:
094: // Report HTML Component
095: public static final String REPORTHTML_CONTENTHANDLER = "content-handler"; //$NON-NLS-1$
096:
097: // Report Preview Swing Component
098: public static final String REPORTSWING_PROGRESSBAR = "progress-bar"; //$NON-NLS-1$
099:
100: public static final String REPORTSWING_PROGRESSDIALOG = "progress-dialog"; //$NON-NLS-1$
101:
102: public static final String REPORTSWING_REPORTCONTROLLER = "report-controler"; //$NON-NLS-1$
103:
104: public static final String REPORTSWING_MODAL = "modal"; //$NON-NLS-1$
105:
106: public static final String REPORTSWING_PARENTDIALOG = "parent-dialog"; //$NON-NLS-1$
107:
108: // Report Parameter Component
109: public static final String REPORTPARAMCOMPONENT_PRIVATEREPORT_OUTPUT = "create_private_report"; //$NON-NLS-1$
110:
111: // Generate Stream Component
112: public static final String REPORTGENERATESTREAM_REPORT_OUTPUT = "report-output"; //$NON-NLS-1$
113:
114: /*
115: * These are created by the component for communication to the other
116: * JFreeReport components. These are named such that they can't occur in the
117: * action sequence.
118: * (sbarkdull: these must be valid XML element names)
119: */
120: public static final String DATACOMPONENT_REPORTTEMP_OBJINPUT = "_REPORT.OBJECT"; //$NON-NLS-1$
121:
122: public static final String DATACOMPONENT_REPORTTEMP_DATAINPUT = "_REPORT.DATA"; //$NON-NLS-1$
123:
124: public static final String DATACOMPONENT_REPORTTEMP_DATAFACTORY = "_REPORT.TABLEDATAFACTORY"; //$NON-NLS-1$
125:
126: public static final String REPORTGENERATEDEFN_REPORTTEMP_PERFQRY = "_PERFORM.QUERY"; //$NON-NLS-1$
127:
128: public static final String REPORTVALIDATECOMPONENT_REPORTTEMP_UI_NEEDED = "_PARAMETER.UI.NEEDED"; //$NON-NLS-1$
129:
130: }
|