org.universAAL.ui.handler.gui.swing
Class ModelMapper

Package class diagram package ModelMapper
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.ModelMapper

public final class ModelMapper
extends Object

It will map org.universAAL.middleware.ui.rdf classes to a Model component. This class will be used by the created components to nest the rest of the form representation.

Author:
amedrano
See Also:
Model, FormModel, LabelModel

Constructor Summary
ModelMapper(Renderer renderer)
          The main Constructor.
 
Method Summary
 FormModel getModelFor(Form f)
          get FormModel for a given Form.
 Model getModelFor(FormControl fc)
          get Model for a given FormControl.
 LabelModel getModelFor(Label l)
          get LabelModel for a given Label.
 InitInterface initializeLAF()
          Initialize the selected L&F extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelMapper

public ModelMapper(Renderer renderer)
The main Constructor.

Parameters:
renderer - the Renderer to be associated with
Method Detail

getModelFor

public Model getModelFor(FormControl fc)
get Model for a given FormControl.

Parameters:
fc - the FormControl for which the model is required
Returns:
the found LAF extension for the component.

getModelFor

public FormModel getModelFor(Form f)
get FormModel for a given Form.

Parameters:
f - the Form for which the model is required
Returns:
the found LAF extension for the component.

getModelFor

public LabelModel getModelFor(Label l)
get LabelModel for a given Label.

Parameters:
l - the Label for which the model is required
Returns:
the found LAF extension for the component.

initializeLAF

public InitInterface initializeLAF()
Initialize the selected L&F extension. If could not be found, defaultLAF is used.

Returns:
TODO


Copyright © 2014 universAAL Consortium. All Rights Reserved.