Interface como.commlet.Commlet
All Packages Class Hierarchy This Package Previous Next Index
Interface como.commlet.Commlet
- public interface Commlet
- extends Object
The interface for Commlets. You should not have to refer to this; most Commlets
should be derived from WindowCommlet or MetaCommlet.
-
getCommletInfo()
-
-
getCommletName()
-
-
getSessionName()
-
-
handleMsg(Msg)
- this Method is called, if you receive a new message.
-
hideCommlet()
- This hides the commlet.
-
init()
- This is called after setCom has been called.
-
isUserAdmitted(User)
- Override this and return true if you want to permit the user u to
join the Commlet.
-
setCom(ComObj)
- Sets the corresponding ComObj for this commlet.
-
setMetaCommlet(MetaCommlet)
- For MetaCommlets.
-
showCommlet()
- This shows the commlet and does some basic inits.
-
stop()
- Called when it will stop.
getSessionName
public abstract String getSessionName()
- Returns:
- the name of the session
getCommletName
public abstract String getCommletName()
- Returns:
- the name of the commlet
getCommletInfo
public abstract String getCommletInfo()
- Returns:
- some information about the commlet
setMetaCommlet
public abstract void setMetaCommlet(MetaCommlet m)
- For MetaCommlets.
init
public abstract void init()
- This is called after setCom has been called. If you override it,
call super.init() in the first line!.
showCommlet
public abstract void showCommlet()
- This shows the commlet and does some basic inits.
Called from outside, if it should the commlet should be shown.
hideCommlet
public abstract void hideCommlet()
- This hides the commlet. Not needed at the moment by ComObj, but by
WindowCommlet/MetaCommlet.
setCom
public abstract void setCom(ComObj c)
- Sets the corresponding ComObj for this commlet.
- Parameters:
- c - the ComObj
stop
public abstract void stop()
- Called when it will stop. In this routine you
have to call ComObj.logout() at the end!
handleMsg
public abstract boolean handleMsg(Msg msg)
- this Method is called, if you receive a new message.
msg.from will be the ID of the sender. In msg.type
you'll find the message ID. * In msg.arg
you'll find the object that was sent.
- Parameters:
- msg - the Msg
- Returns:
- true, if you handled the message (for handled messages that
might be interesting for other commlets in a metacommlet
do return false then!). false if not handled (like in AWT: handleEvent())
isUserAdmitted
public abstract boolean isUserAdmitted(User u)
- Override this and return true if you want to permit the user u to
join the Commlet.
All Packages Class Hierarchy This Package Previous Next Index