public class Submit extends FormControl
Modifier and Type | Field and Description |
---|---|
static int |
CONFIRMATION_TYPE_OK_CANCEL
Critical submits may be associated with a confirmation message to be
shown to users in order to make sure that the button was not pressed by
mistake.
|
static int |
CONFIRMATION_TYPE_YES_NO
Critical submits may be associated with a confirmation message to be
shown to users in order to make sure that the button was not pressed by
mistake.
|
protected List |
mandatoryList
The list of Manadatory
Input Controls. |
static String |
MY_URI |
static String |
PROP_CONFIRMATION_MESSAGE
Critical submits may be associated with a confirmation message to be
shown to users in order to make sure that the button was not pressed by
mistake.
|
static String |
PROP_CONFIRMATION_TYPE
Critical submits may be associated with a confirmation message to be
shown to users in order to make sure that the button was not pressed by
mistake.
|
static String |
PROP_MANDATORY_INPUT
For maintaining a list of mandatory input controls associated with each
submit control that have to be filled by the user before submitting a
form via that submit control.
|
static String |
PROP_SUBMISSION_ID
The unique ID that helps to identify with pressing which button a dialog
was finished.
|
PROP_CONTROL_LABEL, PROP_HELP, PROP_HINT, PROP_PARENT_CONTROL, PROP_REFERENCED_PPATH, PROP_VALUE_RESTRICTION
PROP_APPEARANCE
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, NAMESPACE_PREFIX, ns_delim_index, PROP_INVOLVED_HUMAN_USER, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, SERVICE_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uri, VOCABULARY_NAMESPACE
Modifier | Constructor and Description |
---|---|
|
Submit()
For exclusive use by de-serializers.
|
|
Submit(Group parent,
Label label,
String id)
For exclusive use by applications.
|
protected |
Submit(String typeURI,
Group parent,
Label label,
String id) |
Modifier and Type | Method and Description |
---|---|
void |
addMandatoryInput(Input in)
For use by applications.
|
String |
getConfirmationMessage() |
int |
getConfirmationType() |
String |
getDialogID()
For use by UI handlers.
|
String |
getID() |
Input[] |
getMandatoryInputControls() |
int |
getMaxLength()
The length of a button is the length of its label.
|
Input |
getMissingInputControl()
UI handlers must call this method as soon as the user decides to submit
the form using this submit in oder to make sure if all necessary input
has been collected.
|
Set |
getMissingInputControls()
Same as
getMissingInputControl() but returns ALL missing
controls instead of the first one. |
FormControl[] |
getRelatedControls()
Supports UI handlers that process a form by breaking it into several
"subdialog"s, one for each alternative submission, by returning all of
the UI controls that are somehow related to this submit.
|
boolean |
hasMandatoryInput(Input fc)
Checks if the given input control belongs to the list of mandatory inputs
of this submit.
|
void |
setConfirmationOkCancel(String msg) |
void |
setConfirmationYesNo(String msg) |
boolean |
setProperty(String propURI,
Object value)
For use by de-serializers.
|
getAncestorRepeat, getFormObject, getHelpString, getHintString, getLabel, getParentGroup, getParentRepeat, getReferencedPPath, getRestrictions, getSuperGroups, getTypeURI, getValue, hasFocus, hasValue, isOfBooleanType, isOfPrimitiveType, isRepeatable, setHelpString, setHintString, toString
addAppearanceRecommendation, getAppearanceRecommendations
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, isWellFormed, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toStringRecursive, toStringRecursive, unliteral
public static final String MY_URI
public static final int CONFIRMATION_TYPE_OK_CANCEL
public static final int CONFIRMATION_TYPE_YES_NO
public static final String PROP_CONFIRMATION_MESSAGE
public static final String PROP_CONFIRMATION_TYPE
public static final String PROP_MANDATORY_INPUT
public static final String PROP_SUBMISSION_ID
public Submit()
public Submit(Group parent, Label label, String id)
parent
- The mandatory parent group as the direct container of this
input field. See FormControl.PROP_PARENT_CONTROL
.label
- The optional Label
to be associated with this input
field. See FormControl.PROP_CONTROL_LABEL
.id
- The mandatory submission ID. See PROP_SUBMISSION_ID
.public void addMandatoryInput(Input in)
PROP_MANDATORY_INPUT
public String getConfirmationMessage()
PROP_CONFIRMATION_MESSAGE
public int getConfirmationType()
PROP_CONFIRMATION_TYPE
public String getDialogID()
public String getID()
PROP_SUBMISSION_ID
public int getMaxLength()
getMaxLength
in class FormControl
public Input[] getMandatoryInputControls()
PROP_MANDATORY_INPUT
public Input getMissingInputControl()
public Set getMissingInputControls()
getMissingInputControl()
but returns ALL missing
controls instead of the first one.public FormControl[] getRelatedControls()
Input
, Output
, Repeat
or
SubdialogTrigger
.public boolean hasMandatoryInput(Input fc)
public void setConfirmationOkCancel(String msg)
public void setConfirmationYesNo(String msg)
public boolean setProperty(String propURI, Object value)
setProperty
in class FormControl
Resource.setProperty(String, Object)
Copyright © 2018 universAAL Consortium. All rights reserved.