public class MultiItemPickerControl extends DataBoundControl<TabularSource<?>>
Allows the end user to add and remove multiple items.
This control contains four significant properties. The id of the field that each of the items in its list represents, the id of that field that represents a user friendly name for the field that it represents, the primary key of each item, and finally an interface that is responsible for searching and selecting the items.
The control renders a readonly user friendly name of each item with clear icon beside it. When the user selects the selection icon the specified search interface is popped passing the javascript function name that should be called to include the identifier and friendly name of the item.
Example use:
FORCE_CASE_LOWER, FORCE_CASE_NONE, FORCE_CASE_UPPER, forceCase, requestParameterName, UNKNOWN_DATA_TYPE, value, valuePreviouslySet
childControls, controlContainer, controlDefinitionNode, controlResource, douiContext, hasValidatorSubControls, isValid, locale, ON_EVENT_CLOSE_WINDOW, ON_EVENT_LINK, ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE, ON_EVENT_POPUP_RUNTIME_INTERFACE, ON_EVENT_PROCESS_ACTION, ON_EVENT_RENDER_ACTION, ON_EVENT_REPLACE_INTERFACE, ON_EVENT_SCRIPT, ON_EVENT_VALIDATE, onEventScripts, PARAMETER_TYPE_FIRST_SELECTED, PARAMETER_TYPE_GET_VALUE, parentControl, resources, type, VALIDATION_SELECTED_MANY, VALIDATION_SELECTED_ONE
Constructor and Description |
---|
MultiItemPickerControl() |
Modifier and Type | Method and Description |
---|---|
protected IConverter |
createConverter()
Creates the converter instance for this control.
|
String |
getItemKeyFieldId() |
String |
getItemNameFieldId() |
protected IServiceInterfaceUrl |
getPopupUrl() |
String |
getPrimaryKeyFieldId() |
IDataControlRequestHelpDefinition |
getRequestHelpDefinition()
Returns the request parameters help definition.
|
String |
getSearchInterfaceId() |
protected Class<?> |
getValueClass()
Returns the class the possible values of this control are assignable to.
|
void |
init(Node controlDefinitionNode,
ControlContainer controlContainer,
IControl parentControl) |
void |
loadFromRequest()
Loads the number of rows and index of row to delete if exists.
|
void |
setItemKeyFieldId(String itemKeyFieldId) |
void |
setItemNameFieldId(String itemNameFieldId) |
void |
setPrimaryKeyFieldId(String primaryKeyFieldId) |
void |
setProcessActionHandlerParameters(IProcessActionHandler processActionHandler)
Sets the control value as a process action handler parameter.
|
void |
setRenderData() |
void |
setSearchInterfaceId(String searchInterfaceId) |
protected void |
setValueFromSource(TabularSource<?> source)
Reads the value corresponding to the current control from the control
source.
|
autoAddDateTimeValueValidator, autoAddDoubleValueValidator, autoAddFileSizeValidator, autoAddIntegerValueValidator, autoAddLengthValidator, autoAddLongValueValidator, autoAddRequiredValueValidator, autoAddValidators, buildSubControls, createDataType, getDataId, getFieldName, getProcessActionHandlerParameterName, getReload, getRuntimeDefaultSource, getSource, getSourceById, getSourceContext, getUnboundedConverter, setDefaultValue, setRawValue, setReload, setSourceParameter, setValid, setValueFromSource, update
convertValueToControlValue, getConverter, getDataType, getDefaultValue, getParameterValue, getProcessActionIds, getRequestParameterName, getValue, getValue, initProcessActionIds, isTrim, loadSubControlFromRequest, loadSubControlsFromRequest, setProcessActionHandlerParameter, setProcessActionHandlerParameter, setSourceParameter, setSourceParameters, setTrim, setValue, valueIsArray
appendSubControl, appendSubControls, applyOnEventScripts, convertToStandardValue, createContainer, disconnect, fixedIdentifierRequired, generateControlId, generateControlIdPrefix, getAdditionalParameters, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getControlResource, getId, getLocale, getName, getNamespace, getParentControl, getPrepareForReadScript, getRenderData, getResources, getScriptActionValidation, getStringsToLocalize, getType, getValidationScript, getWindowProperties, getWindowProperties, isRequired, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setName, setRuntimeAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConverter, getProcessActionIds, getValue, getValue, setValue
createContainer, disconnect, getChildControls, getControlResource, getId, getName, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes
getResources
protected Class<?> getValueClass() throws PortalException
DataControl
This default implementation uses IDouiDataType.getValueClass()
of the data type of this control.
getValueClass
in class DataControl
PortalException
protected IConverter createConverter() throws PortalException
DataControl
createConverter
in class DataBoundControl<TabularSource<?>>
PortalException
public void init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl) throws PortalException
init
in interface IControl
init
in class DataBoundControl<TabularSource<?>>
PortalException
protected void setValueFromSource(TabularSource<?> source) throws PortalException
DataBoundControl
setValueFromSource
in class DataBoundControl<TabularSource<?>>
PortalException
public void loadFromRequest() throws PortalException
loadFromRequest
in interface IDataControl
loadFromRequest
in class DataBoundControl<TabularSource<?>>
PortalException
public void setRenderData() throws PortalException
setRenderData
in interface IControl
setRenderData
in class DataBoundControl<TabularSource<?>>
PortalException
protected IServiceInterfaceUrl getPopupUrl() throws PortalException
PortalException
public void setProcessActionHandlerParameters(IProcessActionHandler processActionHandler) throws PortalException
DataControl
setProcessActionHandlerParameters
in interface IDataControl
setProcessActionHandlerParameters
in class DataControl
PortalException
public String getItemKeyFieldId()
public void setItemKeyFieldId(String itemKeyFieldId)
public String getPrimaryKeyFieldId()
public void setPrimaryKeyFieldId(String primaryKeyFieldId)
public String getItemNameFieldId()
public void setItemNameFieldId(String itemNameFieldId)
public String getSearchInterfaceId()
public void setSearchInterfaceId(String searchInterfaceId)
public IDataControlRequestHelpDefinition getRequestHelpDefinition() throws PortalException
IDataControl
getRequestHelpDefinition
in interface IDataControl
getRequestHelpDefinition
in class DataBoundControl<TabularSource<?>>
PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.