|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the storage of Msgs
Method Summary | |
---|---|
void |
addMsg(Msg m)
Adds a Msg to the folder |
void |
addMsgChangeListener(MsgChangeListener listener)
Adds a listener for MsgChangeEvents. |
Msg[] |
getMsg()
Accessor for all of the Msgs contained in the folder |
Msg |
getMsg(int index)
Accessor for a single Msg in the folder |
MsgChangeListener[] |
getMsgChangeListeners()
Accessor for all of the listeners for the folder. |
int |
getNewMsgCount()
Gets the number of new Msgs in the folder If this information is not current available, returns -1 |
MsgFolder |
getParent()
Gets a reference to the parent folder |
int |
getUnreadMsgCount()
Gets the number of unread Msgs in the folder If this information is not current available, returns -1 |
boolean |
isRootFolder()
Returns whether or not this folder is a root folder (no parent) |
void |
removeMsg(Msg m)
Removes a Msg from the folder. |
void |
removeMsgChangeListener(MsgChangeListener listener)
Removes a listener from the folder. |
void |
setMsg(int index,
Msg msg)
Mutator for a single Msg in the folder |
void |
setMsg(Msg[] msgs)
Mutator for all of the Msgs contained in the folder |
void |
setMsgChangeListeners(MsgChangeListener[] listeners)
Mutator for all of the listeners for the folder. |
void |
setParent(MsgFolder parent)
Sets the parent for the folder |
Methods inherited from interface net.sourceforge.mflow.api.MsgFlowComponent |
---|
getName, setName |
Methods inherited from interface net.sourceforge.mflow.api.Configurable |
---|
configure |
Methods inherited from interface net.sourceforge.mflow.api.Iconable |
---|
getIcon |
Method Detail |
---|
Msg[] getMsg()
void setMsg(Msg[] msgs)
msgs
- an array of Msgs to replace the current contents of the folderMsg getMsg(int index)
index
- the index of the Msg
void setMsg(int index, Msg msg)
index
- the indexmsg
- the Msg to set at the specified indexvoid addMsg(Msg m)
m
- the Msg to add to the foldervoid removeMsg(Msg m)
m
- the Msg to remove from the folderint getNewMsgCount()
int getUnreadMsgCount()
void addMsgChangeListener(MsgChangeListener listener)
listener
- the new listener to addMsgChangeListener[] getMsgChangeListeners()
void setMsgChangeListeners(MsgChangeListener[] listeners)
listeners
- an array of MsgChangeListeners containing the new
listeners for the foldervoid removeMsgChangeListener(MsgChangeListener listener)
listener
- the listener to removeMsgFolder getParent()
void setParent(MsgFolder parent)
parent
- the new parent folder, or null to make the folder a rootboolean isRootFolder()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |