org.universAAL.ui.handler.gui.swing.model.FormControl
Class MediaObjectModel

Package class diagram package MediaObjectModel
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.Model
      extended by org.universAAL.ui.handler.gui.swing.model.FormControl.OutputModel
          extended by 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

Field Summary
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.Model
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
 
Constructor Summary
MediaObjectModel(MediaObject control, Renderer render)
          Constructor.
 
Method Summary
 JComponent getNewComponent()
          The JComponent returned is a JLabel. in future versions it may accommodate other components for videos, audio and other media files.
 void hyperlinkUpdate(HyperlinkEvent event)
          
 void update()
          Updating the JLabel
 
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
 

Constructor Detail

MediaObjectModel

public MediaObjectModel(MediaObject control,
                        Renderer render)
Constructor.

Parameters:
control - the MediaObject which to model.
Method Detail

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.