Package de.esoco.process.step
Klasse SelectValues<T extends Comparable<T>>
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.step.SelectValues<T>
- Alle implementierten Schnittstellen:
de.esoco.lib.manage.Initializable
,Serializable
,org.obrel.core.Relatable
A fragment that allows to select a set of values of a certain comparable
type.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic interface
An event listener interface that can receive notifications on selection changes in an instance ofSelectValues
. -
Feldübersicht
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
KonstruktorBeschreibungSelectValues
(String identifier, Class<T> valueDatatype, Collection<T> availableValues, boolean sortValues) Creates a new instance.SelectValues
(String identifier, Class<T> valueDatatype, Collection<T> availableValues, Collection<T> preferredValues) Creates a new instance that sorts the list values and inserts a list of preferred values at the beginning of each list.The values will be sorted according to their natural order (i.e. theirComparable
implementation). -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
enableEdit
(boolean enable) Overridden to show only the selected values if editing is disabled.List
<org.obrel.core.RelationType<?>> Returns the collection of input parameters of this fragment.List
<org.obrel.core.RelationType<?>> Returns the list of interaction parameters for this fragment.Returns the values that have been selected in this fragment.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.void
initFragmentParameter
(org.obrel.core.RelationType<List<org.obrel.core.RelationType<?>>> param) Initializes a parameter for this fragment.protected void
initProcessStep
(Interaction processStep) Will be invoked after the process step of this fragment has been set.void
setAvailableValues
(Collection<T> values) Sets the values that are available for selection.void
setSelectedValues
(Collection<T> values) Sets the currently selected values.void
Sets a listener that will be notified if the selection in this instance changes.void
setVisibleRows
(int rows) Sets the number of rows that are visible in the value lists.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, 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, initComplete, 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, validateFragmentParameters, 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
-
Konstruktordetails
-
SelectValues
public SelectValues(String identifier, Class<T> valueDatatype, Collection<T> availableValues, boolean sortValues) Creates a new instance. The Identifier should be a singular description in camel case and unique in the context of the current process step. In the case of enum values it is recommended to use the simple name of the enum class as the identifier. If the sort parameter is TRUE the list values will be sorted on the client side after resource expansion if their datatype implements theComparable
interface.- Parameter:
identifier
- A process step-unique identifier of this instancevalueDatatype
- The datatype of the valuesavailableValues
- The available values to select fromsortValues
- TRUE to sort the list values
-
SelectValues
public SelectValues(String identifier, Class<T> valueDatatype, Collection<T> availableValues, Collection<T> preferredValues) Creates a new instance that sorts the list values and inserts a list of preferred values at the beginning of each list.The values will be sorted according to their natural order (i.e. theirComparable
implementation). They will also be sorted on the server side before resource expansion, therefore using this variant only makes sense with values that are not resources.- Parameter:
identifier
- A process step-unique identifier of this instancevalueDatatype
- The datatype of the valuesavailableValues
- The available values to select frompreferredValues
- An optional list of preferred values that should be listed first (empty for none)
-
-
Methodendetails
-
enableEdit
public void enableEdit(boolean enable) Overridden to show only the selected values if editing is disabled.- Setzt außer Kraft:
enableEdit
in KlasseInteractionFragment
- Parameter:
enable
- TRUE to enable editing, FALSE to disable- Siehe auch:
-
getInputParameters
Returns the collection of input parameters of this fragment. These must be a subset ofInteractionFragment.getInteractionParameters()
. The default implementation returns a mutable collection that can been modified directly by a subclass. Or it can be overridden by subclasses to return their own input parameter collection.- Setzt außer Kraft:
getInputParameters
in KlasseInteractionFragment
- Gibt zurück:
- The list of this fragment's input parameters
-
getInteractionParameters
Returns the list of interaction parameters for this fragment. The default implementation returns a mutable list that can been modified directly by a subclass. Or it can be overridden by subclasses to return their own interaction parameter list.- Setzt außer Kraft:
getInteractionParameters
in KlasseInteractionFragment
- Gibt zurück:
- The list of this fragment's interaction parameters
-
getSelectedValues
Returns the values that have been selected in this fragment.- Gibt zurück:
- A collection containing the selected values
-
handleInteraction
Must be implemented by subclasses to handle interactions for this fragment. The default implementation does nothing.- Setzt außer Kraft:
handleInteraction
in KlasseInteractionFragment
- 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
- Angegeben von:
init
in KlasseInteractionFragment
- Löst aus:
Exception
- Any kind of exception may be thrown in case of errors
-
initFragmentParameter
public void initFragmentParameter(org.obrel.core.RelationType<List<org.obrel.core.RelationType<?>>> param) Initializes a parameter for this fragment. This sets a generic style name so that all fragments of this type can be styled similarly. This method should typically be invoked from theinit()
method of the parent fragment.- Parameter:
param
- The parameter that will hold this fragment
-
setAvailableValues
Sets the values that are available for selection.- Parameter:
values
- The selectable values (can be NULL for none)
-
setSelectedValues
Sets the currently selected values.- Parameter:
values
- The selected values (may be NULL for none)
-
setSelectionListener
Sets a listener that will be notified if the selection in this instance changes.- Parameter:
listener
- The listener
-
setVisibleRows
public void setVisibleRows(int rows) Sets the number of rows that are visible in the value lists.- Parameter:
rows
- The number of visible rows
-
initProcessStep
Beschreibung aus Klasse kopiert:InteractionFragment
Will be invoked after the process step of this fragment has been set. Can be implemented by subclasses to initialize process step-specific parameters. The default implementation does nothing.- Setzt außer Kraft:
initProcessStep
in KlasseInteractionFragment
- Parameter:
processStep
- The process step of this fragment- Siehe auch:
-