Package com.smartsheet.api.models
Class ImageWidgetContent
- java.lang.Object
-
- com.smartsheet.api.models.ImageWidgetContent
-
- All Implemented Interfaces:
WidgetContent
public class ImageWidgetContent extends java.lang.Object implements WidgetContent
-
-
Constructor Summary
Constructors Constructor Description ImageWidgetContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFileName()Gets the name of the image fileFormatgetFormat()Gets the formatDescriptor for the image filejava.lang.IntegergetHeight()Gets the original height of the image in pixelsWidgetHyperlinkgetHyperlink()Gets the hyperlink associated with this Widgetjava.lang.StringgetPrivateId()Gets the image private IDWidgetTypegetWidgetType()Returns the type for this widget content objectjava.lang.IntegergetWidth()Gets the original width of the image in pixelsImageWidgetContentsetFileName(java.lang.String fileName)Sets the name of the image fileImageWidgetContentsetFormat(Format format)Sets the formatDescriptor for the image fileImageWidgetContentsetHeight(java.lang.Integer height)Sets the original height of the image in pixelsImageWidgetContentsetHyperlink(WidgetHyperlink hyperlink)Sets the hyperlink associated with this WidgetImageWidgetContentsetPrivateId(java.lang.String privateId)Sets the image private IDImageWidgetContentsetWidth(java.lang.Integer width)Sets the original width of the image in pixels
-
-
-
Method Detail
-
getWidgetType
public WidgetType getWidgetType()
Returns the type for this widget content object- Specified by:
getWidgetTypein interfaceWidgetContent- Returns:
- IMAGE
-
getPrivateId
public java.lang.String getPrivateId()
Gets the image private ID- Returns:
- the private ID
-
setPrivateId
public ImageWidgetContent setPrivateId(java.lang.String privateId)
Sets the image private ID
-
getFileName
public java.lang.String getFileName()
Gets the name of the image file- Returns:
- the name of the image file
-
setFileName
public ImageWidgetContent setFileName(java.lang.String fileName)
Sets the name of the image file
-
getFormat
public Format getFormat()
Gets the formatDescriptor for the image file- Returns:
- the formatDescriptor
-
setFormat
public ImageWidgetContent setFormat(Format format)
Sets the formatDescriptor for the image file
-
getHeight
public java.lang.Integer getHeight()
Gets the original height of the image in pixels- Returns:
- the image height
-
setHeight
public ImageWidgetContent setHeight(java.lang.Integer height)
Sets the original height of the image in pixels
-
getHyperlink
public WidgetHyperlink getHyperlink()
Gets the hyperlink associated with this Widget- Returns:
- the hyperlink
-
setHyperlink
public ImageWidgetContent setHyperlink(WidgetHyperlink hyperlink)
Sets the hyperlink associated with this Widget
-
getWidth
public java.lang.Integer getWidth()
Gets the original width of the image in pixels- Returns:
- the image width
-
setWidth
public ImageWidgetContent setWidth(java.lang.Integer width)
Sets the original width of the image in pixels
-
-