001: /*
002: *
003: *
004: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
005: * Reserved. Use is subject to license terms.
006: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
007: *
008: * This program is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU General Public License version
010: * 2 only, as published by the Free Software Foundation.
011: *
012: * This program is distributed in the hope that it will be useful, but
013: * WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * General Public License version 2 for more details (a copy is
016: * included at /legal/license.txt).
017: *
018: * You should have received a copy of the GNU General Public License
019: * version 2 along with this work; if not, write to the Free Software
020: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
021: * 02110-1301 USA
022: *
023: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
024: * Clara, CA 95054 or visit www.sun.com if you need additional
025: * information or have any questions.
026: */
027:
028: /*
029: * Copyright (C) 2002-2003 PalmSource, Inc. All Rights Reserved.
030: */
031:
032: package javax.microedition.pim;
033:
034: import java.lang.String;
035: import java.util.Enumeration;
036:
037: /**
038: * This class is defined by the JSR-75 specification
039: * <em>PDA Optional Packages for the J2ME™ Platform</em>
040: */
041: // JAVADOC COMMENT ELIDED
042: public interface PIMList {
043: // JAVADOC COMMENT ELIDED
044: public static final String UNCATEGORIZED = null;
045:
046: // JAVADOC COMMENT ELIDED
047: public abstract String getName();
048:
049: // JAVADOC COMMENT ELIDED
050: public abstract void close() throws PIMException;
051:
052: // JAVADOC COMMENT ELIDED
053: public abstract Enumeration items() throws PIMException;
054:
055: // JAVADOC COMMENT ELIDED
056: public abstract Enumeration items(PIMItem matchingItem)
057: throws PIMException;
058:
059: // JAVADOC COMMENT ELIDED
060: public abstract Enumeration items(String matchingValue)
061: throws PIMException;
062:
063: // JAVADOC COMMENT ELIDED
064: public abstract Enumeration itemsByCategory(String category)
065: throws PIMException;
066:
067: // JAVADOC COMMENT ELIDED
068: public abstract String[] getCategories() throws PIMException;
069:
070: // JAVADOC COMMENT ELIDED
071: public abstract boolean isCategory(String category)
072: throws PIMException;
073:
074: // JAVADOC COMMENT ELIDED
075: public abstract void addCategory(String category)
076: throws PIMException;
077:
078: // JAVADOC COMMENT ELIDED
079: public abstract void deleteCategory(String category,
080: boolean deleteUnassignedItems) throws PIMException;
081:
082: // JAVADOC COMMENT ELIDED
083: public abstract void renameCategory(String currentCategory,
084: String newCategory) throws PIMException;
085:
086: // JAVADOC COMMENT ELIDED
087: public abstract int maxCategories();
088:
089: // JAVADOC COMMENT ELIDED
090: public abstract boolean isSupportedField(int field);
091:
092: // JAVADOC COMMENT ELIDED
093: public abstract int[] getSupportedFields();
094:
095: // JAVADOC COMMENT ELIDED
096: public abstract boolean isSupportedAttribute(int field,
097: int attribute);
098:
099: // JAVADOC COMMENT ELIDED
100: public abstract int[] getSupportedAttributes(int field);
101:
102: // JAVADOC COMMENT ELIDED
103: public abstract boolean isSupportedArrayElement(
104: int stringArrayField, int arrayElement);
105:
106: // JAVADOC COMMENT ELIDED
107: public abstract int[] getSupportedArrayElements(int stringArrayField);
108:
109: // JAVADOC COMMENT ELIDED
110: public abstract int getFieldDataType(int field);
111:
112: // JAVADOC COMMENT ELIDED
113: public abstract String getFieldLabel(int field);
114:
115: // JAVADOC COMMENT ELIDED
116: public abstract String getAttributeLabel(int attribute);
117:
118: // JAVADOC COMMENT ELIDED
119: public abstract String getArrayElementLabel(int stringArrayField,
120: int arrayElement);
121:
122: // JAVADOC COMMENT ELIDED
123: public abstract int maxValues(int field);
124:
125: // JAVADOC COMMENT ELIDED
126: public abstract int stringArraySize(int stringArrayField);
127: }
|