public class MediaObjectModel extends OutputModel implements HyperlinkListener
MediaObject
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
Constructor and Description |
---|
MediaObjectModel(MediaObject control,
Renderer render)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
JComponent |
getNewComponent()
The
JComponent returned is a JLabel . |
void |
hyperlinkUpdate(HyperlinkEvent event) |
void |
update()
Updating the
JLabel |
isValid
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine
public MediaObjectModel(MediaObject control, Renderer render)
control
- the MediaObject
which to model.public JComponent getNewComponent()
JComponent
returned is a JLabel
. in future versions
it may accommodate other components for videos, audio and other media
files.getNewComponent
in class Model
JComponent
initialised with the model's information,public void hyperlinkUpdate(HyperlinkEvent event)
hyperlinkUpdate
in interface HyperlinkListener
Copyright © 2018 universAAL Consortium. All rights reserved.