private void Selected(SelectionEvent e) {
int i = cmbRecordFormat.getSelectionIndex();
if (i != -1) {
- checkRecordFormat(i);
+ checkRecordFormat(i + 1);
txtRecordTypeName.setText("");
cmbRecordTypeName.select(0);
txtRecordID.setText("");
if (i != -1) {
NDEFRecord record = RecordList.get(i);
checkRecordFormat(record.getFormat());
- cmbRecordFormat.select(record.getFormat());
+ cmbRecordFormat.select(record.getFormat() - 1);
if (record.getFormat() == 1) {
if (record.getTypeName().compareTo("U") == 0)
{
cmbRecordFormat.setEnabled(true);
- checkRecordFormat(cmbRecordFormat.getSelectionIndex());
+ checkRecordFormat(cmbRecordFormat.getSelectionIndex() + 1);
txtRecordTypeName.setText("");
cmbRecordTypeName.select(0);
txtRecordID.setText("");
{
cmbRecordFormat.setEnabled(true);
- checkRecordFormat(cmbRecordFormat.getSelectionIndex());
+ checkRecordFormat(cmbRecordFormat.getSelectionIndex() + 1);
txtRecordTypeName.setText("");
cmbRecordTypeName.select(0);
txtRecordID.setText("");
private void setRecordValue(NDEFRecord record)
{
- record.setFormat(cmbRecordFormat.getSelectionIndex());
+ record.setFormat(cmbRecordFormat.getSelectionIndex() + 1);
- if (cmbRecordFormat.getSelectionIndex() == 1) {
+ if ((cmbRecordFormat.getSelectionIndex() + 1) == 1) {
record.setTypeName(TypeNameList[cmbRecordTypeName.getSelectionIndex()]);
} else {
if (txtRecordTypeName.getText().isEmpty() == true)
private RecordFormat()
{
- add(0, "NDEF_TNF_EMPTY");
- add(1, "NDEF_TNF_WELL_KNOWN");
- add(2, "NDEF_TNF_MIME_MEDIA");
- add(3, "NDEF_TNF_ABSOLUTE_URI");
- add(4, "NDEF_TNF_EXTERNAL");
- add(5, "NDEF_TNF_UNKNOWN");
+ //add(0, "NDEF_TNF_EMPTY");
+ add(0, "NDEF_TNF_WELL_KNOWN");
+ add(1, "NDEF_TNF_MIME_MEDIA");
+ add(2, "NDEF_TNF_ABSOLUTE_URI");
+ add(3, "NDEF_TNF_EXTERNAL");
+ //add(5, "NDEF_TNF_UNKNOWN");
}
}
Package:eventinjector-eplugin
-Version:0.2.18
+Version:0.2.19
OS:linux
Build-host-os:linux
Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>
Source:eventinjector-eplugin
Package:eventinjector-eplugin
-Version:0.2.18
+Version:0.2.19
OS:windows
Build-host-os:linux
Maintainer:yeongkyoon Lee <yeongkyoon.lee@samsung.com>, sungmin Ha <sungmin82.ha@samsung.com>