|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.db.AbstractDBEntry
com.antelmann.db.PropertyEntryImpl
com.antelmann.crm.ContactImpl<T>
public abstract class ContactImpl<T extends Keyword>
a base implementation for a Contact
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.antelmann.db.Taggable |
|---|
Taggable.Adapter<T extends Tag> |
| Field Summary |
|---|
| Fields inherited from class com.antelmann.db.PropertyEntryImpl |
|---|
propertyChangeSupport, props, um, vcs |
| Fields inherited from interface com.antelmann.db.DBEntry |
|---|
ENTRY_FLAVOR, ENTRY_LIST_FLAVOR |
| Fields inherited from interface com.antelmann.util.Enabled |
|---|
FILTER |
| Constructor Summary | |
|---|---|
ContactImpl(Object id)
|
|
ContactImpl(Object id,
GlobalAddress adr)
|
|
ContactImpl(Object id,
GlobalAddress adr,
Map<String,Object> map)
|
|
ContactImpl(Object id,
Map<String,Object> map)
|
|
ContactImpl(Object id,
PropertyEntryImpl entry)
|
|
| Method Summary | |
|---|---|
void |
add(AddressInfo ai)
|
void |
add(AddressInfo ai,
int index)
adds an address at the given index (optional operation) |
boolean |
add(T tag)
makes this instance member of the given group |
boolean |
addTag(String keyword)
|
int |
compareTo(Contact c)
|
protected T |
createTag(String tagName)
|
GlobalAddress |
getAddress()
always returns a non-null value referring directly to the embedded main Address instance, which provides a way to 'address' the implementing instance |
Date |
getBeginTime()
|
String |
getBusinessCardString()
the returned String (as opposed to toDetailedString() uses Strings.lb |
String |
getContactName()
provides an internally used name suitable for display in list views |
String |
getContactNotes()
provides some notes on this contact |
Image |
getDisplayIcon()
returns an image that is suitable for use as an icon for this instance. |
Image |
getDisplayImage()
returns an image that represents a visual representation of this instance. |
Date |
getEndTime()
|
ImageHolder |
getIconHolder()
allows to modify the image for getDisplayIcon() |
ImageHolder |
getImageHolder()
|
String[] |
getKeywords()
|
List<? extends AddressInfo> |
getMoreAddresses()
allows to retrieve additional (editable) addresses for a given contact. |
Collection<T> |
getTags()
lists all groups that this instance is currently a member of (the data is essentially derived from a set) |
abstract Class<T> |
getTagType()
|
boolean |
hasKeyword(String keyword)
|
boolean |
isEnabled()
determines whether this object is currently enabled |
boolean |
isTagged(T tag)
allows to determine the membership of the given tag or group |
boolean |
remove(T tag)
terminates the membership of this instance to the given group |
AddressInfo |
removeAddress(int index)
removes (and returns) an address at the given index (optional operation) |
boolean |
removeKeyword(String keyword)
|
void |
setBeginTime(Date beginTime)
|
void |
setContactName(String name)
|
void |
setContactNotes(String notes)
|
void |
setDisplayImage(BinaryData data)
|
void |
setDisplayImage(Image image)
|
void |
setDisplayImage(URL url)
|
void |
setDisplayImage(ValueRetriever<Image> imageRetriever)
|
void |
setEnabled(boolean flag)
allows to enable/disable this instance |
void |
setEndTime(Date endTime)
|
String |
toDetailedString()
provides full details of this instance in a String. |
String |
toString()
|
| Methods inherited from class com.antelmann.db.AbstractDBEntry |
|---|
equals, getID, hashCode, hashEntry, sameEntry |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.antelmann.db.DBEntry |
|---|
getID |
| Constructor Detail |
|---|
public ContactImpl(Object id)
public ContactImpl(Object id,
GlobalAddress adr)
public ContactImpl(Object id,
PropertyEntryImpl entry)
public ContactImpl(Object id,
Map<String,Object> map)
public ContactImpl(Object id,
GlobalAddress adr,
Map<String,Object> map)
| Method Detail |
|---|
public String toString()
toString in class AbstractDBEntrypublic int compareTo(Contact c)
compareTo in interface Comparable<Contact>public String getContactName()
Contact
getContactName in interface Contactpublic void setContactName(String name)
public String getContactNotes()
Contact
getContactNotes in interface Contactpublic void setContactNotes(String notes)
public List<? extends AddressInfo> getMoreAddresses()
Contact
getMoreAddresses in interface Contactpublic void add(AddressInfo ai)
public void add(AddressInfo ai,
int index)
throws IndexOutOfBoundsException
Contact
add in interface ContactIndexOutOfBoundsException
public AddressInfo removeAddress(int index)
throws IndexOutOfBoundsException
Contact
removeAddress in interface ContactIndexOutOfBoundsException
public Image getDisplayImage()
throws IOException
Imageable
getDisplayImage in interface ImageableIOExceptionpublic void setDisplayImage(Image image)
public void setDisplayImage(ValueRetriever<Image> imageRetriever)
public void setDisplayImage(URL url)
public void setDisplayImage(BinaryData data)
public ImageHolder getImageHolder()
public Image getDisplayIcon()
throws IOException
Imageable
getDisplayIcon in interface ImageableIOExceptiongetIconHolder()public ImageHolder getIconHolder()
getDisplayIcon()
public String getBusinessCardString()
toDetailedString() uses Strings.lb
public String toDetailedString()
DetailedString
toDetailedString in interface DetailedStringtoDetailedString in class PropertyEntryImplpublic GlobalAddress getAddress()
Addressable
getAddress in interface Addressablepublic Date getBeginTime()
getBeginTime in interface LifeCycleObjectpublic void setBeginTime(Date beginTime)
public Date getEndTime()
getEndTime in interface LifeCycleObjectpublic void setEndTime(Date endTime)
public boolean isEnabled()
Enabled
isEnabled in interface Enabledpublic void setEnabled(boolean flag)
Enabled
setEnabled in interface Enabledpublic abstract Class<T> getTagType()
protected T createTag(String tagName)
public boolean addTag(String keyword)
public boolean add(T tag)
Taggable
add in interface Taggable<T extends Keyword>tag - the Group object that this instance is to become a member of
public Collection<T> getTags()
Taggable
getTags in interface Taggable<T extends Keyword>public String[] getKeywords()
public boolean hasKeyword(String keyword)
public boolean isTagged(T tag)
Taggable
isTagged in interface Taggable<T extends Keyword>public boolean removeKeyword(String keyword)
public boolean remove(T tag)
Taggable
remove in interface Taggable<T extends Keyword>tag - the Group that this instance is to be removed from as a member
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||