All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.jmf.MultiPlayer.MediaGroup

java.lang.Object
   |
   +----com.ibm.jmf.MultiPlayer.MediaGroup

public class MediaGroup
extends Object
This class contains the objects that makes up a media group which the multiplayer bean can manipulate. It consists of mediaName - the name of the media, i.e. http://server/sample.mov gifName - the name of the image for a button, if no button image is supplied, the Media group's index will be used for the button. index - the index of the Media Group within the Multiplayer player - the player that actually runs the media file related - which a set of related links that pertain to the media


Variable Index

 o button
 o caption
 o gifName
 o index
 o isButtonGif
 o mediaName
 o player
 o related

Constructor Index

 o MediaGroup(String, String, boolean, String, MultiPlayerBean)
MediaGroup(): constructor - not used (future)
 o MediaGroup(String, String, String, MultiPlayerBean)
MediaGroup(): constructor

Method Index

 o delete()
delete(): delete itself from the owners list of media groups
 o finalize()
finalize(): finalize called when destroyed
 o getButton()
getButton(): returns the Image button that starts this media group
 o getIndex()
getIndex(): returns the index links for this media group
 o getPlayer()
getPlayer(): returns the player corresponding to this media group
 o getRelated()
getRelated(): returns the Vector of related links for this media group
 o isButtonGif()
isButtonGif(): is the button a gif (default)
 o setButton(ImageButton)
setButton(): sets the button for this media group
 o setIndex(int)
setIndex(): sets the index for this media group
 o setIsButtonGif(boolean)
setIsButtonGif(): sets the value of the isButtonGif
 o setPlayer(JMFPlayer)
setPlayer(): sets the player variable when the player is formed
 o setRelated(RelatedLink)
setRelated(): inserts the related link into the Vector of related links, according to the start time

Variables

 o mediaName
 public String mediaName
 o gifName
 public String gifName
 o isButtonGif
 boolean isButtonGif
 o index
 int index
 o caption
 String caption
 o player
 JMFPlayer player
 o button
 ImageButton button
 o related
 Vector related

Constructors

 o MediaGroup
 public MediaGroup(String media,
                   String gif,
                   String caption,
                   MultiPlayerBean o)
MediaGroup(): constructor

Parameters:
media - URL name of the media clip
gif - URL name of the button gif
caption - description of the media (future)
o - the multiplayerbean that owns this media group
 o MediaGroup
 public MediaGroup(String media,
                   String gif,
                   boolean isGif,
                   String caption,
                   MultiPlayerBean o)
MediaGroup(): constructor - not used (future)

Parameters:
media - URL name of the media clip
gif - URL name of the button gif
isGif - if the gif is a Gif file or not. Could be a text string later
caption - description of the media (future)
o - the multiplayerbean that owns this media group

Methods

 o finalize
 protected void finalize() throws Throwable
finalize(): finalize called when destroyed

Overrides:
finalize in class Object
 o setPlayer
 public void setPlayer(JMFPlayer pb)
setPlayer(): sets the player variable when the player is formed

 o getPlayer
 public JMFPlayer getPlayer()
getPlayer(): returns the player corresponding to this media group

Returns:
PlayerBean The PlayerBean for this media group
 o setButton
 public void setButton(ImageButton b)
setButton(): sets the button for this media group

Parameters:
ImageButton - : the button that starts this media group
 o getButton
 public ImageButton getButton()
getButton(): returns the Image button that starts this media group

Returns:
ImageButton the button that starts this media group
 o setIsButtonGif
 public void setIsButtonGif(boolean b)
setIsButtonGif(): sets the value of the isButtonGif

 o isButtonGif
 public boolean isButtonGif()
isButtonGif(): is the button a gif (default)

 o delete
 public void delete()
delete(): delete itself from the owners list of media groups

 o setRelated
 public void setRelated(RelatedLink l)
setRelated(): inserts the related link into the Vector of related links, according to the start time

 o setIndex
 public void setIndex(int i)
setIndex(): sets the index for this media group

Parameters:
int - : index to set to
 o getIndex
 public int getIndex()
getIndex(): returns the index links for this media group

Returns:
int
 o getRelated
 public Vector getRelated()
getRelated(): returns the Vector of related links for this media group

Returns:
Vector

All Packages  Class Hierarchy  This Package  Previous  Next  Index