public class ImageWidget extends BBjWidget implements SaveableWidget
BASIS_UTILITY_DEVICE_PIXEL_RATIO_KEY_NAME$, DevicePixelRatio!
BASIS_DASHBOARD_UTILITY_FILL_ERROR_ACTION_KEY_NAME$, CachedImage!, DashboardWidget!, FillErrorAction, ON_FILL_ERROR_IGNORE, ON_FILL_ERROR_STOP, ON_FILL_ERROR_WARN, UserData!
Constructor and Description |
---|
ImageWidget(BBjString p_name$,
BBjString p_title$,
BBjString p_previewText$,
BBjString p_previewImage$)
Creates an ImageWidget without an image, which defaults to a transparent image
|
ImageWidget(BBjString p_name$,
BBjString p_title$,
BBjString p_previewText$,
BBjString p_previewImage$,
BBjString p_imageName$)
Creates an ImageWidget specifying an image file for the image source
|
ImageWidget(BBjString p_name$,
BBjString p_title$,
BBjString p_previewText$,
BBjString p_previewImage$,
URL p_imageURL!)
Creates an ImageWidget specifying a Java URL for the image source.
|
Modifier and Type | Method and Description |
---|---|
ImageWidget |
clone()
An internal method used by the Dashboard class to clone a category widget so that it may be displayed in a popped out window
|
void |
create(BBjChildWindow p_widgetControlWindow!)
Creates the ImageWidget
|
void |
destroy()
Destroys the ImageWidget
|
BBjString |
getImageName()
Returns the image name for the widget.
|
URL |
getImageURL()
Returns the image URL for the widget.
|
BBjNumber |
isDestroyed()
Returns if the ImageWidget is destroyed
|
void |
refresh()
Refreshes the image, which results in the widget showing an up-to-date version of the images if it has changed on disk or from the URL
|
void |
resize(BBjNumber p_width,
BBjNumber p_height)
Resizes the widget using the provided with and height
|
void |
save()
Saves the image
|
void |
setImage(BBjString p_imageName$)
Sets the image for the widget.
|
display, getDevicePixelRatio, logQueryPerformance, setDevicePixelRatio
active, getClientSlash, getFillError, getFillErrorDesc, getImage, getImage, imageFileSaveDialog, logError, name, previewImage, previewText, setActive, setFillErrorDisplayImage, setFillErrorDisplayText, setLastSaveDir, spacesValid, title
public ImageWidget(BBjString p_name$, BBjString p_title$, BBjString p_previewText$, BBjString p_previewImage$)
p_name$
- The widget's namep_title$
- The widget's titlep_previewText$
- The widget's preview text as shown in the Customize view and the widget toolbar's tooltipp_previewImage$
- The widget's preview image. If this is an empty string, then one will be created automatically in the Customize view.public ImageWidget(BBjString p_name$, BBjString p_title$, BBjString p_previewText$, BBjString p_previewImage$, BBjString p_imageName$)
p_name$
- The widget's namep_title$
- The widget's titlep_previewText$
- The widget's preview text as shown in the Customize view and the widget toolbar's tooltipp_previewImage$
- The widget's preview image. If this is an empty string, then one will be created automatically in the Customize view.p_imageName$
- The widget's image, as a string that contains a path to the image file used as the sourcepublic ImageWidget(BBjString p_name$, BBjString p_title$, BBjString p_previewText$, BBjString p_previewImage$, URL p_imageURL!)
p_name$
- The widget's namep_title$
- The widget's titlep_previewText$
- The widget's preview text as shown in the Customize view and the widget toolbar's tooltipp_previewImage$
- The widget's preview image. If this is an empty string, then one will be created automatically in the Customize view.p_imageURL!
- A Java URL containing the path to the image used as the sourceURL documentation for more information.
public void create(BBjChildWindow p_widgetControlWindow!)
public void setImage(BBjString p_imageName$)
p_imageName$
- A string containing the path to the image filepublic void resize(BBjNumber p_width, BBjNumber p_height)
public void refresh()
refresh
in interface RefreshableWidget
public void save()
save
in interface SaveableWidget
public BBjString getImageName()
public URL getImageURL()
public void destroy()
public BBjNumber isDestroyed()
isDestroyed
in interface Widget
isDestroyed
in class BBjWidget
public ImageWidget clone()