org.universAAL.ui.gui.swing.bluesteelLAF
Class MediaObjectLAF

Package class diagram package MediaObjectLAF
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
              extended by org.universAAL.ui.gui.swing.bluesteelLAF.MediaObjectLAF
All Implemented Interfaces:
EventListener, HyperlinkListener

public class MediaObjectLAF
extends MediaObjectModel

Author:
pabril, amedrano

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
MediaObjectLAF(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 update()
          Updating the JLabel
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.MediaObjectModel
hyperlinkUpdate
 
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

MediaObjectLAF

public MediaObjectLAF(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.

Overrides:
getNewComponent in class MediaObjectModel
Returns:
a JComponent initialised with the model's information,

update

public void update()
Updating the JLabel

Overrides:
update in class MediaObjectModel


Copyright © 2014 universAAL Consortium. All Rights Reserved.