Package lumis.doui.control.filter
Class FilterControl<S extends Source<?>>
- java.lang.Object
-
- lumis.doui.control.Control
-
- lumis.doui.control.SourceBoundControl<S>
-
- lumis.doui.control.filter.FilterControl<S>
-
- Type Parameters:
S
- the filter's source type.
- All Implemented Interfaces:
VariableResolver
,IControl
- Direct Known Subclasses:
ParentFilterControl
public class FilterControl<S extends Source<?>> extends SourceBoundControl<S>
Generic filter control. Renders the frontend for the user to choose between the available filters.
Example use:- Since:
- 4.0.0
- Version:
- $Revision: 23038 $ $Date: 2019-08-06 10:20:42 -0300 (Tue, 06 Aug 2019) $
- See Also:
InputHiddenControl
-
-
Field Summary
Fields Modifier and Type Field Description protected String
filteredFieldDataType
protected String
filteredFieldId
protected Node
filteredFieldNode
protected String
filteredFieldPattern
protected String
filterId
protected String
filterInputControlType
protected String
filterInputRequestParameterName
protected String
filterNodeDefaultValue
protected String
filterNodeValue
protected boolean
filterRenderBlankOption
protected Node
sourceFilterNode
-
Fields inherited from class lumis.doui.control.Control
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 Summary
Constructors Constructor Description FilterControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
buildHiddenSubControls()
void
buildSubControls()
protected String
buildVisibleSubControls()
Builds all visible children controls of the filter.protected boolean
fixedIdentifierRequired()
protected String
getFilterName()
void
init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl)
void
setRenderData()
-
Methods inherited from class lumis.doui.control.SourceBoundControl
getRuntimeDefaultSource, getSource, getSourceContext
-
Methods inherited from class lumis.doui.control.Control
appendSubControl, appendSubControls, applyOnEventScripts, convertToStandardValue, createContainer, disconnect, 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, setValid
-
-
-
-
Field Detail
-
filterId
protected String filterId
-
filterNodeValue
protected String filterNodeValue
-
filterNodeDefaultValue
protected String filterNodeDefaultValue
-
filteredFieldId
protected String filteredFieldId
-
filteredFieldDataType
protected String filteredFieldDataType
-
filteredFieldPattern
protected String filteredFieldPattern
-
filterInputRequestParameterName
protected String filterInputRequestParameterName
-
filterInputControlType
protected String filterInputControlType
-
filterRenderBlankOption
protected boolean filterRenderBlankOption
-
sourceFilterNode
protected Node sourceFilterNode
-
filteredFieldNode
protected Node filteredFieldNode
-
-
Method Detail
-
init
public void init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl) throws PortalException
- Specified by:
init
in interfaceIControl
- Overrides:
init
in classControl
- Throws:
PortalException
-
setRenderData
public void setRenderData() throws PortalException
- Specified by:
setRenderData
in interfaceIControl
- Overrides:
setRenderData
in classControl
- Throws:
PortalException
-
fixedIdentifierRequired
protected boolean fixedIdentifierRequired()
- Overrides:
fixedIdentifierRequired
in classControl
-
buildSubControls
public void buildSubControls() throws ControlException, PortalException
- Specified by:
buildSubControls
in interfaceIControl
- Overrides:
buildSubControls
in classControl
- Throws:
ControlException
PortalException
-
getFilterName
protected String getFilterName() throws PortalException
- Returns:
- the name for the filter, or the name of the filtered field.
- Throws:
PortalException
-
buildVisibleSubControls
protected String buildVisibleSubControls() throws PortalException
Builds all visible children controls of the filter. Based on the filter properties these sub controls could be labels, inputboxes, dropdown boxes, date picker controls etc.- Returns:
- Throws:
PortalException
-
buildHiddenSubControls
protected String buildHiddenSubControls() throws PortalException
- Throws:
PortalException
-
-