|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.control.Control lumis.doui.control.DataControl lumis.doui.control.DataBoundControl<TabularSource<?>> lumis.doui.control.itempicker.MultiItemPickerControl
public class MultiItemPickerControl
Multiple item picker control.
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:
Field Summary |
---|
Fields inherited from class lumis.doui.control.DataControl |
---|
FORCE_CASE_LOWER, FORCE_CASE_NONE, FORCE_CASE_UPPER, forceCase, requestParameterName, UNKNOWN_DATA_TYPE, value, valuePreviouslySet |
Constructor Summary | |
---|---|
MultiItemPickerControl()
|
Method Summary | |
---|---|
protected IConverter |
createConverter()
Creates the converter instance for this control. |
String |
getItemKeyFieldId()
|
String |
getItemNameFieldId()
|
protected IServiceInterfaceUrl |
getPopupUrl()
|
String |
getPrimaryKeyFieldId()
|
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. |
Methods inherited from class lumis.doui.control.DataControl |
---|
convertValueToControlValue, getConverter, getDataType, getDefaultValue, getParameterValue, getProcessActionIds, getRequestParameterName, getValue, getValue, initProcessActionIds, isTrim, loadSubControlFromRequest, loadSubControlsFromRequest, setProcessActionHandlerParameter, setProcessActionHandlerParameter, setTrim, setValue, valueIsArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lumis.doui.control.IClientSideReadableControl |
---|
getScriptGetValues, getScriptGetValuesRegistration |
Methods inherited from interface lumis.doui.control.IDataControl |
---|
getConverter, getProcessActionIds, getValue, getValue, setValue |
Methods inherited from interface lumis.doui.control.IControl |
---|
createContainer, disconnect, getChildControls, getControlResource, getId, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes |
Methods inherited from interface lumis.doui.render.IRenderer |
---|
getResources, getSourceContext |
Constructor Detail |
---|
public MultiItemPickerControl()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |