org.universAAL.ui.handler.gui.swing.model.FormControl
Class RepeatModelGrid
java.lang.Object
org.universAAL.ui.handler.gui.swing.model.Model
org.universAAL.ui.handler.gui.swing.model.FormControl.GroupModel
org.universAAL.ui.handler.gui.swing.model.FormControl.RepeatModel
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
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 |
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 |
RepeatModelGrid
public RepeatModelGrid(Repeat control,
Renderer render)
- Parameters:
control
- render
-
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.