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

smartsheet / smartsheet-java-sdk / #55

02 Oct 2024 07:40PM UTC coverage: 60.548% (+0.7%) from 59.836%
#55

push

github

web-flow
Release prep for 3.2.1 (#103)

4156 of 6864 relevant lines covered (60.55%)

0.61 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/ImageWidgetContent.java
1
/*
2
 * Copyright (C) 2024 Smartsheet
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.smartsheet.api.models;
18

19
import com.smartsheet.api.models.enums.WidgetType;
20
import com.smartsheet.api.models.format.Format;
21

22
public class ImageWidgetContent implements WidgetContent {
×
23

24
    /**
25
     * The image private Id
26
     */
27
    private String privateId;
28

29
    /**
30
     * Name of the image file
31
     */
32
    private String fileName;
33

34
    /**
35
     * Format Descriptor
36
     *
37
     * @see <a href="https://smartsheet.redoc.ly/#section/API-Basics/Formatting">FormatDescriptor</a>
38
     */
39
    private Format format;
40

41
    /**
42
     * Original height of the image in pixels
43
     */
44
    private Integer height;
45

46
    /**
47
     * The widget has when clicked attribute set to that hyperlink (if present and non-null)
48
     */
49
    private WidgetHyperlink hyperlink;
50

51
    /**
52
     * Original width of the image in pixels
53
     */
54
    private Integer width;
55

56
    /**
57
     * Returns the type for this widget content object
58
     *
59
     * @return IMAGE
60
     */
61
    @Override
62
    public WidgetType getWidgetType() {
63
        return WidgetType.IMAGE;
×
64
    }
65

66
    /**
67
     * Gets the image private ID
68
     *
69
     * @return the private ID
70
     */
71
    public String getPrivateId() {
72
        return privateId;
×
73
    }
74

75
    /**
76
     * Sets the image private ID
77
     */
78
    public ImageWidgetContent setPrivateId(String privateId) {
79
        this.privateId = privateId;
×
80
        return this;
×
81
    }
82

83
    /**
84
     * Gets the name of the image file
85
     *
86
     * @return the name of the image file
87
     */
88
    public String getFileName() {
89
        return fileName;
×
90
    }
91

92
    /**
93
     * Sets the name of the image file
94
     */
95
    public ImageWidgetContent setFileName(String fileName) {
96
        this.fileName = fileName;
×
97
        return this;
×
98
    }
99

100
    /**
101
     * Gets the formatDescriptor for the image file
102
     *
103
     * @return the formatDescriptor
104
     */
105
    public Format getFormat() {
106
        return format;
×
107
    }
108

109
    /**
110
     * Sets the formatDescriptor for the image file
111
     */
112
    public ImageWidgetContent setFormat(Format format) {
113
        this.format = format;
×
114
        return this;
×
115
    }
116

117
    /**
118
     * Gets the original height of the image in pixels
119
     *
120
     * @return the image height
121
     */
122
    public Integer getHeight() {
123
        return height;
×
124
    }
125

126
    /**
127
     * Sets the original height of the image in pixels
128
     */
129
    public ImageWidgetContent setHeight(Integer height) {
130
        this.height = height;
×
131
        return this;
×
132
    }
133

134
    /**
135
     * Gets the hyperlink associated with this Widget
136
     *
137
     * @return the hyperlink
138
     */
139
    public WidgetHyperlink getHyperlink() {
140
        return hyperlink;
×
141
    }
142

143
    /**
144
     * Sets the hyperlink associated with this Widget
145
     */
146
    public ImageWidgetContent setHyperlink(WidgetHyperlink hyperlink) {
147
        this.hyperlink = hyperlink;
×
148
        return this;
×
149
    }
150

151
    /**
152
     * Gets the original width of the image in pixels
153
     *
154
     * @return the image width
155
     */
156
    public Integer getWidth() {
157
        return width;
×
158
    }
159

160
    /**
161
     * Sets the original width of the image in pixels
162
     */
163
    public ImageWidgetContent setWidth(Integer width) {
164
        this.width = width;
×
165
        return this;
×
166
    }
167
}
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

© 2025 Coveralls, Inc