Interface EditorWrappingUtils
-
- All Known Implementing Classes:
DefaultEditorWrappingUtils
public interface EditorWrappingUtilsUtilities used to wrap editors with other
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EditorBuildercreateWrappedEditor(java.util.Collection<Parameter> parameters, DataType valueType, java.lang.String editorDefinitionId, WidgetInstanceManager widgetInstanceManager)Creates an editor component for specified definition identity.EditorBuildercreateWrappedEditor(java.util.Collection<Parameter> parameters, java.lang.String editorDefinitionId, DataAttribute dataAttribute, WidgetInstanceManager widgetInstanceManager, java.lang.String itemPath)Creates an editor component for specified definition identity bound to specified data attribute.EditorBuildercreateWrappedEditor(java.util.Collection<Parameter> parameters, java.lang.String editorDefinitionId, WidgetInstanceManager widgetInstanceManager)Creates an editor component for specified definition identity.booleanisEditorWrappingEnabled(java.lang.String editorDefinitionId, TypedSettingsMap widgetSettings)Checks if wrapping is enabled for specified widget.
-
-
-
Method Detail
-
createWrappedEditor
EditorBuilder createWrappedEditor(java.util.Collection<Parameter> parameters, DataType valueType, java.lang.String editorDefinitionId, WidgetInstanceManager widgetInstanceManager)
Creates an editor component for specified definition identity. An editor is potentially wrapped (depending on i.e. widget settings).- Parameters:
parameters- editor parametersvalueType- type of value that is to be represented by an editoreditorDefinitionId- editor definition identity (may benullwidgetInstanceManager- instance manager for a widget that requires editor- Returns:
- a prepared builder for editor of provided definition id potentially wrapped with different one
-
createWrappedEditor
EditorBuilder createWrappedEditor(java.util.Collection<Parameter> parameters, java.lang.String editorDefinitionId, DataAttribute dataAttribute, WidgetInstanceManager widgetInstanceManager, java.lang.String itemPath)
Creates an editor component for specified definition identity bound to specified data attribute. An editor is potentially wrapped (depending on i.e. widget settings)- Parameters:
parameters- editor parameterseditorDefinitionId- editor definition identity (may benulldataAttribute- an attribute that editor is representingwidgetInstanceManager- instance manager for a widget that requires editoritemPath- specifies a path in widgets model to an item, which attribute is to be represented by editor- Returns:
- a prepared builder for editor of provided definition id potentially wrapped with different one
-
createWrappedEditor
EditorBuilder createWrappedEditor(java.util.Collection<Parameter> parameters, java.lang.String editorDefinitionId, WidgetInstanceManager widgetInstanceManager)
Creates an editor component for specified definition identity. An editor is potentially wrapped (depending on i.e. widget settings).- Parameters:
parameters- editor parameterseditorDefinitionId- editor definition identity (may benullwidgetInstanceManager- instance manager for a widget that requires editor- Returns:
- a prepared builder for editor of provided definition id potentially wrapped with different one
-
isEditorWrappingEnabled
boolean isEditorWrappingEnabled(java.lang.String editorDefinitionId, TypedSettingsMap widgetSettings)Checks if wrapping is enabled for specified widget. Method should also check, if in case of specified editor definition wrapping is required.- Parameters:
editorDefinitionId- editor definition identity to be potentially wrappedwidgetSettings- settings of a widget- Returns:
trueif editor would be wrapped, if requested
-
-