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

Package class diagram package RepeatModelGrid
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
              extended by org.universAAL.ui.handler.gui.swing.model.FormControl.RepeatModelGrid
Direct Known Subclasses:
RepeatModelGridLAF, RepeatModelGridLAF

public class RepeatModelGrid
extends RepeatModel

An alternative to drawing Repeats, Specially indicated for editable repeats, since forms whould be modeled and rendered with in a JPanel fitted with a GridLayout.

Author:
amedrano

Nested Class Summary
 class RepeatModelGrid.AddTableButton
          Class representing the Add button for Tables.
 class RepeatModelGrid.DeleteTableButton
          Class representing the Delete button for Tables.
 
Field Summary
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.RepeatModel
table
 
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
RepeatModelGrid(Repeat control, Renderer render)
           
 
Method Summary
protected  JPanel getButtonPanel()
           
protected  GridLayout getLayout()
          See layout.
 JComponent getNewComponent()
          
 void update()
          
protected  void updateContents()
           
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.RepeatModel
containsSubmits, getChildrenType, isATable
 
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

RepeatModelGrid

public RepeatModelGrid(Repeat control,
                       Renderer render)
Parameters:
control -
render -
Method Detail

getNewComponent

public JComponent getNewComponent()

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

update

public void update()

Overrides:
update in class RepeatModel

updateContents

protected void updateContents()

getLayout

protected GridLayout getLayout()
See layout.

Returns:
The layout used for the JPanel containing the repeat sub components.

getButtonPanel

protected JPanel getButtonPanel()


Copyright © 2014 universAAL Consortium. All Rights Reserved.