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

Package class diagram package RepeatModel
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.model.FormControl.RepeatModel
Direct Known Subclasses:
RepeatLAF, RepeatLAF, RepeatLAF, RepeatModelGrid, RepeatModelTable

public abstract class RepeatModel
extends GroupModel

Author:
amedrano
See Also:
Repeat

Field Summary
protected  RepeatModelGrid grid
          Place holder for grids
protected  RepeatModelTable table
          Place holder for tables
 
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
RepeatModel(Repeat control, Renderer render)
          Constructor
 
Method Summary
 boolean containsSubmits()
          Tells whether this repeat has or not Submits (or SubdialogTriggers).
protected  Class getChildrenType()
          get the java Class of the children.
protected  boolean isATable()
          check if the Repeat FormControl models a table.
 void update()
          Overriding update from GroupModel
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.GroupModel
addComponentTo, containsOnlySubGroups, findChildModeFor, getComponentFrom, getNewComponent, 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
 

Field Detail

table

protected RepeatModelTable table
Place holder for tables


grid

protected RepeatModelGrid grid
Place holder for grids

Constructor Detail

RepeatModel

public RepeatModel(Repeat control,
                   Renderer render)
Constructor

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

getChildrenType

protected Class getChildrenType()
get the java Class of the children.

Returns:
Class of the 1st child.

isATable

protected boolean isATable()
check if the Repeat FormControl models a table.

Returns:
true is it does model a table. false otherwise.

update

public void update()
Overriding update from GroupModel

Overrides:
update in class GroupModel

containsSubmits

public boolean containsSubmits()
Tells whether this repeat has or not Submits (or SubdialogTriggers).

Returns:
true iff there is a Submit (or subclass of) as child.


Copyright © 2014 universAAL Consortium. All Rights Reserved.