
public abstract class GroupModel extends Model
| Modifier and Type | Field and Description |
|---|---|
protected List |
children
List of
Models for children of this group. |
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine| Constructor and Description |
|---|
GroupModel(Group control,
Renderer render)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addComponentTo(FormControl fc,
Container c)
Access to the Model mapper.
|
boolean |
containsOnlySubGroups()
Tell whether the form control contain only groups.
|
Model |
findChildModeFor(String formControlURI)
Find the Model for the
FormControl with the given URI. |
protected JComponent |
getComponentFrom(FormControl fc)
Access to the Model mapper.
|
abstract JComponent |
getNewComponent()
The
JComponent returned may be either
a JPanel
a JTabbedPane
depending on the complexity (and other factors) of the group |
protected Component |
getNewLineCompoent()
adds a component that will force a new line
|
boolean |
isTheIOGroup()
check whether it is the io root group.
|
boolean |
isTheMainGroup()
check whether it is the system root group.
|
boolean |
isTheSubmitGroup()
check whether it is the submit root group.
|
boolean |
isValid()
Test if the
JComponent information provided by the user is valid
according to the FormControl's definition. |
void |
update()
Adds all the needed information to the rendered component (in Model
view).
|
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLinepublic abstract JComponent getNewComponent()
JComponent returned may be either
JPanel
JTabbedPane
getNewComponent in class Modelpublic boolean isValid()
JComponent information provided by the user is valid
according to the FormControl's definition.public void update()
public boolean isTheSubmitGroup()
public boolean isTheMainGroup()
public boolean isTheIOGroup()
protected JComponent getComponentFrom(FormControl fc)
JComponent for a
given FormControl which is a child of the current group. Adds the
located Model to the list of children.fc - the child from which to obtain it's model and
JComponentJComponent build by the Model of the childprotected void addComponentTo(FormControl fc, Container c)
JComponent for a
given FormControl which is a child of the current group, and add
it to a Container. Adds the located Model to the list of
children.fc - the child from which to obtain it's model and
JComponentc - the Container to which to add the JComponentprotected Component getNewLineCompoent()
public Model findChildModeFor(String formControlURI)
FormControl with the given URI.formControlURI - public boolean containsOnlySubGroups()
fc - Copyright © 2018 universAAL Consortium. All rights reserved.