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