本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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())));
}
示例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()));
}
示例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);
}
示例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);
}
示例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);
}
示例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()));
}
示例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())));
}
示例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())));
}
示例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);
}
示例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()));
}
示例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);
}