|
| 1 | +/** |
| 2 | + * |
| 3 | + * (c) Copyright Ascensio System SIA 2025 |
| 4 | + * |
| 5 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + * you may not use this file except in compliance with the License. |
| 7 | + * You may obtain a copy of the License at |
| 8 | + * |
| 9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + * |
| 11 | + * Unless required by applicable law or agreed to in writing, software |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + * See the License for the specific language governing permissions and |
| 15 | + * limitations under the License. |
| 16 | + * |
| 17 | + */ |
| 18 | + |
| 19 | +package com.onlyoffice.model.documenteditor.config.editorconfig.customization; |
| 20 | + |
| 21 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 22 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 23 | +import lombok.AllArgsConstructor; |
| 24 | +import lombok.Builder; |
| 25 | +import lombok.Getter; |
| 26 | +import lombok.NoArgsConstructor; |
| 27 | +import lombok.Setter; |
| 28 | + |
| 29 | + |
| 30 | +/** |
| 31 | + * Starting from version 8.3, defines the Complete & Submit button settings. If this parameter is a boolean value, |
| 32 | + * then it specifies whether the Complete & Submit button will be displayed or hidden on the top toolbar. |
| 33 | + * Button will only be available for the pdf format. The default value is true. |
| 34 | + */ |
| 35 | +@Getter |
| 36 | +@Setter |
| 37 | +@Builder |
| 38 | +@AllArgsConstructor |
| 39 | +@NoArgsConstructor |
| 40 | +@JsonInclude(JsonInclude.Include.NON_ABSENT) |
| 41 | +@JsonIgnoreProperties(ignoreUnknown = true) |
| 42 | +public class SubmitForm { |
| 43 | + /** |
| 44 | + * Defines whether the Complete & Submit button will be displayed or hidden on the top toolbar. |
| 45 | + * Button will only be available for the pdf format. The default value is true. |
| 46 | + */ |
| 47 | + private Boolean visible; |
| 48 | + |
| 49 | + /** |
| 50 | + * Defines a message displayed after forms are submitted. The following values are available: |
| 51 | + * "" - the message will not be displayed; |
| 52 | + * null / undefined - the default message will be displayed; |
| 53 | + * "text" - any text that the user specifies will be displayed. |
| 54 | + */ |
| 55 | + private String resultMessage; |
| 56 | +} |
0 commit comments