- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 39 of file VCardPlugin.java.
◆ getData()
Object org.turro.vcard.util.VCardPlugin.getData |
( |
String |
id | ) |
|
Implements org.turro.plugin.IPlugin.
Definition at line 60 of file VCardPlugin.java.
61 if(
"import".equals(
id)) {
63 return new ImportFromVCard().importVCard();
64 }
catch (IOException ex) {
65 Logger.getLogger(VCardPlugin.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
67 }
else if(
"importcsv".equals(
id)) {
69 return new ImportFromCSV().importCSV();
70 }
catch (IOException ex) {
71 Logger.getLogger(VCardPlugin.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
73 }
else if(
"importFolder".equals(
id)) {
74 return VCardFiles.getImportFolder();
75 }
else if(
"qrcode".equals(
id)) {
76 return new ExportToVCard(contact).getQRCode();
◆ setData()
void org.turro.vcard.util.VCardPlugin.setData |
( |
String |
id, |
|
|
Object |
data |
|
) |
| |
Implements org.turro.plugin.IPlugin.
Definition at line 44 of file VCardPlugin.java.
45 if(
"contact".equals(
id)) {
46 contact = (Contact) data;
47 }
else if(
"export".equals(
id)) {
49 File f =
new ExportToVCard((List<Contact>) data).export();
51 Filedownload.save(f, ContentTypes.getContentType(FileUtil.getExtension(f)));
53 }
catch (IOException ex) {
54 Logger.getLogger(VCardPlugin.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
The documentation for this class was generated from the following file: