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


Java BasicException.printStackTrace方法代码示例

本文整理汇总了Java中com.openbravo.basic.BasicException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java BasicException.printStackTrace方法的具体用法?Java BasicException.printStackTrace怎么用?Java BasicException.printStackTrace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.openbravo.basic.BasicException的用法示例。


在下文中一共展示了BasicException.printStackTrace方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: processKey

import com.openbravo.basic.BasicException; //导入方法依赖的package包/类
private void processKey(char c) {
    
    if (c == '\n') {
        
        AppUser user = null;
        try {
            user = m_dlSystem.findPeopleByCard(inputtext.toString());
        } catch (BasicException e) {
            e.printStackTrace();
        }
        
        if (user == null)  {
            // user not found
            MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.nocard"));
            msg.show(this);                
        } else {
            openAppView(user);   
        }

        inputtext = new StringBuffer();
    } else {
        inputtext.append(c);
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:JRootApp.java

示例2: listPeople

import com.openbravo.basic.BasicException; //导入方法依赖的package包/类
private void listPeople() {
    
    try {
       
        jScrollPane1.getViewport().setView(null);

        JFlowPanel jPeople = new JFlowPanel();
        jPeople.applyComponentOrientation(getComponentOrientation());
       
        java.util.List people = m_dlSystem.listPeopleVisible();
                 
        for (int i = 0; i < people.size(); i++) {
             
            AppUser user = (AppUser) people.get(i);

            JButton btn = new JButton(new AppUserAction(user));
            btn.applyComponentOrientation(getComponentOrientation());
            btn.setFocusPainted(false);
            btn.setFocusable(false);
            btn.setRequestFocusEnabled(false);
            btn.setHorizontalAlignment(SwingConstants.LEADING);
            btn.setMaximumSize(new Dimension(150, 50));
            btn.setPreferredSize(new Dimension(150, 50));
            btn.setMinimumSize(new Dimension(150, 50));
    
            jPeople.add(btn);                    
        }
        jScrollPane1.getViewport().setView(jPeople);
        
    } catch (BasicException ee) {
        ee.printStackTrace();
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:34,代码来源:JRootApp.java

示例3: executeSearch

import com.openbravo.basic.BasicException; //导入方法依赖的package包/类
public void executeSearch() {
    try {
        jListCustomers.setModel(new MyListData(lpr.loadData()));
        if (jListCustomers.getModel().getSize() > 0) {
            jListCustomers.setSelectedIndex(0);
        }
    } catch (BasicException e) {
        e.printStackTrace();
    }        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:JCustomerFinder.java

示例4: jButton3ActionPerformed

import com.openbravo.basic.BasicException; //导入方法依赖的package包/类
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed

        try {
            jListProducts.setModel(new MyListData(lpr.loadData()));
            if (jListProducts.getModel().getSize() > 0) {
                jListProducts.setSelectedIndex(0);
            }
        } catch (BasicException e) {
            e.printStackTrace();
        }
        
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JProductFinder.java

示例5: executeSearch

import com.openbravo.basic.BasicException; //导入方法依赖的package包/类
public void executeSearch() {
    try {
        jListTickets.setModel(new MyListData(lpr.loadData()));
        if (jListTickets.getModel().getSize() > 0) {
            jListTickets.setSelectedIndex(0);
        }
    } catch (BasicException e) {
        e.printStackTrace();
    }        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:JTicketsFinder.java

示例6: executeSentence

import com.openbravo.basic.BasicException; //导入方法依赖的package包/类
public boolean executeSentence(BaseSentence sent, Object params) {
    
    CardLayout cl = (CardLayout)(getLayout());
    
    try {
        DataResultSet rs = sent.openExec(params);          
        
        if (rs.updateCount() < 0) {
            cl.show(this, "resultset"); 
            
            DataField [] df = rs.getDataField();  

            SQLTableModel sqlresult = new SQLTableModel(df); 

            while (rs.next()) {
                sqlresult.addRow(rs);
            }            
            rs.close();

            sent.closeExec();

            m_jTableResult.setModel(sqlresult);
        } else {
            cl.show(this, "updatecount"); 
            m_txtResulltText.setText("Update count: " + Integer.toString(rs.updateCount()));
            m_txtResulltText.setCaretPosition(0);
       }
        return true;
        
    } catch (BasicException e) {
        cl.show(this, "updatecount"); 
        StringWriter w =  new StringWriter();                    
        e.printStackTrace(new PrintWriter(w));                   
        m_txtResulltText.setText(w.toString());
        m_txtResulltText.setCaretPosition(0);
        // e.printStackTrace();
        return false;
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:40,代码来源:JPanelSQLResult.java

示例7: insertProductCategories

import com.openbravo.basic.BasicException; //导入方法依赖的package包/类
private void insertProductCategories() {
    try {        
        for( int i = 100; i < 50000; i++) {
            String sentence =
                    "INSERT INTO m_product_category(" +
                    " m_product_category_id," +
                    " ad_client_id," +
                    " ad_org_id," +
                    " isactive, " +
                    " created, createdby, " +
                    " updated, updatedby, " +
                    " value, " +
                    " name, " +
                    " description, " +
                    " isdefault, plannedmargin, a_asset_group_id) VALUES " +
                    "(" +
                    Integer.toString(i + 1000000) + " ," +
                    " 1000000, " + 
                    " 0, " +
                    "'Y', " +
                    " '2007-01-01', 100, " +
                    " '2007-01-01', 100, " +
                    " 'Fictious Category no " + Integer.toString(i) +"' ," +
                    " 'Fictious Category Name no " + Integer.toString(i) +"' ," +
                    " null," +
                    " 'N'," +
                    " 0," +
                    " null)";
            System.out.println(i);
            System.out.println(sentence);
            BaseSentence sent = new StaticSentence(m_App.getSession(), sentence);
            sent.exec();
        }
    } catch (BasicException e) {
        e.printStackTrace();
    }        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:38,代码来源:JPanelSQL.java


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