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


Java AppConfig.setProperty方法代码示例

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


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

示例1: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
public void saveProperties(AppConfig config) {
    
    Locale l = ((LocaleInfo) jcboLocale.getSelectedItem()).getLocale();
    if (l == null) {
        config.setProperty("user.language", "");
        config.setProperty("user.country", "");
        config.setProperty("user.variant", "");
    } else {
        config.setProperty("user.language", l.getLanguage());
        config.setProperty("user.country", l.getCountry());
        config.setProperty("user.variant", l.getVariant());
    }
     
    config.setProperty("format.integer", readWithDefault(jcboInteger.getSelectedItem()));
    config.setProperty("format.double", readWithDefault(jcboDouble.getSelectedItem()));
    config.setProperty("format.currency", readWithDefault(jcboCurrency.getSelectedItem()));
    config.setProperty("format.percent", readWithDefault(jcboPercent.getSelectedItem()));
    config.setProperty("format.date", readWithDefault(jcboDate.getSelectedItem()));
    config.setProperty("format.time", readWithDefault(jcboTime.getSelectedItem()));
    config.setProperty("format.datetime", readWithDefault(jcboDatetime.getSelectedItem()));
    
    dirty.setDirty(false);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:24,代码来源:JPanelConfigLocale.java

示例2: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
/**
     *
     * @param config
     */
    @Override
    public void saveProperties(AppConfig config) {
        
        config.setProperty("till.receiptprefix", jTextReceiptPrefix.getText());
        config.setProperty("till.receiptsize", jReceiptSize.getValue().toString());
        config.setProperty("till.pickupsize", jPickupSize.getValue().toString());        
        config.setProperty("till.receiptprintoff",Boolean.toString(m_jReceiptPrintOff.isSelected()));
        
/** Added: JG 23 July 13 */
        config.setProperty("till.SCOnOff",Boolean.toString(jchkSCOnOff.isSelected()));
        config.setProperty("till.SCRate",jTextSCRate.getText());
        config.setProperty("till.SCRestaurant",Boolean.toString(jchkSCRestaurant.isSelected()));
/** - */             
        
        dirty.setDirty(false);
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:21,代码来源:JPanelTicketSetup.java

示例3: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
/**
 *
 * @param config
 */
@Override
public void saveProperties(AppConfig config) {

    config.setProperty("machine.hostname", jtxtMachineHostname.getText());
    
    LAFInfo laf = (LAFInfo) jcboLAF.getSelectedItem();
    config.setProperty("swing.defaultlaf", laf == null
            ? System.getProperty("swing.defaultlaf", "javax.swing.plaf.metal.MetalLookAndFeel")
            : laf.getClassName());

    config.setProperty("machine.screenmode", comboValue(jcboMachineScreenmode.getSelectedItem()));
    config.setProperty("machine.ticketsbag", comboValue(jcboTicketsBag.getSelectedItem()));
    config.setProperty("till.hideinfo", Boolean.toString(jchkHideInfo.isSelected()));         
    config.setProperty("start.logo", jtxtStartupLogo.getText());
    config.setProperty("start.text", jtxtStartupText.getText());
    
    dirty.setDirty(false);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:23,代码来源:JPanelConfigGeneral.java

示例4: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
/**
 *
 * @param config
 */
public void saveProperties(AppConfig config) {
    
    Locale l = ((LocaleInfo) jcboLocale.getSelectedItem()).getLocale();
    if (l == null) {
        config.setProperty("user.language", "");
        config.setProperty("user.country", "");
        config.setProperty("user.variant", "");
    } else {
        config.setProperty("user.language", l.getLanguage());
        config.setProperty("user.country", l.getCountry());
        config.setProperty("user.variant", l.getVariant());
    }
     
    config.setProperty("format.integer", readWithDefault(jcboInteger.getSelectedItem()));
    config.setProperty("format.double", readWithDefault(jcboDouble.getSelectedItem()));
    config.setProperty("format.currency", readWithDefault(jcboCurrency.getSelectedItem()));
    config.setProperty("format.percent", readWithDefault(jcboPercent.getSelectedItem()));
    config.setProperty("format.date", readWithDefault(jcboDate.getSelectedItem()));
    config.setProperty("format.time", readWithDefault(jcboTime.getSelectedItem()));
    config.setProperty("format.datetime", readWithDefault(jcboDatetime.getSelectedItem()));
    
    dirty.setDirty(false);
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:28,代码来源:JPanelConfigLocale.java

示例5: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
@Override
public void saveProperties(AppConfig config) {
    AltEncrypter cypher = new AltEncrypter("cypherkey");      
    config.setProperty("payment.commerceid", comboValue(jtxtStoreName.getText()));
    config.setProperty("payment.certificatePath", comboValue(jtxtCertificatePath.getText()));
    config.setProperty("payment.certificatePassword", "crypt:" + cypher.encrypt(new String(jtxtCertificatePass.getPassword())));
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:8,代码来源:ConfigPaymentPanelLinkPoint.java

示例6: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
@Override
public void saveProperties(AppConfig config) {
    config.setProperty("payment.commerceid", comboValue(jtxtCommerceCode.getText()));
    config.setProperty("payment.terminal", comboValue(jtxtCommerceTerminal.getText()));
    AltEncrypter cypher = new AltEncrypter("cypherkey");
    config.setProperty("payment.commercesign", "crypt:" + cypher.encrypt(new String(jtxtCommerceSign.getPassword())));
    config.setProperty("payment.SHA", comboValue(jCheckBox1.isSelected()));
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:ConfigPaymentPanelCaixa.java

示例7: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
public void saveProperties(AppConfig config) {
    
    config.setProperty("erp.URL", jtxtUrl.getText());
    config.setProperty("erp.id", jtxtId.getText());
    config.setProperty("erp.pos", jTextField2.getText());
    config.setProperty("erp.org", jTextField1.getText());
    
    config.setProperty("erp.user", jtxtName.getText());
    AltEncrypter cypher = new AltEncrypter("cypherkey" + jtxtName.getText());             
    config.setProperty("erp.password", "crypt:" + cypher.encrypt(new String(jtxtPassword.getPassword())));

    dirty.setDirty(false);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JPanelConfigERP.java

示例8: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
public void saveProperties(AppConfig config) {
    
    config.setProperty("db.driverlib", jtxtDbDriverLib.getText());
    config.setProperty("db.driver", jtxtDbDriver.getText());
    config.setProperty("db.URL", jtxtDbURL.getText());
    config.setProperty("db.user", jtxtDbUser.getText());
    AltEncrypter cypher = new AltEncrypter("cypherkey" + jtxtDbUser.getText());       
    config.setProperty("db.password", "crypt:" + cypher.encrypt(new String(jtxtDbPassword.getPassword())));

    dirty.setDirty(false);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:12,代码来源:JPanelConfigDatabase.java

示例9: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
public void saveProperties(AppConfig config) {
    
    config.setProperty("payment.magcardreader", comboValue(jcboCardReader.getSelectedItem()));
    config.setProperty("payment.gateway", comboValue(jcboPaymentGateway.getSelectedItem()));
    config.setProperty("payment.testmode", Boolean.toString(jchkPaymentTest.isSelected()));
    pc.saveProperties(config);
    dirty.setDirty(false);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:JPanelConfigPayment.java

示例10: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
/**
 *
 * @param config
 */
@Override
public void saveProperties(AppConfig config) {
    config.setProperty("payment.BluePay.accountID", comboValue(jtxtAccountID.getText()));
    config.setProperty("payment.BluePay.secretKey", comboValue(jtxtSecretKey.getText()));
    config.setProperty("payment.BluePay.URL", comboValue(jtxtURL.getText()));
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:11,代码来源:ConfigPaymentPanelBluePayAUTHNETEMU.java

示例11: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
/**
 *
 * @param config
 */
@Override
public void saveProperties(AppConfig config) {
    config.setProperty("payment.commerceid", jtxtCommerceID.getText());
    AltEncrypter cypher = new AltEncrypter("cypherkey" + jtxtCommerceID.getText());       
    config.setProperty("payment.commercepassword", "crypt:" + cypher.encrypt(new String(jtxtCommercePwd.getPassword())));
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:11,代码来源:ConfigPaymentPanelGeneric.java

示例12: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
/**
 *
 * @param config
 */
@Override
public void saveProperties(AppConfig config) {
    AltEncrypter cypher = new AltEncrypter("cypherkey");      
    config.setProperty("payment.commerceid", comboValue(jtxtStoreName.getText()));
    config.setProperty("payment.certificatePath", comboValue(jtxtCertificatePath.getText()));
    config.setProperty("payment.certificatePassword", "crypt:" + cypher.encrypt(new String(jtxtCertificatePass.getPassword())));
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:12,代码来源:ConfigPaymentPanelLinkPoint.java

示例13: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
/**
 *
 * @param config
 */
@Override
public void saveProperties(AppConfig config) {
    
    config.setProperty("db.engine", comboValue(jcboDBDriver.getSelectedItem()));
    config.setProperty("db.driverlib", jtxtDbDriverLib.getText());
    config.setProperty("db.driver", jtxtDbDriver.getText());
    config.setProperty("db.URL", jtxtDbURL.getText());
    config.setProperty("db.user", jtxtDbUser.getText());
    AltEncrypter cypher = new AltEncrypter("cypherkey" + jtxtDbUser.getText());       
    config.setProperty("db.password", "crypt:" + cypher.encrypt(new String(jtxtDbPassword.getPassword())));

    dirty.setDirty(false);
}
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:18,代码来源:JPanelConfigDatabase.java

示例14: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
/**
 *
 * @param config
 */
@Override
public void saveProperties(AppConfig config) {
    config.setProperty("payment.commerceid", comboValue(jtxtCommerceCode.getText()));
    config.setProperty("payment.terminal", comboValue(jtxtCommerceTerminal.getText()));
    AltEncrypter cypher = new AltEncrypter("cypherkey");
    config.setProperty("payment.commercesign", "crypt:" + cypher.encrypt(new String(jtxtCommerceSign.getPassword())));
    config.setProperty("payment.SHA", comboValue(jCheckBox1.isSelected()));
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:13,代码来源:ConfigPaymentPanelCaixa.java

示例15: saveProperties

import com.openbravo.pos.forms.AppConfig; //导入方法依赖的package包/类
/**
 *
 * @param config
 */
@Override
public void saveProperties(AppConfig config) {
    
    config.setProperty("payment.magcardreader", comboValue(jcboCardReader.getSelectedItem()));
    config.setProperty("payment.gateway", comboValue(jcboPaymentGateway.getSelectedItem()));
    config.setProperty("payment.testmode", Boolean.toString(jchkPaymentTest.isSelected()));
    pc.saveProperties(config);
    dirty.setDirty(false);
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:14,代码来源:JPanelConfigPayment.java


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