Class marimba.gui.PlayerUtil
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.PlayerUtil

java.lang.Object
   |
   +----marimba.gui.PlayerUtil

public class PlayerUtil
extends Object
implements TimerClient
A utillity class for manipulating the widgets in a player. It contains many helper routines for accessing widgets and setting their parameters.

Variable Index

 o player
The PlayerPanel on which this util operates.

Constructor Index

 o PlayerUtil(PlayerPanel)
Constructor.

Method Index

 o addList(String, ListItemWidget)
Add a ListItemWidget to a named ListWidget.
 o addSortedList(String, ListItemWidget)
Add a sorted ListItemWidget to a named ListWidget.
 o appendText(String, String)
Append to a named TextWidget or TextAreaWidget.
 o clearList(String)
Clear a named ListWidget.
 o clearText(String, long)
Clear a named TextWidget or TextAreaWidget, after a given time.
 o currentPage(String)
Get the current page of a named FolderWidget.
 o getBoolean(String)
Get the value of a named CheckBoxWidget.
 o getChoice(String)
Get the value of a named ChoiceWidget.
 o getPlayerPanel()
Get the PlayerPanel.
 o getPresentation()
Get the current presentation.
 o getText(String)
Get the text of a widget.
 o getValue(String)
Get the value of a widget.
 o getWidget(String)
Accessing widgets, prints an error message to system.err if the widget is not being found.
 o getWidget(String, boolean)
Accessing widgets, print or do not print an error message.
 o gotoPage(String)
Goto a named page.
 o setBoolean(String, boolean)
Set the value of a named CheckBoxWidget.
 o setChoice(String, String)
Set the value of a named ChoiceWidget.
 o setFPS(String, int)
Set the Frames per second for a named AnimatedWidget.
 o setPresentation(String)
Set a presentation from a file
 o setPresentation(URL)
Set a presentation from a url
 o setText(String, String)
Get the text of a widget.
 o setValue(String, Object)
Get the value of a widget.
 o show(String)
Show a named widget.
 o show(String, boolean)
Show/Hide a named widget.
 o tick(long, Object)
Tick, means clear a text widget.

Variables

 o player
  public PlayerPanel player
The PlayerPanel on which this util operates.
See Also:
getPlayerPanel

Constructors

 o PlayerUtil
  public PlayerUtil(PlayerPanel player)
Constructor.

Methods

 o getPlayerPanel
  public PlayerPanel getPlayerPanel()
Get the PlayerPanel.
See Also:
player
 o setPresentation
  public synchronized void setPresentation(String file)
Set a presentation from a file
 o setPresentation
  public synchronized void setPresentation(URL url)
Set a presentation from a url
 o getPresentation
  public Presentation getPresentation()
Get the current presentation.
 o getWidget
  public synchronized Widget getWidget(String name)
Accessing widgets, prints an error message to system.err if the widget is not being found.
 o getWidget
  public synchronized Widget getWidget(String name,
                                       boolean print)
Accessing widgets, print or do not print an error message.
 o getValue
  public Object getValue(String name)
Get the value of a widget.
 o setValue
  public void setValue(String name,
                       Object value)
Get the value of a widget.
 o getText
  public String getText(String name)
Get the text of a widget.
 o setText
  public void setText(String name,
                      String value)
Get the text of a widget.
 o appendText
  public void appendText(String name,
                         String value)
Append to a named TextWidget or TextAreaWidget.
 o tick
  public long tick(long tm,
                   Object arg)
Tick, means clear a text widget.
 o clearText
  public void clearText(String name,
                        long tm)
Clear a named TextWidget or TextAreaWidget, after a given time.
 o getChoice
  public String getChoice(String name)
Get the value of a named ChoiceWidget.
 o setChoice
  public void setChoice(String name,
                        String value)
Set the value of a named ChoiceWidget.
 o getBoolean
  public boolean getBoolean(String name)
Get the value of a named CheckBoxWidget.
 o setBoolean
  public void setBoolean(String name,
                         boolean value)
Set the value of a named CheckBoxWidget.
 o gotoPage
  public void gotoPage(String name)
Goto a named page.
 o currentPage
  public String currentPage(String name)
Get the current page of a named FolderWidget.
 o show
  public void show(String name)
Show a named widget.
 o show
  public void show(String name,
                   boolean flag)
Show/Hide a named widget.
 o clearList
  public void clearList(String name)
Clear a named ListWidget.
 o addList
  public void addList(String name,
                      ListItemWidget item)
Add a ListItemWidget to a named ListWidget.
 o addSortedList
  public void addSortedList(String name,
                            ListItemWidget item)
Add a sorted ListItemWidget to a named ListWidget.
 o setFPS
  public void setFPS(String name,
                     int fps)
Set the Frames per second for a named AnimatedWidget.

All Packages  Class Hierarchy  This Package  Previous  Next  Index