org.universAAL.ui.handler.gui.swing.model
Class LabelModel

Package class diagram package LabelModel
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.LabelModel
Direct Known Subclasses:
LabelLAF, LabelLAF, LabelLAF

public class LabelModel
extends Object

A model for Labels.

Author:
amedrano
See Also:
Label

Constructor Summary
LabelModel(Label l, Renderer renderer)
          Model constructor.
 
Method Summary
 JLabel getComponent()
          get the JLabel represented by label
 Renderer getRenderer()
          get the Renderer associated to this LabelModel
 boolean hasInfo()
          test whether the label has any information at all.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelModel

public LabelModel(Label l,
                  Renderer renderer)
Model constructor.

Parameters:
l - the Label to model.
renderer - TODO
Method Detail

getComponent

public JLabel getComponent()
get the JLabel represented by label

Returns:
JLabel with text and/or icon.

hasInfo

public boolean hasInfo()
test whether the label has any information at all.

Returns:
true if there is text and/or an icon false if there is no text and no icon

getRenderer

public Renderer getRenderer()
get the Renderer associated to this LabelModel

Returns:
the Renderer


Copyright © 2014 universAAL Consortium. All Rights Reserved.