swpchat.client
Class ContactsMapper

java.lang.Object
  |
  +--swpchat.client.SWPConfig
        |
        +--swpchat.client.ContactsMapper

public class ContactsMapper
extends SWPConfig

Class to handle the contacts. ContactsMapper uses swpProps from Superclass SWPConfig. Contacts can be saved with setContacts, and deleted from the Properties file with removeContacts.


Field Summary
(package private) static java.lang.String CLS
           
private static java.lang.String STR_CONTACTS_KEY
           
 
Fields inherited from class swpchat.client.SWPConfig
PKConfigFileName, swpProps
 
Constructor Summary
ContactsMapper()
           
 
Method Summary
 void addNewContact(java.lang.String strNick)
          Adds a new Contact to the Properties.
 void deleteContact(java.lang.String strNick)
          remove Contact from the Properties
 
Methods inherited from class swpchat.client.SWPConfig
getConfigFileName, getStoredProperties, propertyKeys, save
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

CLS

static final java.lang.String CLS

STR_CONTACTS_KEY

private static final java.lang.String STR_CONTACTS_KEY
Constructor Detail

ContactsMapper

public ContactsMapper()
Method Detail

addNewContact

public void addNewContact(java.lang.String strNick)
Adds a new Contact to the Properties.
Parameters:
strNick - the key of the Property to add.

deleteContact

public void deleteContact(java.lang.String strNick)
remove Contact from the Properties
Parameters:
strNick - the Contact to remove