
public abstract class FormControlModel extends Model
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
fcProps |
| Constructor and Description |
|---|
FormControlModel(FormControl fe,
HTMLUserGenerator render) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
correspondsTo(String formControlURI)
Checks if this model corresponds to the form control with the given URI.
|
StringBuffer |
generateHTML()
Generate the HTML code for the concrete
FormElement, Including
all of it's children (if applies). |
abstract StringBuffer |
generateHTMLWithoutLabel() |
LabelModel |
getLabelModel()
Models (if needed) and returns the
LabelModel for the
FormControl. |
protected String |
getTitle()
Generates the title with help and hint.
|
boolean |
isInDialog()
test whether this
FormControl is in a Dialog type dialog. |
boolean |
isInIOGroup()
test whether this
FormControl is in a IO root group. |
boolean |
isInMainMenu()
test whether this
FormControl is in a Main Menu type dialog. |
boolean |
isInMessage()
test whether this
FormControl is in a Message type dialog. |
boolean |
isInStandardGroup()
test whether this
FormControl is in a standard buttons root
group. |
boolean |
isInSubDialog()
test whether this
FormControl is in a Subdialog type dialog. |
boolean |
isInSubmitGroup()
test whether this
FormControl is in a submit buttons root group. |
protected boolean |
isOfType(Class c)
Checks if the value will be accepted as class c.
|
addSRCProp, getCachedURL, getFormElement, getRenderer, singleTag, tag, tagprotected Properties fcProps
public FormControlModel(FormControl fe, HTMLUserGenerator render)
fe - render - protected String getTitle()
public abstract StringBuffer generateHTMLWithoutLabel()
public StringBuffer generateHTML()
ModelFormElement, Including
all of it's children (if applies).generateHTML in class ModelStringBuffer with all the HTML code for the Element.public boolean isInMessage()
FormControl is in a Message type dialog.true if the FormControl is in a Message
Formpublic boolean isInMainMenu()
FormControl is in a Main Menu type dialog.true if the FormControl is in a Main Menu
Formpublic boolean isInDialog()
FormControl is in a Dialog type dialog.true if the FormControl is in a Dialog
Formpublic boolean isInSubDialog()
FormControl is in a Subdialog type dialog.true if the FormControl is in a Subdialog
Formpublic boolean isInStandardGroup()
FormControl is in a standard buttons root
group.true if the FormControl is within the
standard buttons grouppublic boolean isInIOGroup()
FormControl is in a IO root group.true if the FormControl is within the IO
grouppublic boolean isInSubmitGroup()
FormControl is in a submit buttons root group.true if the FormControl is within the
Submits grouppublic boolean correspondsTo(String formControlURI)
formControlURI - the FormControl's URI to check with.FormControl's URI for this model is equal to
formControlURIpublic LabelModel getLabelModel()
LabelModel for the
FormControl. This method May be overridden to personalize Labels
for certain FormControls.protected boolean isOfType(Class c)
c - Copyright © 2018 universAAL Consortium. All rights reserved.