|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcorny.addressbook.gui.ContactTable.ContactTableHandler
public class ContactTableHandler
Handler class for ContactTable.
Method Summary | |
---|---|
boolean |
addColumn(ContactProperty prop,
java.lang.String label)
Adds a new column with the given content. |
boolean |
addColumn(int columnContent)
Adds a column with the given content. |
void |
fetchContacts(Group group,
Filter filter,
boolean preserveSelection)
Replaces the content of the Table with the Contacts of the given Group. |
Contact[] |
getSelectedContacts()
|
boolean |
isLastNameFirst()
|
boolean |
removeColumn(ContactProperty prop,
java.lang.String label)
Removes the column with the given content. |
boolean |
removeColumn(int columnContent)
Removes the column with the given content. |
void |
removeSelectedContacts()
Removes the currently selected Contacts from the Address Book. |
void |
selectContact(Contact c)
Selects a given Contact. |
void |
setEditingEnabled(boolean editing)
Specifies whether the Table can be edited or not. |
void |
setLastNameFirst(boolean lastNameFirst)
Specifies whether the name column of the ContactTable should display the last name first or not. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isLastNameFirst()
setLastNameFirst(boolean)
public void setLastNameFirst(boolean lastNameFirst)
lastNameFirst
- true to display the last name first, false to display the
first name firstpublic void selectContact(Contact c)
c
- Contact to selectpublic void fetchContacts(Group group, Filter filter, boolean preserveSelection)
group
- Group to fetch Contacts fromfilter
- Filter to apply on the Contacts or null to not filter the
ContactspreserveSelection
- true to restore the Contact selection after replacing the
content of the table.public boolean removeColumn(int columnContent)
columnContent
- Can be one or more of the following:
PeoplePickerPanel.SHOW_FIRST_PHONE_COLUMN
PeoplePickerPanel.SHOW_HOME_PHONE_COLUMN
PeoplePickerPanel.SHOW_WORK_PHONE_COLUMN
PeoplePickerPanel.SHOW_MOBILE_PHONE_COLUMN
PeoplePickerPanel.SHOW_FIRST_EMAIL_COLUMN
PeoplePickerPanel.SHOW_HOME_EMAIL_COLUMN
PeoplePickerPanel.SHOW_WORK_EMAIL_COLUMN
PeoplePickerPanel.SHOW_BIRTHDAY_COLUMN
PeoplePickerPanel.SHOW_FIRST_ADDRESS_COLUMN
PeoplePickerPanel.SHOW_HOME_ADDRESS_COLUMN
public boolean removeColumn(ContactProperty prop, java.lang.String label)
prop
- Displayed contentlabel
- Specific label for multi value properties
public boolean addColumn(int columnContent)
columnContent
- Can be one or more of the following:
PeoplePickerPanel.SHOW_FIRST_PHONE_COLUMN
PeoplePickerPanel.SHOW_HOME_PHONE_COLUMN
PeoplePickerPanel.SHOW_WORK_PHONE_COLUMN
PeoplePickerPanel.SHOW_MOBILE_PHONE_COLUMN
PeoplePickerPanel.SHOW_FIRST_EMAIL_COLUMN
PeoplePickerPanel.SHOW_HOME_EMAIL_COLUMN
PeoplePickerPanel.SHOW_WORK_EMAIL_COLUMN
PeoplePickerPanel.SHOW_BIRTHDAY_COLUMN
PeoplePickerPanel.SHOW_FIRST_ADDRESS_COLUMN
PeoplePickerPanel.SHOW_HOME_ADDRESS_COLUMN
public boolean addColumn(ContactProperty prop, java.lang.String label)
prop
- ContactProperty to displaylabel
- Specific label for multi value properties or null to display
the first available value.
public Contact[] getSelectedContacts()
public void removeSelectedContacts()
public void setEditingEnabled(boolean editing)
editing
- true to enable editing, false to disable editing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |