• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #43

24 Aug 2023 10:26PM UTC coverage: 50.427% (-0.02%) from 50.442%
#43

push

github-actions

web-flow
Fix Checkstyle violations in api/models Classes (#57)

This will fix ~900 violations

189 of 189 new or added lines in 59 files covered. (100.0%)

3423 of 6788 relevant lines covered (50.43%)

0.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/smartsheet/api/models/ReportWidgetContent.java
1
package com.smartsheet.api.models;
2

3
/*
4
 * #[license]
5
 * Smartsheet SDK for Java
6
 * %%
7
 * Copyright (C) 2023 Smartsheet
8
 * %%
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
 * you may not use this file except in compliance with the License.
11
 * You may obtain a copy of the License at
12
 *
13
 *      http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing, software
16
 * distributed under the License is distributed on an "AS IS" BASIS,
17
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
 * See the License for the specific language governing permissions and
19
 * limitations under the License.
20
 * %[license]
21
 */
22

23
import com.smartsheet.api.models.enums.WidgetType;
24

25
public class ReportWidgetContent implements WidgetContent {
×
26

27
    /**
28
     * Report ID denoting container source
29
     */
30
    private Long reportId;
31

32
    /**
33
     * HTML snippet to render report
34
     */
35
    private String htmlContent;
36

37
    /**
38
     * The widget has when clicked attribute set to that hyperlink (if present and non-null).
39
     * Hyperlinks will have interactionType.
40
     */
41
    private WidgetHyperlink hyperlink;
42

43
    /**
44
     * Returns the type for this widget content object
45
     *
46
     * @return GRIDGANTT
47
     */
48
    @Override
49
    public WidgetType getWidgetType() {
50
        return WidgetType.GRIDGANTT;
×
51
    }
52

53
    /**
54
     * Gets the report ID denoting container source
55
     *
56
     * @return report ID
57
     */
58
    public Long getReportId() {
59
        return reportId;
×
60
    }
61

62
    /**
63
     * Sets the report ID denoting container source
64
     */
65
    public ReportWidgetContent setReportId(Long reportId) {
66
        this.reportId = reportId;
×
67
        return this;
×
68
    }
69

70
    /**
71
     * Gets the HTML snippet used to render report
72
     *
73
     * @return HTML content
74
     */
75
    public String getHtmlContent() {
76
        return htmlContent;
×
77
    }
78

79
    /**
80
     * Sets the HTML snippet used to render report
81
     */
82
    public ReportWidgetContent setHtmlContent(String htmlContent) {
83
        this.htmlContent = htmlContent;
×
84
        return this;
×
85
    }
86

87
    /**
88
     * Gets the hyperlink associated with this Widget
89
     *
90
     * @return the hyperlink
91
     */
92
    public WidgetHyperlink getHyperlink() {
93
        return hyperlink;
×
94
    }
95

96
    /**
97
     * Sets the hyperlink associated with this Widget
98
     */
99
    public ReportWidgetContent setHyperlink(WidgetHyperlink hyperlink) {
100
        this.hyperlink = hyperlink;
×
101
        return this;
×
102
    }
103
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc