Exemplo n.º 1
0
 /** @see nl.lxtreme.ols.api.Configurable#writePreferences(nl.lxtreme.ols.api.UserSettings) */
 @Override
 public void writePreferences(final UserSettings aSettings) {
   aSettings.putInt("rxd", this.rxd.getSelectedIndex());
   aSettings.putInt("txd", this.txd.getSelectedIndex());
   aSettings.putInt("cts", this.cts.getSelectedIndex());
   aSettings.putInt("rts", this.rts.getSelectedIndex());
   aSettings.putInt("dtr", this.dtr.getSelectedIndex());
   aSettings.putInt("dsr", this.dsr.getSelectedIndex());
   aSettings.putInt("dcd", this.dcd.getSelectedIndex());
   aSettings.putInt("ri", this.ri.getSelectedIndex());
   aSettings.putInt("parity", this.parity.getSelectedIndex());
   aSettings.putInt("bits", this.bits.getSelectedIndex());
   aSettings.putInt("stop", this.stop.getSelectedIndex());
   aSettings.putBoolean("inverted", this.inv.isSelected());
 }
Exemplo n.º 2
0
 /** @see nl.lxtreme.ols.api.Configurable#writePreferences(nl.lxtreme.ols.api.UserSettings) */
 @Override
 public void writePreferences(final UserSettings aSettings) {
   aSettings.putInt("rxd", this.rxd.getSelectedIndex());
   aSettings.putInt("txd", this.txd.getSelectedIndex());
   aSettings.putInt("cts", this.cts.getSelectedIndex());
   aSettings.putInt("rts", this.rts.getSelectedIndex());
   aSettings.putInt("dtr", this.dtr.getSelectedIndex());
   aSettings.putInt("dsr", this.dsr.getSelectedIndex());
   aSettings.putInt("dcd", this.dcd.getSelectedIndex());
   aSettings.putInt("ri", this.ri.getSelectedIndex());
   aSettings.putInt("parity", this.parity.getSelectedIndex());
   aSettings.putInt("bits", this.bits.getSelectedIndex());
   aSettings.putInt("stop", this.stop.getSelectedIndex());
   aSettings.putInt("idle-state", this.idleLevel.getSelectedIndex());
   aSettings.putInt("bit-encoding", this.bitEncoding.getSelectedIndex());
   aSettings.putInt("bit-order", this.bitOrder.getSelectedIndex());
   aSettings.putInt("baudrate", ((Integer) this.baudrate.getSelectedItem()).intValue());
   aSettings.putBoolean("auto-baudrate", this.autoDetectBaudRate.isSelected());
 }