|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface defining the contract for interaction with the JwmaFolder model.
The JwmaFolder allows a view programmer to obtain information about a folder.
Field Summary | |
static int |
TYPE_ALL
Defines a virtual type that represents all of the above. |
static int |
TYPE_FOLDER
Defines folder type that can only hold folders. |
static int |
TYPE_FOLDER_CONTAINER
Defines a virtual type that represents all folders that can hold folders. |
static int |
TYPE_MAILBOX
Defines folder type that can only hold messages. |
static int |
TYPE_MESSAGE_CONTAINER
Defines a virtual type that represents all folders that can hold messages. |
static int |
TYPE_MIXED
Defines folder type that can hold messages and folders. |
Method Summary | |
java.lang.String |
getName()
Returns a String representing the name of this folder. |
java.lang.String |
getPath()
Returns a String representing the path of this folder object. |
int |
getType()
Returns an int representing the type of this folder. |
boolean |
hasMessages()
Tests if this folder object contains messages. |
boolean |
hasSubfolders()
Tests if this folder contains subfolders. |
boolean |
isSubscribed()
Tests if this folder is subscribed. |
boolean |
isType(int type)
Tests if this folder is of a given type. |
JwmaMessageInfo[] |
listMessageInfos()
Returns a JwmaMessageInfo[]. |
JwmaFolder[] |
listSubfolders()
Convenience method that returns aJwmaFolder[] containing all subfolders within this folder. |
JwmaFolder[] |
listSubfolders(int type)
Returns aJwmaFolder[] containing all subfolders of the given type within this folder. |
JwmaFolder[] |
listSubfolders(int type,
boolean subscribed)
Returns aJwmaFolder[] containing all subfolders of the given type within this folder, observing subscription. |
Field Detail |
public static final int TYPE_MAILBOX
public static final int TYPE_FOLDER
public static final int TYPE_MIXED
public static final int TYPE_MESSAGE_CONTAINER
public static final int TYPE_FOLDER_CONTAINER
public static final int TYPE_ALL
Method Detail |
public java.lang.String getName()
public java.lang.String getPath()
public int getType()
public boolean isType(int type)
public boolean hasSubfolders()
public boolean hasMessages()
public boolean isSubscribed()
public JwmaFolder[] listSubfolders(int type, boolean subscribed)
If the store does not contain any matching folder, then this method returns an empty array. Otherwise it contains one JwmaFolder for each subfolder of the given type.
public JwmaFolder[] listSubfolders(int type)
If the store does not contain any matching folder, then this method returns an empty array. Otherwise it contains one JwmaFolder for each subfolder of the given type.
public JwmaFolder[] listSubfolders()
If this folder does not contain any subfolder, then this method returns an empty array. Otherwise it contains one JwmaFolder for each subfolder.
public JwmaMessageInfo[] listMessageInfos()
If this folder does not contain any messages, then this method returns an empty array. Otherwise it contains one JwmaMessageInfo instance for each message in this folder, encapsulating all necessary information for list displaying of the message.
JwmaMessageInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |