Modifier and Type | Field | Description |
---|---|---|
static Set<Class<?>> |
APPLICATION_CLASSES |
All classes belonging to this application.
|
static TypeClass |
CLASS |
Modifier and Type | Method | Description |
---|---|---|
String |
actionProperty() |
RollOver - Which property this roll over is associated with (Properties can be one of maiden name, phone, email, url, birth date, custom date, related name, aim, icq, jabber, msn, yahoo, address.).
|
String |
actionTitle(Reference propertyThatThatWasReturnedFromTheActionPropertyHandler,
Person currentlySelectedPerson) |
RollOver - Returns the title that will be placed in the menu for this roll over.
|
Person |
add(Entry objectToAdd,
Reference whereToAddThisChildTo) |
Add a child object.
|
default int |
countGroups() |
|
int |
countGroups(String filter) |
|
default int |
countPersons() |
|
int |
countPersons(String filter) |
|
String |
getDefaultCountryCode() |
Returns the default country code for addresses.
|
Group |
getGroup(int index) |
|
Group |
getGroup(Id id) |
|
default Group[] |
getGroups() |
|
Group[] |
getGroups(String filter) |
|
static Application |
getInstance() |
Returns an instance for application Contacts.
|
Person |
getMyCard() |
Returns my Address Book card.
|
Person |
getPerson(int index) |
|
Person |
getPerson(Id id) |
|
default Person[] |
getPersons() |
|
Person[] |
getPersons(String filter) |
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
Person[] |
getSelection() |
Currently selected entries.
|
boolean |
isUnsaved() |
Does Address Book have any unsaved changes?
|
Reference |
make(TypeClass theClassOfTheNewObject,
Reference theLocationAtWhichToInsertTheObject,
Reference theInitialContentsOfTheObject,
Map<String,Reference> theInitialValuesForPropertiesOfTheObject) |
Create a new object.
|
<T extends Reference> |
make(Class<T> klass) |
Create a new object.
|
boolean |
performAction(Reference propertyThatThatWasReturnedFromTheActionPropertyHandler,
Person currentlySelectedPerson) |
RollOver - Performs the action on the given person and value.
|
Person |
remove(Entry objectToRemove,
Reference whereToRemoveThisChildFrom) |
Remove a child object.
|
Reference |
save() |
Save all Address Book changes.
|
void |
setMyCard(Person myCard) |
Returns my Address Book card.
|
void |
setSelection(Person[] selection) |
Currently selected entries.
|
boolean |
shouldEnableAction(Reference propertyThatThatWasReturnedFromTheActionPropertyHandler,
Person currentlySelectedPerson) |
RollOver - Determines if the rollover action should be enabled for the given person and value.
|
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Kind("command") @Name("make") Reference make(@Parameter("new") TypeClass theClassOfTheNewObject, @Parameter("at") Reference theLocationAtWhichToInsertTheObject, @Parameter("with data") Reference theInitialContentsOfTheObject, @Parameter("with properties") Map<String,Reference> theInitialValuesForPropertiesOfTheObject)
theClassOfTheNewObject
- The class of the new object.theLocationAtWhichToInsertTheObject
- The location at which to insert the object.theInitialContentsOfTheObject
- The initial contents of the object.theInitialValuesForPropertiesOfTheObject
- The initial values for properties of the object.@Kind("make") <T extends Reference> T make(Class<T> klass)
klass
- Java type of the object to create.@Kind("command") @Name("add") Person add(Entry objectToAdd, @Parameter("to") Reference whereToAddThisChildTo)
objectToAdd
- object to add.whereToAddThisChildTo
- where to add this child to.@Kind("command") @Name("remove") Person remove(Entry objectToRemove, @Parameter("from") Reference whereToRemoveThisChildFrom)
objectToRemove
- object to remove.whereToRemoveThisChildFrom
- where to remove this child from.@Kind("command") @Name("save") Reference save()
@Kind("command") @Name("action property") String actionProperty()
@Kind("command") @Name("action title") String actionTitle(@Parameter("with") Reference propertyThatThatWasReturnedFromTheActionPropertyHandler, @Parameter("for") Person currentlySelectedPerson)
propertyThatThatWasReturnedFromTheActionPropertyHandler
- property that that was returned from the "action property" handler.currentlySelectedPerson
- Currently selected person.@Kind("command") @Name("perform action") boolean performAction(@Parameter("with") Reference propertyThatThatWasReturnedFromTheActionPropertyHandler, @Parameter("for") Person currentlySelectedPerson)
propertyThatThatWasReturnedFromTheActionPropertyHandler
- property that that was returned from the "action property" handler.currentlySelectedPerson
- Currently selected person.@Kind("command") @Name("should enable action") boolean shouldEnableAction(@Parameter("with") Reference propertyThatThatWasReturnedFromTheActionPropertyHandler, @Parameter("for") Person currentlySelectedPerson)
propertyThatThatWasReturnedFromTheActionPropertyHandler
- property that that was returned from the "action property" handler.currentlySelectedPerson
- Currently selected person.@Kind("element") @Type("group") default Group[] getGroups()
Group
s@Kind("element") @Type("group") Group[] getGroups(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Group
s@Kind("element") @Type("group") Group getGroup(int index)
index
- index into the element list (zero-based)Group
at the requested index@Kind("element") @Type("group") Group getGroup(Id id)
id
- id of the itemGroup
with the requested id@Kind("element") @Type("group") default int countGroups()
Group
s@Kind("element") @Type("group") int countGroups(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("person") default Person[] getPersons()
Person
s@Kind("element") @Type("person") Person[] getPersons(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Person
s@Kind("element") @Type("person") Person getPerson(int index)
index
- index into the element list (zero-based)Person
at the requested index@Kind("element") @Type("person") Person getPerson(Id id)
id
- id of the itemPerson
with the requested id@Kind("element") @Type("person") default int countPersons()
Person
s@Kind("element") @Type("person") int countPersons(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Code("az54") @Kind("property") @Name("my card") @Type("person") Person getMyCard()
@Code("az54") @Kind("property") @Name("my card") @Type("person") void setMyCard(Person myCard)
myCard
- new property value@Code("azf2") @Kind("property") @Name("unsaved") @Type("boolean") boolean isUnsaved()
@Code("az48") @Kind("property") @Name("selection") @Type("person") Person[] getSelection()
@Code("az48") @Kind("property") @Name("selection") @Type("person") void setSelection(Person[] selection)
selection
- new property value@Code("az63") @Kind("property") @Name("default country code") @Type("text") String getDefaultCountryCode()
Map<String,Object> getProperties()
static Application getInstance()