public class EditText extends InteractionFragment
MESSAGE_BOX_ERROR_ICON, MESSAGE_BOX_INFO_ICON, MESSAGE_BOX_QUESTION_ICON, MESSAGE_BOX_WARNING_ICON
MSG_PARAM_NOT_SET
Constructor and Description |
---|
EditText(org.obrel.core.RelationType<java.lang.String> rValueParam,
de.esoco.lib.event.EditListener<java.lang.String> rEditListener,
boolean bAllowCreate,
boolean bAllowEdit)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
abort()
This method will be invoked if the current execution of this fragment is
aborted before it has finished. and can be overridden by subclasses to
perform data resets similar to the
InteractionFragment.rollback() method which will
be invoked if the execution of a finished fragment is to be reverted. |
<E extends java.lang.Enum<E>> |
addAction(org.obrel.core.RelationType<E> rActionParam,
de.esoco.lib.expression.Action<E> fHandler)
Adds an additional action that should be displayed in this fragment.
|
void |
allowEdit(boolean bAllow)
Activates or deactivates the possibility to edit the text.
|
java.util.List<org.obrel.core.RelationType<?>> |
getInputParameters()
Returns the collection of input parameters of this fragment.
|
java.util.List<org.obrel.core.RelationType<?>> |
getInteractionParameters()
Returns the list of interaction parameters for this fragment.
|
void |
handleInteraction(org.obrel.core.RelationType<?> rInteractionParam)
Must be implemented by subclasses to handle interactions for this
fragment.
|
void |
init()
Must be implemented to initialize the interaction parameters of this
fragment.
|
boolean |
isEditing()
Checks whether this instance is currently in edit mode.
|
void |
setEditInfo(java.lang.String sInfo)
Sets an info string that describes the currently displayed or edited
data.
|
void |
setup()
Creates the temporary interaction parameters of this instance.
|
void |
startEditing(boolean bNewValue)
Starts editing the text.
|
void |
stopEditing(de.esoco.lib.event.EditListener.EditAction eAction)
Starts editing the value.
|
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, initComplete, 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, showConfirmationMessage, showDialog, showDialog, showDialog, showErrorMessage, showInfoMessage, showMessageBox, showMessageBox, showModalDialog, showView, showWarningMessage, structureModified, textParam, title, updateAllCoupledParameters, updateEntityFromParameterValues, updateUserInterface, validateFragmentParameters, validateParameters, validationError
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
addDisplayParameters, continueOnInteraction, hasInteractionParameter, markInputParams, params, removeAllParameterValidations, removeInteractionParameters, removeParameterValidations, removeParameterValidations, setMandatory, setParameterNotEmptyValidations, setParameterNotEmptyValidations, setParameterNotNullValidations, setParameterNotNullValidations, setParameterValidation, setParameterValidation, staticParams
notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, toString, transform, writeRelations
public EditText(org.obrel.core.RelationType<java.lang.String> rValueParam, de.esoco.lib.event.EditListener<java.lang.String> rEditListener, boolean bAllowCreate, boolean bAllowEdit)
rValueParam
- The parameter that stores the edited valuerEditListener
- An optional listener for edit events or NULL for
nonebAllowCreate
- TRUE to add an action to create new values, FALSE
for edit onlybAllowEdit
- TRUE to allow the editing of the displayed valuepublic <E extends java.lang.Enum<E>> void addAction(org.obrel.core.RelationType<E> rActionParam, de.esoco.lib.expression.Action<E> fHandler)
Action parameters should be added immediately after creating an
instance of this class but latest before it's setup()
method is
invoked.
rActionParam
- The parameter relation type for the action enumfHandler
- The handler for the action or NULL for nonepublic void allowEdit(boolean bAllow)
bAllow
- TRUE to allow editing, FALSE to disable the actionpublic java.util.List<org.obrel.core.RelationType<?>> getInputParameters()
InteractionFragment.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.getInputParameters
in class InteractionFragment
public java.util.List<org.obrel.core.RelationType<?>> getInteractionParameters()
getInteractionParameters
in class InteractionFragment
public void handleInteraction(org.obrel.core.RelationType<?> rInteractionParam) throws java.lang.Exception
handleInteraction
in class InteractionFragment
rInteractionParam
- The interaction parameterjava.lang.Exception
- Any kind of exception may be thrown in case of errorspublic void init() throws java.lang.Exception
init
in interface de.esoco.lib.manage.Initializable
init
in class InteractionFragment
java.lang.Exception
- Any kind of exception may be thrown in case of errorspublic boolean isEditing()
public void setEditInfo(java.lang.String sInfo)
sInfo
- The info string (empty to clear)public void setup()
setup
in class InteractionFragment
public void startEditing(boolean bNewValue)
bNewValue
- TRUE if a new value should be createdpublic void stopEditing(de.esoco.lib.event.EditListener.EditAction eAction)
eAction
- The action to stop the editing withprotected void abort()
InteractionFragment.rollback()
method which will
be invoked if the execution of a finished fragment is to be reverted.abort
in class InteractionFragment