org.universAAL.ui.handler.gui.swing.model.FormControl
Class MediaObjectModel
java.lang.Object
org.universAAL.ui.handler.gui.swing.model.Model
org.universAAL.ui.handler.gui.swing.model.FormControl.OutputModel
org.universAAL.ui.handler.gui.swing.model.FormControl.MediaObjectModel
- All Implemented Interfaces:
- EventListener, HyperlinkListener
- Direct Known Subclasses:
- MediaObjectLAF, MediaObjectLAF, MediaObjectLAF
public class MediaObjectModel
- extends OutputModel
- implements HyperlinkListener
- Author:
- amedrano
- See Also:
MediaObject
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.OutputModel |
isValid |
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.Model |
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MediaObjectModel
public MediaObjectModel(MediaObject control,
Renderer render)
- Constructor.
- Parameters:
control
- the MediaObject
which to model.
getNewComponent
public JComponent getNewComponent()
- The
JComponent
returned is a JLabel
. in future versions
it may accommodate other components for videos, audio and other media
files.
- Specified by:
getNewComponent
in class Model
- Returns:
- a
JComponent
initialised with the model's information,
update
public void update()
- Updating the
JLabel
- Overrides:
update
in class Model
hyperlinkUpdate
public void hyperlinkUpdate(HyperlinkEvent event)
-
- Specified by:
hyperlinkUpdate
in interface HyperlinkListener
Copyright © 2014 universAAL Consortium. All Rights Reserved.