org.universAAL.ui.handler.gui.swing.defaultLookAndFeel
Class GroupLAF

Package class diagram package GroupLAF
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.Model
      extended by org.universAAL.ui.handler.gui.swing.model.FormControl.GroupModel
          extended by org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.GroupLAF

public class GroupLAF
extends GroupModel

Author:
pabril

Field Summary
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.GroupModel
children
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.Model
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
 
Constructor Summary
GroupLAF(Group control, Renderer render)
          Constructor.
 
Method Summary
 JComponent getNewComponent()
          The JComponent returned may be either a JPanel a JTabbedPane depending on the complexity (and other factors) of the group
 void update()
          Adds all the needed information to the rendered component (in Model view).
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.GroupModel
addComponentTo, containsOnlySubGroups, findChildModeFor, getComponentFrom, isTheIOGroup, isTheMainGroup, isTheSubmitGroup, 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

GroupLAF

public GroupLAF(Group control,
                Renderer render)
Constructor.

Parameters:
control - the Group which to model
Method Detail

update

public void update()
Adds all the needed information to the rendered component (in Model view). In LAF view, it add/updates all LAF components.

Overrides:
update in class GroupModel

getNewComponent

public JComponent getNewComponent()
Description copied from class: GroupModel
The JComponent returned may be either depending on the complexity (and other factors) of the group

Specified by:
getNewComponent in class GroupModel
Returns:
always a simple Jpanel() (LAFs should decide which to use).


Copyright © 2014 universAAL Consortium. All Rights Reserved.