當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。