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


Java JEditorString类代码示例

本文整理汇总了Java中com.openbravo.editor.JEditorString的典型用法代码示例。如果您正苦于以下问题:Java JEditorString类的具体用法?Java JEditorString怎么用?Java JEditorString使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: activate

import com.openbravo.editor.JEditorString; //导入依赖的package包/类
public void activate() {
    
    m_jtxtBarCode.reset();
    m_jtxtBarCode.setEditModeEnum(JEditorString.MODE_123);
    m_jtxtName.reset();
    m_jPriceBuy.reset();
    m_jPriceSell.reset();
    m_jtxtName.activate();
    
    try {
        List catlist = m_sentcat.list();
        catlist.add(0, null);
        m_CategoryModel = new ComboBoxValModel(catlist);
        m_jCategory.setModel(m_CategoryModel);
    } catch (BasicException eD) {
        // no hay validacion
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:19,代码来源:ProductFilterSales.java

示例2: activate

import com.openbravo.editor.JEditorString; //导入依赖的package包/类
/**
     *
     */
    public void activate() {
        
        m_jtxtBarCode.reset();
        m_jtxtBarCode.setEditModeEnum(JEditorString.MODE_123);
        m_jtxtBarCode.activate();
        m_jtxtName.reset();
        m_jPriceBuy.reset();
        m_jPriceSell.reset();
// JG July 2014 - added for Stock count        
        m_jCboStockUnits.setSelectedIndex(2);
        m_jStockUnits.setDoubleValue(0.0);        
        
        try {
            List catlist = m_sentcat.list();
            catlist.add(0, null);
            m_CategoryModel = new ComboBoxValModel(catlist);
            m_jCategory.setModel(m_CategoryModel);
        } catch (BasicException eD) {
            // no hay validacion
        }
    }
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:25,代码来源:ProductFilterSales.java

示例3: activate

import com.openbravo.editor.JEditorString; //导入依赖的package包/类
/**
     *
     */
    public void activate() {
        
        m_jtxtName.reset();
        m_jtxtName.setEditModeEnum(JEditorString.MODE_Abc1);
        m_jtxtName.activate();
        m_jtxtName.setFont(new java.awt.Font("NanumBarunGothic Bold", 1, 24));        
        
        m_jtxtBarCode.reset();
        m_jtxtBarCode.setEditModeEnum(JEditorString.MODE_123);
//        m_jtxtBarCode.activate();
        
        m_jPriceBuy.reset();
        m_jPriceSell.reset();
// JG July 2014 - added for Stock count        
        m_jCboStockUnits.setSelectedIndex(2);
        m_jStockUnits.setDoubleValue(0.0);        
        
        try {
            List catlist = m_sentcat.list();
            catlist.add(0, null);
            m_CategoryModel = new ComboBoxValModel(catlist);
            m_jCategory.setModel(m_CategoryModel);
        } catch (BasicException eD) {
            // no hay validacion
        }
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:30,代码来源:ProductFilterSales.java

示例4: initComponents

import com.openbravo.editor.JEditorString; //导入依赖的package包/类
/** This method is called from within the constructor to
 * initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jLabel5 = new javax.swing.JLabel();
    m_jtxtName = new com.openbravo.editor.JEditorString();
    jLabel2 = new javax.swing.JLabel();
    m_jCategory = new javax.swing.JComboBox();
    jLabel4 = new javax.swing.JLabel();
    m_jCboPriceBuy = new javax.swing.JComboBox();
    m_jPriceBuy = new com.openbravo.editor.JEditorCurrency();
    jLabel3 = new javax.swing.JLabel();
    m_jCboPriceSell = new javax.swing.JComboBox();
    m_jPriceSell = new com.openbravo.editor.JEditorCurrency();
    m_jtxtBarCode = new com.openbravo.editor.JEditorString();
    jLabel1 = new javax.swing.JLabel();

    setPreferredSize(new java.awt.Dimension(370, 170));
    setLayout(null);

    jLabel5.setText(AppLocal.getIntString("label.prodname")); // NOI18N
    add(jLabel5);
    jLabel5.setBounds(20, 40, 110, 15);
    add(m_jtxtName);
    m_jtxtName.setBounds(130, 40, 290, 25);

    jLabel2.setText(AppLocal.getIntString("label.prodcategory")); // NOI18N
    add(jLabel2);
    jLabel2.setBounds(20, 70, 110, 15);
    add(m_jCategory);
    m_jCategory.setBounds(130, 70, 260, 24);

    jLabel4.setText(AppLocal.getIntString("label.prodpricebuy")); // NOI18N
    add(jLabel4);
    jLabel4.setBounds(20, 100, 110, 15);
    add(m_jCboPriceBuy);
    m_jCboPriceBuy.setBounds(130, 100, 150, 24);
    add(m_jPriceBuy);
    m_jPriceBuy.setBounds(290, 100, 130, 25);

    jLabel3.setText(AppLocal.getIntString("label.prodpricesell")); // NOI18N
    add(jLabel3);
    jLabel3.setBounds(20, 130, 110, 15);
    add(m_jCboPriceSell);
    m_jCboPriceSell.setBounds(130, 130, 150, 24);
    add(m_jPriceSell);
    m_jPriceSell.setBounds(290, 130, 130, 25);
    add(m_jtxtBarCode);
    m_jtxtBarCode.setBounds(130, 10, 290, 25);

    jLabel1.setText(AppLocal.getIntString("label.prodbarcode")); // NOI18N
    add(jLabel1);
    jLabel1.setBounds(20, 10, 110, 15);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:59,代码来源:ProductFilterSales.java


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