|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.android.pim.enough.AbstractPIMList
public abstract class AbstractPIMList
This is an abstract class to unify common functionality of a PIMList
| Field Summary |
|---|
| Fields inherited from interface de.enough.polish.android.pim.PIMList |
|---|
UNCATEGORIZED |
| Constructor Summary | |
|---|---|
AbstractPIMList(String name,
int mode)
|
|
| Method Summary | |
|---|---|
protected void |
ensureListReadable()
This method throws a SecurityException if the list is not readable. |
protected void |
ensureListWriteable()
|
de.enough.polish.android.pim.enough.FieldInfo |
findFieldInfo(int fieldId)
|
String |
getAttributeLabel(int attribute)
Returns a String label associated with the given attribute. |
int |
getFieldDataType(int fieldId)
Returns an int representing the data type of the data associated with the given field. |
String |
getFieldLabel(int fieldId)
Returns a String label associated with the given field. |
String |
getName()
Provides the name of the list. |
int[] |
getSupportedArrayElements(int stringArrayField)
Returns an integer array containing all of the supported elements of a string array for the given field. |
int[] |
getSupportedAttributes(int field)
Returns an integer array containing all of the supported attributes for the given field. |
int[] |
getSupportedFields()
Gets all fields that are supported in this list. |
boolean |
isSupportedArrayElement(int stringArrayField,
int arrayElement)
Indicates whether or not the given element in a array is supported for the indicated field in this PIM list. |
boolean |
isSupportedAttribute(int field,
int attribute)
Indicates whether or not the given attribute is supported in this PIM list for the indicated field. |
boolean |
isSupportedField(int fieldId)
Indicates whether or not the given field is supported in this PIM list. |
int |
maxValues(int field)
Indicates the total number of data values that a particular field supports in this list. |
protected void |
setFieldInfos(de.enough.polish.android.pim.enough.FieldInfo[] fieldInfos)
This method will set the fields this list can handle. |
int |
stringArraySize(int stringArrayField)
Returns the size of the array for the given string array field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.enough.polish.android.pim.PIMList |
|---|
addCategory, close, deleteCategory, getArrayElementLabel, getCategories, isCategory, items, items, items, itemsByCategory, maxCategories, renameCategory |
| Constructor Detail |
|---|
public AbstractPIMList(String name,
int mode)
| Method Detail |
|---|
public de.enough.polish.android.pim.enough.FieldInfo findFieldInfo(int fieldId)
public String getAttributeLabel(int attribute)
PIMList
isSupportedAttribute(int, int)
should be used to verify the attribute's validity for this item prior to
invoking this method.
getAttributeLabel in interface PIMListattribute - - The attribute for which the label is being queried.
public int getFieldDataType(int fieldId)
PIMListisSupportedField(int) should be used to verify the field
validity for this item prior to invoking this method.
getFieldDataType in interface PIMListfieldId - - The field for which the data type is being queried.
public String getFieldLabel(int fieldId)
PIMList
isSupportedField(int)
should be used to verify the field validity for this item prior to invoking
this method.
getFieldLabel in interface PIMListfieldId - - The field for which the label is being queried.
public String getName()
PIMList
getName in interface PIMListpublic int[] getSupportedArrayElements(int stringArrayField)
PIMList
getSupportedArrayElements in interface PIMListstringArrayField - - the field to check
public int[] getSupportedAttributes(int field)
PIMList
getSupportedAttributes in interface PIMListfield - - the field to check
public int[] getSupportedFields()
PIMList
getSupportedFields in interface PIMList
public boolean isSupportedArrayElement(int stringArrayField,
int arrayElement)
PIMList
isSupportedArrayElement in interface PIMListstringArrayField - - The field which has a STRING_ARRAY data type, as defined by classes implementing the PIMItem interface.arrayElement - - The element in the array to check, as defined in the classes implementing the PIMItem interface.
public boolean isSupportedAttribute(int field,
int attribute)
PIMList
isSupportedAttribute in interface PIMListfield - - The field against which the attribute is checked.attribute - - The single attribute to check
public boolean isSupportedField(int fieldId)
PIMList
isSupportedField in interface PIMListfieldId - - The field to check, as defined by in the class implementing the PIMItem.
public int maxValues(int field)
PIMList
maxValues in interface PIMListfield - - The field to check for multiple value support.
public int stringArraySize(int stringArrayField)
PIMList
stringArraySize in interface PIMListstringArrayField - - The string array field for which its array size is returned.
protected void ensureListReadable()
protected void ensureListWriteable()
protected void setFieldInfos(de.enough.polish.android.pim.enough.FieldInfo[] fieldInfos)
fieldInfos -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||