Class marimba.gui.Presentation
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.Presentation
java.lang.Object
|
+----marimba.gui.Widget
|
+----marimba.gui.ContainerWidget
|
+----marimba.gui.GroupWidget
|
+----marimba.gui.Presentation
- public class Presentation
- extends GroupWidget
This class represents a presentation. A presentation is a
top level widget that can be saved to a file. It takes care
of the administration of external resources.
- Version:
- 1.66, 01/17/97
- Author:
- Arthur van Hoff
-
base
- The base of this presentation.
-
cursor
- The current mouse cursor for this presentation.
-
cursorOptions
- The possible options for the mouse cursor.
-
defaultCursor
- The mouse cursor for this presentation.
-
error
-
-
icon
- The name of the file containing the icon for this
presentation.
-
loader
- The class loader for this presentation.
-
resizable
- Determines whether this presentation can be resized.
-
saved
-
-
selBackground
- The background color for selections.
-
selForeground
- The foreground color for selections.
-
title
- The title of this presentation, displayed in the
title bar when this presentation is run.
-
Presentation()
- Constructor.
-
Presentation(URL)
- Construct a new presentation.
-
addBase(String, String)
- Add a base URL.
-
addBase(String, URL)
- Add a base URL.
-
findWidget(String)
- Find a widget in this presentation.
-
getAudioClip(String)
- Get an audio clip.
-
getAudioClipAt(URL)
- Get an audio clip using a url.
-
getBase()
- Get the base of this presentation
-
getCursor()
- Get the current mouse cursor.
-
getCursorOptions()
- Get the possible options for the mouse cursor.
-
getDefaultCursor()
- Get the default mouse cursor.
-
getIcon()
- Get the icon.
-
getImage(String)
- Get an image.
-
getPresentation()
- Get the presentation.
-
getPresentation(String)
- Get a presentation from a file
-
getPresentation(URL)
- Get a presentation from a url.
-
getProperties(PropertyList)
- Get properties.
-
getSelBackground()
- Get background selection color.
-
getSelForeground()
- Get foreground selection color.
-
getTitle()
- Get the title of this presentation.
-
getURL(String)
- Construct the absolute URL for a resource.
-
getURL(URL, String)
- Construct the absolute URL for a resource.
-
getURLClassLoader()
- Get the class loader for this presentation.
-
handleEvent(Event)
- Handle an event.
-
isResizable()
- Check whether this presentation is resizable.
-
newInstance(String)
- Create an instance of a class in the context of this
presentation.
-
paramString(StringBuffer)
- For debugging only.
-
replace(Widget)
- Make sure to set the right presentation in the
player if this one is replaced.
-
resetCursor()
- Reset the current cursor to the default one.
-
setBase(URL)
- Set the base of this presentation, the loader is set to the
current class loader from the threadgroup.
-
setBase(URL, URLClassLoader)
- Set the base and class loader of this presentation
-
setCursor(int)
- Set the current mouse cursor.
-
setDefaultCursor(int)
- Set the default mouse cursor.
-
setIcon(String)
- Set the icon.
-
setProperties(PropertyList)
- Set the properties.
-
setResizable(boolean)
- Enable/disable resizing this presentation.
-
setSelBackground(Color)
- Set background selection color.
-
setSelColors(Color, Color)
- Set both selection colors at once.
-
setSelForeground(Color)
- Set foreground selection color.
-
setTitle(String)
- Set the title of this presentation.
saved
public boolean saved
error
public static boolean error
cursorOptions
public static Options cursorOptions
- The possible options for the mouse cursor.
- See Also:
- getCursorOptions, cursor
base
public URL base
- The base of this presentation. Relative pathnames will
start with this base.
- See Also:
- getBase, setBase
title
public String title
- The title of this presentation, displayed in the
title bar when this presentation is run.
- See Also:
- getTitle, setTitle
icon
public String icon
- The name of the file containing the icon for this
presentation.
- See Also:
- getIcon, setIcon
defaultCursor
public int defaultCursor
- The mouse cursor for this presentation.
The constants for the cursor are defined in java.awt.Frame.
- See Also:
- getDefaultCursor, setDefaultCursor, resetCursor, cursorOptions
cursor
public int cursor
- The current mouse cursor for this presentation.
- See Also:
- getCursor, setCursor, defaultCursor
resizable
public boolean resizable
- Determines whether this presentation can be resized.
- See Also:
- isResizable, setResizable
selForeground
public Color selForeground
- The foreground color for selections.
- See Also:
- getSelForeground, setSelForeground, setSelColors
selBackground
public Color selBackground
- The background color for selections.
- See Also:
- getSelBackground, setSelBackground, setSelColors
loader
public URLClassLoader loader
- The class loader for this presentation.
- See Also:
- getURLClassLoader, setBase
Presentation
public Presentation()
- Constructor.
Presentation
public Presentation(URL base)
- Construct a new presentation.
getProperties
public void getProperties(PropertyList list)
- Get properties.
- Overrides:
- getProperties in class GroupWidget
setProperties
public void setProperties(PropertyList list)
- Set the properties.
- Overrides:
- setProperties in class GroupWidget
setSelForeground
public void setSelForeground(Color selForeground)
- Set foreground selection color.
- See Also:
- selForeground
setSelBackground
public void setSelBackground(Color selBackground)
- Set background selection color.
- See Also:
- selBackground
setSelColors
public void setSelColors(Color selForeground,
Color selBackGround)
- Set both selection colors at once.
- See Also:
- selForeground, selBackground
getSelForeground
public Color getSelForeground()
- Get foreground selection color.
- Overrides:
- getSelForeground in class Widget
- See Also:
- selForeground
getSelBackground
public Color getSelBackground()
- Get background selection color.
- Overrides:
- getSelBackground in class Widget
- See Also:
- selBackground
replace
public void replace(Widget newWidget)
- Make sure to set the right presentation in the
player if this one is replaced.
- Overrides:
- replace in class Widget
getPresentation
public Presentation getPresentation()
- Get the presentation.
- Overrides:
- getPresentation in class Widget
getURLClassLoader
public URLClassLoader getURLClassLoader()
- Get the class loader for this presentation. This
may return null.
- See Also:
- loader
getBase
public URL getBase()
- Get the base of this presentation
- See Also:
- base
setBase
public void setBase(URL base)
- Set the base of this presentation, the loader is set to the
current class loader from the threadgroup.
- See Also:
- base, loader
setBase
public void setBase(URL base,
URLClassLoader loader)
- Set the base and class loader of this presentation
- See Also:
- base, loader
getTitle
public String getTitle()
- Get the title of this presentation.
- See Also:
- title
setTitle
public void setTitle(String title)
- Set the title of this presentation. This will change the
title of the window if this presentation is embedded in a
PlayerPanel who's parent is a Frame.
- See Also:
- title
getIcon
public String getIcon()
- Get the icon.
- See Also:
- icon
setIcon
public void setIcon(String icon)
- Set the icon.
- See Also:
- icon
getCursorOptions
public Options getCursorOptions()
- Get the possible options for the mouse cursor.
- See Also:
- cursorOptions
getDefaultCursor
public int getDefaultCursor()
- Get the default mouse cursor.
- See Also:
- defaultCursor
setDefaultCursor
public void setDefaultCursor(int defaultCursor)
- Set the default mouse cursor.
- See Also:
- defaultCursor
getCursor
public int getCursor()
- Get the current mouse cursor.
- Overrides:
- getCursor in class Widget
- See Also:
- cursor
setCursor
public void setCursor(int cursor)
- Set the current mouse cursor.
- Overrides:
- setCursor in class Widget
- See Also:
- cursor
resetCursor
public void resetCursor()
- Reset the current cursor to the default one.
- Overrides:
- resetCursor in class Widget
- See Also:
- defaultCursor, cursor
isResizable
public boolean isResizable()
- Check whether this presentation is resizable.
- See Also:
- resizable
setResizable
public void setResizable(boolean resizable)
- Enable/disable resizing this presentation.
- See Also:
- resizable
addBase
public static void addBase(String name,
URL url)
- Add a base URL. This lets you refer to a resource using
the ~name/foo notation.
addBase
public static void addBase(String name,
String str)
- Add a base URL. This lets you refer to a resource using
the ~name/foo notation.
getURL
public static URL getURL(URL base,
String url)
- Construct the absolute URL for a resource.
getURL
public URL getURL(String url)
- Construct the absolute URL for a resource.
getImage
public Image getImage(String src)
- Get an image.
- Overrides:
- getImage in class Widget
getAudioClip
public AudioClip getAudioClip(String src)
- Get an audio clip.
- Overrides:
- getAudioClip in class Widget
getAudioClipAt
public AudioClip getAudioClipAt(URL url)
- Get an audio clip using a url.
- Overrides:
- getAudioClipAt in class Widget
findWidget
public Widget findWidget(String nm)
- Find a widget in this presentation.
- Overrides:
- findWidget in class ContainerWidget
newInstance
public synchronized Object newInstance(String nm) throws ClassNotFoundException, IllegalAccessException, InstantiationException
- Create an instance of a class in the context of this
presentation. This means that the class can be located
in the same area as the presentation.
getPresentation
public static synchronized Presentation getPresentation(URL url)
- Get a presentation from a url.
getPresentation
public static Presentation getPresentation(String file)
- Get a presentation from a file
paramString
public void paramString(StringBuffer buf)
- For debugging only.
- Overrides:
- paramString in class GroupWidget
handleEvent
public boolean handleEvent(Event evt)
- Handle an event.
- Overrides:
- handleEvent in class Widget
All Packages Class Hierarchy This Package Previous Next Index