Package de.esoco.process.step
Klasse DialogFragment
java.lang.Object
org.obrel.core.RelatedObject
org.obrel.core.SerializableRelatedObject
de.esoco.process.ProcessElement
de.esoco.process.ProcessFragment
de.esoco.process.step.InteractionFragment
de.esoco.process.ViewFragment
de.esoco.process.step.DialogFragment
- Alle implementierten Schnittstellen:
de.esoco.lib.manage.Initializable
,Serializable
,org.obrel.core.Relatable
- Bekannte direkte Unterklassen:
MessageBoxFragment
A process interaction fragment that can be displayed in a dialog view.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
Enumeration of the available actions for dialog fragments.static interface
The event listener interface fordialog actions
. -
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final org.obrel.type.ListenerType
<DialogFragment.DialogActionListener, DialogFragment.DialogAction> A listener relation type for theDialogFragment.DialogActionListener
interface.Von Klasse geerbte Felder de.esoco.process.step.InteractionFragment
MESSAGE_BOX_ERROR_ICON, MESSAGE_BOX_INFO_ICON, MESSAGE_BOX_QUESTION_ICON, MESSAGE_BOX_WARNING_ICON
Von Klasse geerbte Felder de.esoco.process.ProcessElement
MSG_PARAM_NOT_SET
-
Konstruktorübersicht
KonstruktorBeschreibungDialogFragment
(String paramNameTemplate, InteractionFragment contentFragment, boolean modal, String question, Collection<DialogFragment.DialogAction> dialogActions) Creates a new instance for a certain content fragment. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Adds a listener for dialog actions that will be invoked after the fragment dialog has been closed.protected void
addExtraViewInteractionParams
(String paramBaseName) This method can be overridden by subclasses to add additional interaction parameters to this instance.static void
Global configuration method to disable the addition of a fill parameter to the button panel.void
Finishes this dialog and hides it.void
handleInteraction
(org.obrel.core.RelationType<?> interactionParam) Must be implemented by subclasses to handle interactions for this fragment.void
init()
Must be implemented to initialize the interaction parameters of this fragment.validateFragmentParameters
(boolean onInteraction) Overridden to only validate on interactions.Von Klasse geerbte Methoden de.esoco.process.ViewFragment
getInputParameters, getInteractionParameters, getResourceBaseName, getViewContentParam, getViewType, hide, initComplete, show
Von Klasse geerbte Methoden de.esoco.process.step.InteractionFragment
abort, abortFragment, addDisplayParameters, addInputParameters, addInputParameters, addPanelParameters, addParameterUpdateListener, addSubFragment, addSubFragment, addSubFragment, addSubFragment, addViewFragment, afterInteraction, applyAllCoupledParameters, attach, button, buttons, buttons, canRollback, chart, checkBox, checkBox, checkBoxes, cleanup, clearInteractionParameters, clearSelection, comboBox, dateParam, deleteRelation, display, dropDown, dropDown, enableEdit, entityParam, entityParam, enumParam, executeCleanupActions, finish, finishFragment, flagParam, fragmentParam, get, getFragmentParameter, getParameterInteractionHandler, getParameterValidations, getParent, getProcess, getProcessStep, getRelation, getRelations, getRoot, getTemporaryParameterId, getValueDatatype, hasInteraction, icon, iconButtons, iconButtons, image, imageButtons, initProcessStep, initQueryParameter, input, input, input, inputAttr, inputAttr, inputDate, inputTags, inputText, inputTextLines, insertInputParameters, insertInputParameters, intParam, isAttached, isInitialized, label, label, layout, listParam, lockEntityForProcess, lockEntityForStep, markFragmentInputParams, markInputParams, markParameterHierarchyAsModified, notifyParameterUpdateListeners, panel, panel, panel, panel, panel, panel, param, param, param, paramLike, prepareInteraction, prepareUpload, prepareUpload, radioButtons, reloadEntity, removeInteractionParameters, removeSubFragment, removeViewFragment, rollback, set, setContinueOnInteraction, setParam, setParameterInteractionHandler, setParameterValuesFromEntity, setParameterValuesFromEntity, setParent, setup, showConfirmationMessage, showDialog, showDialog, showDialog, showErrorMessage, showInfoMessage, showMessageBox, showMessageBox, showModalDialog, showView, showWarningMessage, structureModified, textParam, title, updateAllCoupledParameters, updateEntityFromParameterValues, updateUserInterface, validateParameters, validationError
Von Klasse geerbte Methoden de.esoco.process.ProcessFragment
addCleanupAction, addLayoutFiller, addPanel, addPanel, addProcessStepMessage, addSelectionDependency, addSelectionDependency, addStackPanel, addTabPanel, annotateForEntityQuery, annotateForEntityQuery, annotateParameter, applyDerivedParameter, applyDerivedParameters, applyExtraAttribute, changeDate, checkParameter, clearUIFlag, clearUIFlag, collectDerivedParameter, collectDerivedParameters, deleteParameters, disableElements, disableElements, disableElements, disableMultiSelectionElements, displayHistoryValue, enableAllElements, getAbsoluteFilePath, getAllowedElements, getAllowedValues, getCurrentQuery, getDerivedParameterValue, getFragmentId, getInputMode, getInteractiveInputParameter, getNamedTmpListType, getNamedTmpParameterType, getParameter, getParameterAnnotation, getParameterRelation, getProcessUser, getSelectionIndex, getSubFragment, getSubFragments, getTemporaryListType, getTemporaryListType, getTemporaryParameterName, getTemporaryParameterPackage, getTemporaryParameterType, getTemporaryParameterType, getTemporaryParameterType, getTemporarySetType, getUIProperties, getUIProperties, getUIProperty, getUserSetting, getUserSettings, hasFlagParameter, hasParameter, hasUIFlag, hasUserSetting, initChartParameter, initCountChartParameter, initProgressParameter, isInteractiveInput, isPanelParameter, lockEntity, markParameterAsModified, performParameterValidations, prepareDateInput, prepareDownload, prepareDownload, removeAllSubFragments, removeAllUIProperties, removeAllUIProperties, removeCleanupAction, removePanel, removeParameterAnnotation, removeSubFragment, removeTemporaryParameterType, removeUIProperties, setAllowedElements, setAllowedValues, setAllowedValues, setDatePeriod, setEnabled, setEnabled, setHtmlSize, setImmediateAction, setImmediateAction, setImmediateAction, setInteractive, setInteractive, setInteractive, setInteractive, setInteractive, setLayout, setParameter, setParameter, setParameterBounds, setProcessStepInfo, setProcessStepMessage, setProgressIndicator, setSelectionDependency, setSelectionDependency, setUIFlag, setUIFlag, setUIProperty, setUIProperty, setUIProperty, setUIProperty, setVisible, setVisible, spawnProcess, storeEntity, throwMissingParameterException, unlockEntity
Von Klasse geerbte Methoden de.esoco.process.ProcessElement
addDisplayParameters, continueOnInteraction, hasInteractionParameter, markInputParams, params, removeAllParameterValidations, removeInteractionParameters, removeParameterValidations, removeParameterValidations, setMandatory, setParameterNotEmptyValidations, setParameterNotEmptyValidations, setParameterNotNullValidations, setParameterNotNullValidations, setParameterValidation, setParameterValidation, staticParams
Von Klasse geerbte Methoden org.obrel.core.RelatedObject
notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, toString, transform, writeRelations
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.obrel.core.Relatable
deleteRelation, deleteRelations, getAll, getOption, getRelationCount, getRelations, hasFlag, hasRelation, hasRelations, init, set, set, set, setOption, streamRelations
-
Felddetails
-
DIALOG_ACTION_LISTENERS
public static final org.obrel.type.ListenerType<DialogFragment.DialogActionListener,DialogFragment.DialogAction> DIALOG_ACTION_LISTENERSA listener relation type for theDialogFragment.DialogActionListener
interface.
-
-
Konstruktordetails
-
DialogFragment
public DialogFragment(String paramNameTemplate, InteractionFragment contentFragment, boolean modal, String question, Collection<DialogFragment.DialogAction> dialogActions) Creates a new instance for a certain content fragment. If the given fragment implementsDialogFragment.DialogActionListener
it will be registered as an action listener of this instance.- Parameter:
paramNameTemplate
- The string format pattern for the generation of the view fragment parameter names. If NULL a template will be generated from the class name of the content fragmentcontentFragment
- The fragment that contains the dialog contentmodal
- viewStyle How the view should be displayedquestion
- A string (typically a question) that will be displayed next to the dialog action buttons.dialogActions
- The actions to be displayed as the dialog buttons
-
-
Methodendetails
-
disableButtonFillParameter
public static void disableButtonFillParameter()Global configuration method to disable the addition of a fill parameter to the button panel.TODO This is just a workaround until the dialog fragment has been adapted to layout-bayed UI (instead of table-based).
-
addDialogActionListener
Adds a listener for dialog actions that will be invoked after the fragment dialog has been closed.- Parameter:
listener
- The listener to add
-
finishDialog
Finishes this dialog and hides it.- Parameter:
action
- The action to finish the dialog with- Löst aus:
Exception
- If finishing a sub-fragment fails
-
handleInteraction
Must be implemented by subclasses to handle interactions for this fragment. The default implementation does nothing.- Setzt außer Kraft:
handleInteraction
in KlasseViewFragment
- Parameter:
interactionParam
- The interaction parameter- Löst aus:
Exception
- Any kind of exception may be thrown in case of errors
-
init
Must be implemented to initialize the interaction parameters of this fragment.- Angegeben von:
init
in Schnittstellede.esoco.lib.manage.Initializable
- Setzt außer Kraft:
init
in KlasseViewFragment
- Löst aus:
Exception
- Any kind of exception may be thrown in case of errors
-
validateFragmentParameters
Overridden to only validate on interactions. The final validation of a dialog will be invoked by thefinishDialog(DialogAction)
method.- Setzt außer Kraft:
validateFragmentParameters
in KlasseInteractionFragment
- Parameter:
onInteraction
- TRUE if the validation occurs during an ongoing interaction, FALSE after the final interaction before the fragment is finished- Gibt zurück:
- A mapping from invalid parameters to validation error message (empty for none)
- Siehe auch:
-
addExtraViewInteractionParams
This method can be overridden by subclasses to add additional interaction parameters to this instance. The default implementation does nothing.- Setzt außer Kraft:
addExtraViewInteractionParams
in KlasseViewFragment
- Parameter:
paramBaseName
- The base name for temporary parameters of this instance
-