Class DashboardInputsInputBuilder
public class DashboardInputsInputBuilder
extends AbstractInputBuilder<DashboardInputsInputBuilder,Map<String,Object>>
Builder class for input type
DashboardInputs
.- Since:
- 11.1 Paper Plane
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractInputBuilder
AbstractInputBuilder.InputWidth
-
Field Summary
Fields inherited from class AbstractInputBuilder
builderContext, cp
-
Constructor Summary
ConstructorDescriptionDashboardInputsInputBuilder
(InputBuilderContext builderContext, String paramName, String dashboardName, String... portletPath) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
setMaximumDepth
(int embeddedLevels) If the Dashboard features Embedded Dashboard portlets, the FE will find out about all inputs recursively.setPortletPath
(String... portletPath) If the Dashboard features Embedded Dashboard portlets, the FE will find out about all inputs recursively.Methods inherited from class AbstractInputBuilder
addOrUpdateInput, addToConfiguratorEntry, addToConfiguratorEntry, buildContextParameter, buildMap, getInput, self, setAccessCode, setAlign, setAlwaysEditable, setAppearance, setAutoComplete, setAutoFocus, setCaption, setConfigValues, setCustomAttributeName, setCustomAttributeValue, setDefaultWidth, setDisabled, setDisplayMode, setErrorMessage, setExportable, setFlex, setHelpLink, setHelpText, setIcon, setIconPosition, setImportable, setLabel, setLabelPlacement, setLabelStyle, setLabelTranslations, setLayoutGridName, setNoRefresh, setParameterGroup, setPlaceholderText, setReadOnly, setRequired, setShowInline, setSize, setSuccessMessage, setTheme, setTitle, setUserGroupEdit, setUserGroupView, setValue, setValueHint, setWarningMessage, setWidth
-
Constructor Details
-
DashboardInputsInputBuilder
public DashboardInputsInputBuilder(InputBuilderContext builderContext, String paramName, String dashboardName, String... portletPath)
-
-
Method Details
-
_getInput
- Specified by:
_getInput
in classAbstractInputBuilder<DashboardInputsInputBuilder,
Map<String, Object>>
-
setPortletPath
If the Dashboard features Embedded Dashboard portlets, the FE will find out about all inputs recursively. After executing the top level Dashboard to get its inputs, it will look for the portlet named portletPath[0] and if it's an Embedded Dashbaard, it will execute it to get its inputs. And the same process is repeated if a portlet named portletPath[1] exists and happens to be an Embedded Dashboard.Setting this parameter will reset
setMaximumDepth(int)
toportletPath.length
- Parameters:
portletPath
- portlet name, or list of portlet names leading to the desired portlet for which all input should be extracted- Returns:
- self
-
setMaximumDepth
If the Dashboard features Embedded Dashboard portlets, the FE will find out about all inputs recursively. After executing the top level Dashboard to get its inputs (level 0) it will look for Embedded Dashbaards, and it will execute them to get their inputs (level 1). And the same process is repeated for any Embedded Dashboard, up to the embeddedLevels value is reached.The absolute maximum is 4 if a PortletPath is defined, and only 2 no PortletPath is defined.
- Parameters:
embeddedLevels
- maximum recursion level if embedded Dashboards are found - defaults to 1- Returns:
- self
-