本文整理汇总了Java中com.jaspersoft.ireport.designer.data.ReportQueryDialog类的典型用法代码示例。如果您正苦于以下问题:Java ReportQueryDialog类的具体用法?Java ReportQueryDialog怎么用?Java ReportQueryDialog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ReportQueryDialog类属于com.jaspersoft.ireport.designer.data包,在下文中一共展示了ReportQueryDialog类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: XMLFieldMappingEditor
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
/** Creates new form XMLFieldMappingEditor
* @param rqd
*/
public XMLFieldMappingEditor(ReportQueryDialog rqd) {
initComponents();
try {
Thread.currentThread().setContextClassLoader( IReportManager.getReportClassLoader());
xpathExecuter = JRXPathExecuterUtils.getXPathExecuter(IRLocalJasperReportsContext.getInstance());
} catch (JRException ex) {
ex.printStackTrace();
}
this.reportQueryDialog = rqd;
jTree1.setCellRenderer(new XMLDocumentTreeCellRenderer(this));
jTree1.setTransferHandler( new XMLTreeTransfertHandler( this ));
setXpathExpression( rqd.getQueryEditorPane().getText() );
updateView();
//applyI18n();
}
示例2: getEditorComponent
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public FieldsProviderEditor getEditorComponent(ReportQueryDialog reportQueryDialog) {
if (editor == null)
{
editor = new XMLFieldMappingEditor(reportQueryDialog);
}
return editor;
}
示例3: designQuery
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public String designQuery(IReportConnection con, String query, ReportQueryDialog reportQueryDialog) throws JRException, UnsupportedOperationException {
// Start FREE QUERY BUILDER....
QueryBuilderDialog qbd = new QueryBuilderDialog( (reportQueryDialog != null) ? reportQueryDialog : new JDialog(), true);
if (con.isJDBCConnection())
{
qbd.setConnection( con.getConnection() );
}
try {
if (query != null && query.length() > 0)
{
qbd.setQuery(query);
}
} catch (Throwable ex)
{
if (reportQueryDialog != null)
{
reportQueryDialog.getJLabelStatusSQL().setText("I'm sorry, I'm unable to parse the query...");
ex.printStackTrace();
}
ex.printStackTrace();
return null;
}
qbd.setVisible(true);
if (qbd.getDialogResult() == JOptionPane.OK_OPTION)
{
return qbd.getQuery();
}
return null;
}
示例4: getEditorComponent
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public FieldsProviderEditor getEditorComponent(ReportQueryDialog reportQueryDialog) {
if (olapBrowser == null)
{
olapBrowser = new OlapBrowser();
olapBrowser.setReportQueryDialog(reportQueryDialog);
if (reportQueryDialog != null)
{
olapBrowser.setJTableFields( reportQueryDialog.getFieldsTable() );
}
}
return olapBrowser;
}
示例5: getEditorComponent
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public FieldsProviderEditor getEditorComponent(ReportQueryDialog reportQueryDialog) {
if (bip == null)
{
bip = new EJBQLBeanInspectorPanel();
if (reportQueryDialog != null)
{
bip.setReportQueryDialog( reportQueryDialog );
bip.setJTableFields( reportQueryDialog.getFieldsTable() );
}
}
return bip;
}
示例6: designQuery
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public String designQuery(IReportConnection con, String query, ReportQueryDialog reportQueryDialog) throws JRException, UnsupportedOperationException {
return query;
}
示例7: getEditorComponent
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public FieldsProviderEditor getEditorComponent(ReportQueryDialog reportQueryDialog) {
SQLFieldsProviderEditor dpe = new SQLFieldsProviderEditor();
dpe.setReportQueryDialog( reportQueryDialog );
return dpe;
}
示例8: designQuery
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public String designQuery(IReportConnection con, String query, ReportQueryDialog reportQueryDialog) throws JRException, UnsupportedOperationException {
String newMDXQuery = query;
if (query == null) newMDXQuery = "";
if (con instanceof JRXMLADataSourceConnection)
{
String strURL = ((JRXMLADataSourceConnection)con).getUrl();
String strDataSource = ((JRXMLADataSourceConnection)con).getDatasource();
String strCatalog = ((JRXMLADataSourceConnection)con).getCatalog();
String strCubeName=((JRXMLADataSourceConnection)con).getCube();
String username = ((JRXMLADataSourceConnection)con).getUsername();
if (username != null && username.length() > 0)
{
Authenticator.setDefault(new CustomHTTPAuthenticator( username, ((JRXMLADataSourceConnection)con).getPassword() ));
}
//invoke MDXEditor
RexWizard mdxWizard= new RexWizard(strURL, strDataSource, strCatalog,
strCubeName,newMDXQuery, Locale.getDefault() );
// Passing the MDX Query to Rex Wizard
mdxWizard.addRexWizardListener(this);
mdxWizard.showDialog();
//Wait for the return value....
//System.out.println("Waiting for MDX query");
//System.out.flush();
//while (!gotMdxResult)
//{
// Thread.yield();
//}
//System.out.println("My MDX query " + getQueryFromRex);
//System.out.flush();
//condition added to handle Cancel click's in RexWizard
if (getQueryFromRex.length() > 0){
return getQueryFromRex;
}
}
else
{
javax.swing.JOptionPane.showMessageDialog(Misc.getMainWindow(),
//I18n.getString("messages.reportQueryDialog.connectionNotSupported",
"In order to use the MDX query designer, you need an XMLA datasource active.",
"",javax.swing.JOptionPane.WARNING_MESSAGE );
return null;
}
return query;
}
示例9: getEditorComponent
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
@Override
public FieldsProviderEditor getEditorComponent(ReportQueryDialog reportQueryDialog) {
return null;
}
示例10: getReportQueryDialog
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public ReportQueryDialog getReportQueryDialog() {
return reportQueryDialog;
}
示例11: setReportQueryDialog
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public void setReportQueryDialog(ReportQueryDialog reportQueryDialog) {
this.reportQueryDialog = reportQueryDialog;
}
示例12: getReportQueryDialog
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
/**
* @return the reportQueryDialog
*/
public ReportQueryDialog getReportQueryDialog() {
return reportQueryDialog;
}
示例13: setReportQueryDialog
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
/**
* @param reportQueryDialog the reportQueryDialog to set
*/
public void setReportQueryDialog(ReportQueryDialog reportQueryDialog) {
this.reportQueryDialog = reportQueryDialog;
setDataset( reportQueryDialog.getDataset() );
}
示例14: designQuery
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public String designQuery(IReportConnection con, String query, ReportQueryDialog reportQueryDialog) throws JRException, UnsupportedOperationException {
return null;
}
示例15: designQuery
import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
@Override
public String designQuery(IReportConnection arg0, String arg1, ReportQueryDialog arg2) throws JRException,
UnsupportedOperationException {
logger.warn("NOT IMPLEMENTED: designQuery");
return null;
}