
public class SubdialogTrigger extends Submit
Submit that does not finish the current dialog but
starts a subdialog, normally used for viewing or editing complex data that
was represented in the main dialog in a summarized way or in way not suitable
for editing.| Modifier and Type | Field and Description |
|---|---|
static String |
MY_URI |
static String |
PROP_REPEATABLE_ID_PREFIX
If a SubdialogTrigger is used in a column of a
Repeat control,
each occurrence of it in each row of the table represented by the
Repeat control must have another
Submit.PROP_SUBMISSION_ID in order to be able to distinguish
between them. |
static String |
VAR_REPEATABLE_ID |
CONFIRMATION_TYPE_OK_CANCEL, CONFIRMATION_TYPE_YES_NO, mandatoryList, PROP_CONFIRMATION_MESSAGE, PROP_CONFIRMATION_TYPE, PROP_MANDATORY_INPUT, PROP_SUBMISSION_IDPROP_CONTROL_LABEL, PROP_HELP, PROP_HINT, PROP_PARENT_CONTROL, PROP_REFERENCED_PPATH, PROP_VALUE_RESTRICTIONPROP_APPEARANCEANON_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| Constructor and Description |
|---|
SubdialogTrigger()
For exclusive use by de-serializers.
|
SubdialogTrigger(Group parent,
Label label,
String id)
For exclusive use by applications.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getID()
Overrides
Submit.getID(). |
String |
getRepeatableIDPrefix() |
boolean |
needsSelection()
Checks if the submission ID of this SubdialogTrigger equals to
VAR_REPEATABLE_ID, which means that there must be an ancestor
Repeat control with a valid selection index in order to be able
to construct the submission ID. |
boolean |
setProperty(String propURI,
Object value)
For exclusive use by de-serializers.
|
void |
setRepeatableIDPrefix(String prefix) |
addMandatoryInput, getConfirmationMessage, getConfirmationType, getDialogID, getMandatoryInputControls, getMaxLength, getMissingInputControl, getMissingInputControls, getRelatedControls, hasMandatoryInput, setConfirmationOkCancel, setConfirmationYesNogetAncestorRepeat, getFormObject, getHelpString, getHintString, getLabel, getParentGroup, getParentRepeat, getReferencedPPath, getRestrictions, getSuperGroups, getTypeURI, getValue, hasFocus, hasValue, isOfBooleanType, isOfPrimitiveType, isRepeatable, setHelpString, setHintString, toStringaddAppearanceRecommendation, getAppearanceRecommendationsaddType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfPropertiesaddMultiLangProp, 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, unliteralpublic static final String MY_URI
public static final String PROP_REPEATABLE_ID_PREFIX
Repeat control,
each occurrence of it in each row of the table represented by the
Repeat control must have another
Submit.PROP_SUBMISSION_ID in order to be able to distinguish
between them. In such cases, applications must set the submission ID
equal to VAR_REPEATABLE_ID and specify a prefix as a string to
be stored under this property. Consequently, a repeatable
SubdialogTrigger that has VAR_REPEATABLE_ID as value associated
with Submit.PROP_SUBMISSION_ID will answer to the call of
getID() with a string constructed by appending the current
selection index obtained from the nearest ancestor Repeat to the
prefix stored here. The prefix is needed in order to be able to
distinguish between different instances of SubdialogTrigger that appear
in different Repeat controls or in different columns of the same
Repeat control.public static final String VAR_REPEATABLE_ID
PROP_REPEATABLE_ID_PREFIX,
Constant Field Valuespublic SubdialogTrigger()
public SubdialogTrigger(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
Submit.PROP_SUBMISSION_ID.public String getID()
Submit.getID().getID in class SubmitPROP_REPEATABLE_ID_PREFIXpublic String getRepeatableIDPrefix()
PROP_REPEATABLE_ID_PREFIXpublic boolean needsSelection()
VAR_REPEATABLE_ID, which means that there must be an ancestor
Repeat control with a valid selection index in order to be able
to construct the submission ID.PROP_REPEATABLE_ID_PREFIXpublic boolean setProperty(String propURI, Object value)
setProperty in class SubmitResource.setProperty(String, Object)public void setRepeatableIDPrefix(String prefix)
PROP_REPEATABLE_ID_PREFIXCopyright © 2018 universAAL Consortium. All rights reserved.