当前位置: 首页>>代码示例>>Java>>正文


Java ReportQueryDialog类代码示例

本文整理汇总了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();
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:20,代码来源:XMLFieldMappingEditor.java

示例2: getEditorComponent

import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public FieldsProviderEditor getEditorComponent(ReportQueryDialog reportQueryDialog) {
    
    if (editor == null)
    {
        editor = new XMLFieldMappingEditor(reportQueryDialog);
    }
    
    return editor;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:10,代码来源:XMLFieldsProvider.java

示例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;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:34,代码来源:SQLFieldsProvider.java

示例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;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:14,代码来源:MDXFieldsProvider.java

示例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;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:14,代码来源:EJBQLFieldsProvider.java

示例6: designQuery

import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public String designQuery(IReportConnection con,  String query, ReportQueryDialog reportQueryDialog) throws JRException, UnsupportedOperationException {
    return query;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:4,代码来源:XMLFieldsProvider.java

示例7: getEditorComponent

import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public FieldsProviderEditor getEditorComponent(ReportQueryDialog reportQueryDialog) {

        SQLFieldsProviderEditor dpe = new SQLFieldsProviderEditor();
        dpe.setReportQueryDialog( reportQueryDialog );
        return dpe;
    }
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:7,代码来源:SQLFieldsProvider.java

示例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;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:59,代码来源:MDXFieldsProvider.java

示例9: getEditorComponent

import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
@Override
public FieldsProviderEditor getEditorComponent(ReportQueryDialog reportQueryDialog) {
    
    return null;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:6,代码来源:CincomMDXFieldsProvider.java

示例10: getReportQueryDialog

import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public ReportQueryDialog getReportQueryDialog() {
    return reportQueryDialog;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:4,代码来源:XMLFieldMappingEditor.java

示例11: setReportQueryDialog

import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public void setReportQueryDialog(ReportQueryDialog reportQueryDialog) {
    this.reportQueryDialog = reportQueryDialog;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:4,代码来源:XMLFieldMappingEditor.java

示例12: getReportQueryDialog

import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
/**
 * @return the reportQueryDialog
 */
public ReportQueryDialog getReportQueryDialog() {
    return reportQueryDialog;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:7,代码来源:SQLFieldsProviderEditor.java

示例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() );
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:8,代码来源:SQLFieldsProviderEditor.java

示例14: designQuery

import com.jaspersoft.ireport.designer.data.ReportQueryDialog; //导入依赖的package包/类
public String designQuery(IReportConnection con,  String query, ReportQueryDialog reportQueryDialog) throws JRException, UnsupportedOperationException {
    return null;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:4,代码来源:EJBQLFieldsProvider.java

示例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;
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:7,代码来源:MongoDbFieldsProvider.java


注:本文中的com.jaspersoft.ireport.designer.data.ReportQueryDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。