Package lumis.doui.control.filter
Class ParentFilterControl
- java.lang.Object
-
- lumis.doui.control.Control
-
- lumis.doui.control.SourceBoundControl<S>
-
- lumis.doui.control.filter.FilterControl<TableSource>
-
- lumis.doui.control.filter.ParentFilterControl
-
- All Implemented Interfaces:
VariableResolver
,IControl
- Direct Known Subclasses:
DocumentParentFilterControl
,MediaParentFilterControl
public class ParentFilterControl extends FilterControl<TableSource>
Control that renders a filter for the parent of the current content- Since:
- 4.0.6
- Version:
- $Revision: 20857 $ $Date: 2017-12-27 13:27:30 -0200 (Wed, 27 Dec 2017) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
ParentFilterControl.IFolder
Interface used byParentFilterControl
to provide folder information.protected static class
ParentFilterControl.ParentFilterHyperlink
Hyperlink customized to navigate to the parent content.
-
Field Summary
Fields Modifier and Type Field Description protected String
valueControlId
The id of the control where the filter value is kept.-
Fields inherited from class lumis.doui.control.filter.FilterControl
filteredFieldDataType, filteredFieldId, filteredFieldNode, filteredFieldPattern, filterId, filterInputControlType, filterInputRequestParameterName, filterNodeDefaultValue, filterNodeValue, filterRenderBlankOption, 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 ParentFilterControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
buildVisibleSubControls()
Builds all visible children controls of the filter.protected ParentFilterControl.IFolder
getFolder(String folderId)
Returns the information about the folder represented by the content with the given folderId as its primary key value.protected Map<String,String>
getStringsToLocalize()
void
init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl)
void
setRenderData()
-
Methods inherited from class lumis.doui.control.filter.FilterControl
buildHiddenSubControls, buildSubControls, fixedIdentifierRequired, getFilterName
-
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, getType, getValidationScript, getWindowProperties, getWindowProperties, isRequired, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setName, setRuntimeAttributes, setValid
-
-
-
-
Field Detail
-
valueControlId
protected String valueControlId
The id of the control where the filter value is kept.
-
-
Method Detail
-
init
public void init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl) throws PortalException
- Specified by:
init
in interfaceIControl
- Overrides:
init
in classFilterControl<TableSource>
- Throws:
PortalException
-
buildVisibleSubControls
protected String buildVisibleSubControls() throws PortalException
Description copied from class:FilterControl
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.- Overrides:
buildVisibleSubControls
in classFilterControl<TableSource>
- Returns:
- Throws:
PortalException
-
getFolder
protected ParentFilterControl.IFolder getFolder(String folderId) throws PortalException
Returns the information about the folder represented by the content with the given folderId as its primary key value.- Parameters:
folderId
- the folder id, that is the primary key value of the folder content.- Returns:
- the information about the folder.
- Throws:
PortalException
-
setRenderData
public void setRenderData() throws PortalException
- Specified by:
setRenderData
in interfaceIControl
- Overrides:
setRenderData
in classFilterControl<TableSource>
- Throws:
PortalException
-
getStringsToLocalize
protected Map<String,String> getStringsToLocalize()
- Overrides:
getStringsToLocalize
in classControl
-
-