|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.ui.handler.gui.swing.model.Model
org.universAAL.ui.handler.gui.swing.model.FormControl.GroupModel
public abstract class GroupModel
Group
Field Summary | |
---|---|
protected List |
children
List of Model s for children of this group. |
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.Model |
---|
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine |
Constructor Summary | |
---|---|
GroupModel(Group control,
Renderer render)
Constructor. |
Method Summary | |
---|---|
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 |
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). |
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 |
---|
protected List children
Model
s for children of this group.
Constructor Detail |
---|
public GroupModel(Group control, Renderer render)
control
- the Group
which to model.Method Detail |
---|
public abstract JComponent getNewComponent()
JComponent
returned may be either
JPanel
JTabbedPane
getNewComponent
in class Model
public boolean isValid()
JComponent
information provided by the user is valid
according to the FormControl
's definition.
isValid
in class Model
public void update()
update
in class Model
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 JComponent
JComponent
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 JComponent
c
- the Container
to which to add the JComponent
public Model findChildModeFor(String formControlURI)
FormControl
with the given URI.
formControlURI
-
public boolean containsOnlySubGroups()
fc
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |