Class TemplateEditor
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.ui.screen.StandardEditor<ReportTemplate>
io.jmix.reportsui.screen.template.edit.TemplateEditor
- All Implemented Interfaces:
ChangeTracker
,EditorScreen<ReportTemplate>
,FrameOwner
,ReadOnlyAwareScreen
@UiController("report_ReportTemplate.edit")
@UiDescriptor("template-edit.xml")
public class TemplateEditor
extends StandardEditor<ReportTemplate>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.StandardEditor
StandardEditor.AfterCommitChangesEvent, StandardEditor.BeforeCommitChangesEvent, StandardEditor.InitEntityEvent<E>, StandardEditor.ValidationEvent
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected CheckBox
protected ChartEditFragment
static final String
static final String
protected ComboBox<CustomTemplateDefinedBy>
protected LinkButton
protected CheckBox
protected BoxLayout
protected Dialogs
protected LinkButton
protected RadioButtonGroup<Boolean>
protected MessageBundle
protected Messages
protected Metadata
protected Notifications
protected ComboBox<ReportOutputType>
protected PivotTableEditFragment
protected PolicyStore
protected BoxLayout
static final String
protected ScreenBuilders
protected SecureOperations
protected TableEditFragment
protected InstanceContainer<ReportTemplate>
protected SourceCodeEditor
protected TemporaryStorage
protected WindowConfig
Fields inherited from class io.jmix.ui.screen.StandardEditor
commitActionPerformed, showEnableEditingBtn, showSaveNotification
Fields inherited from interface io.jmix.ui.screen.EditorScreen
ENABLE_EDITING, WINDOW_CLOSE, WINDOW_COMMIT, WINDOW_COMMIT_AND_CLOSE
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<DescriptionEditFragment>
protected boolean
hasChartTemplateOutput
(ReportOutputType reportOutputType) protected boolean
hasHtmlCsvTemplateOutput
(ReportOutputType reportOutputType) protected boolean
hasScriptCustomDefinedBy
(CustomTemplateDefinedBy customTemplateDefinedBy) protected boolean
hasTemplateOutput
(ReportOutputType reportOutputType) protected void
protected void
protected void
initTemplateEditor
(ReportTemplate reportTemplate) protected void
protected boolean
isUpdatePermitted
(ReportTemplate reportTemplate) protected void
onAfterInit
(Screen.AfterInitEvent event) protected void
protected void
void
protected void
onInit
(Screen.InitEvent event) protected void
protected void
protected void
protected void
outputNamePatternLabelContextHelpIconClickHandler
(HasContextHelp.ContextHelpIconClickEvent contextHelpIconClickEvent) protected void
setupTemplateTypeVisibility
(boolean visibility) protected void
setupVisibility
(boolean customEnabled, ReportOutputType reportOutputType) protected void
setupVisibilityDescriptionEdit
(boolean customEnabled, ReportOutputType reportOutputType) protected void
protected void
protected boolean
protected boolean
protected void
visibleTemplateEditor
(ReportOutputType outputType) Methods inherited from class io.jmix.ui.screen.StandardEditor
addAfterCommitChangesListener, addBeforeCommitChangesListener, addDefaultCloseAction, addDefaultCommitAction, addDefaultCommitAndCloseAction, addDefaultEnableEditingAction, addInitEntityListener, addValidationEventListener, cancel, closeWithCommit, closeWithDiscard, commit, commitAndClose, commitChanges, disableCommitActions, doNotReloadEditedEntity, enableEditing, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getSaveNotificationCaption, getWindowActionOptional, hasUnsavedChanges, initActions, isCrossFieldValidate, isEntityModifiedInParentContext, isEntityModifiedRecursive, isLocked, isModifiedAfterOpen, isReadOnly, isReadOnlyDueToLock, isShowSaveNotification, isUiListComponentsValidationEnabled, onChangeEvent, onPostCommitEvent, preventUnsavedChanges, releaseLock, setCrossFieldValidate, setEntityToEdit, setModifiedAfterOpen, setReadOnly, setShowSaveNotification, setupEntityToEdit, setupLock, setupModifiedTracking, showSaveNotification, validateAdditionalRules, validateScreen, validateUiComponents
Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, isScreenAction, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
CUSTOM_DEFINE_BY
- See Also:
-
CUSTOM
- See Also:
-
REPORT_OUTPUT_TYPE
- See Also:
-
isCustomLabel
-
customField
-
templateFileLabel
-
isGroovyRadioButtonGroup
-
isGroovyLabel
-
customDefinitionField
-
customDefinitionHelpLinkButton
-
fullScreenLinkButton
-
customDefinitionLabel
-
customDefinedByField
-
customDefinedByLabel
-
alterableField
-
alterableLabel
-
outputTypeField
-
outputNamePatternField
-
outputNamePatternLabel
-
chartEditFragment
-
pivotTableEditFragment
-
tableEditFragment
-
templateDc
-
descriptionEditBox
-
previewBox
-
templateFileEditor
-
windowConfig
-
metadata
-
secureOperations
-
policyStore
-
temporaryStorage
-
screenBuilders
-
dialogs
-
messages
-
messageBundle
-
notifications
-
-
Constructor Details
-
TemplateEditor
public TemplateEditor()
-
-
Method Details
-
onInit
-
outputNamePatternLabelContextHelpIconClickHandler
@Install(to="outputNamePatternLabel", subject="contextHelpIconClickHandler") protected void outputNamePatternLabelContextHelpIconClickHandler(HasContextHelp.ContextHelpIconClickEvent contextHelpIconClickEvent) -
initNewItem
-
onAfterInit
-
hasScriptCustomDefinedBy
-
onBeforeShow
-
onTemplateUploadFieldFileUploadStart
@Subscribe("templateUploadField") protected void onTemplateUploadFieldFileUploadStart(UploadField.FileUploadStartEvent event) -
getDescriptionEditFragments
-
hasTemplateOutput
-
hasChartTemplateOutput
-
hasHtmlCsvTemplateOutput
-
setupVisibility
-
setupTemplateTypeVisibility
protected void setupTemplateTypeVisibility(boolean visibility) -
setupVisibilityDescriptionEdit
protected void setupVisibilityDescriptionEdit(boolean customEnabled, ReportOutputType reportOutputType) -
updateOutputType
protected void updateOutputType() -
initOutputTypeList
protected void initOutputTypeList() -
onTemplateUploadFieldFileUploadError
@Subscribe("templateUploadField") protected void onTemplateUploadFieldFileUploadError(UploadField.FileUploadErrorEvent event) -
onTemplateUploadFieldFileUploadSucceed
@Subscribe("templateUploadField") protected void onTemplateUploadFieldFileUploadSucceed(SingleFileUploadField.FileUploadSucceedEvent event) -
initUploadField
protected void initUploadField() -
isUpdatePermitted
-
initTemplateEditor
-
visibleTemplateEditor
-
onBeforeCommit
-
validateInputOutputFormats
protected boolean validateInputOutputFormats() -
validateTemplateFile
protected boolean validateTemplateFile() -
showGroovyScriptEditorDialog
@Subscribe("fullScreenLinkButton") protected void showGroovyScriptEditorDialog(Button.ClickEvent event) -
onCustomDefinitionHelpLinkButtonClick
@Subscribe("customDefinitionHelpLinkButton") public void onCustomDefinitionHelpLinkButtonClick(Button.ClickEvent event)
-