public class ImageWidget extends BaseEntity<ImageConfig>
BaseEntity.CharsPixels
group
config, deleted, frame
name, nextSibling, prevSibling
instProc
Constructor and Description |
---|
ImageWidget()
Default constructor.
|
ImageWidget(boolean dynamic)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
logical |
getConvert3D()
Gets CONVERT-3D-COLORS option.
|
character |
getImage()
Returns the name of the image loaded by LOAD-IMAGE.
|
logical |
getRetainShape()
Gets RETAIN-SHAPE option.
|
logical |
getStretchToFit()
Gets STRETCH-TO-FIT option.
|
character |
getTooltip()
Get image tooltip.
|
logical |
getTransparent()
Gets TRANSPARENT option.
|
boolean |
isTabWidget()
This widget can't be a tab item.
|
logical |
loadImage(character name)
Load image from specified file name.
|
logical |
loadImage(character name,
int64 xOffset)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(character name,
int64 xOffset,
int64 yOffset)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(character name,
int64 xOffset,
int64 yOffset,
int64 width)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(character name,
int64 xOffset,
int64 yOffset,
int64 width,
int64 height)
Load widget(button or image) image from specified file name.
|
boolean |
loadImage(java.lang.String name)
Load image from specified file name.
|
boolean |
loadImage(java.lang.String name,
long xOffset)
Load widget(button or image) image from specified file name.
|
boolean |
loadImage(java.lang.String name,
long xOffset,
long yOffset)
Load widget(button or image) image from specified file name.
|
boolean |
loadImage(java.lang.String name,
long xOffset,
long yOffset,
long width)
Load widget(button or image) image from specified file name.
|
boolean |
loadImage(java.lang.String name,
long xOffset,
long yOffset,
long width,
long height)
Load widget(button or image) image from specified file name.
|
private logical |
loadImageInt(character imageSrc,
int64 xOffset,
int64 yOffset,
int64 width,
int64 height)
Load image for widget.
|
void |
setConvert3D(boolean flag)
Set CONVERT-3D-COLORS option.
|
void |
setConvert3D(logical flag)
Set CONVERT-3D-COLORS option.
|
void |
setImage(java.lang.String name)
Set button image file name.
|
void |
setImageHeightChars(int heightChars)
Sets the image load size as defined in the DEFINE IMAGE ...
|
void |
setImageHeightChars(NumberType heightChars)
Sets the image load size as defined in the DEFINE IMAGE ...
|
void |
setImageHeightPixels(int heightPixels)
Sets the image load size as defined in the DEFINE IMAGE ...
|
void |
setImageHeightPixels(NumberType heightPixels)
Sets the image load size as defined in the DEFINE IMAGE ...
|
void |
setImageOffsetColumn(double offset)
Sets new value of COLUMN-offset image phrase option in character units.
|
void |
setImageOffsetColumn(NumberType offset)
Sets new value of COLUMN-offset image phrase option in character units.
|
void |
setImageOffsetRow(double offset)
Sets new value of ROW-offset image phrase option in character units.
|
void |
setImageOffsetRow(NumberType offset)
Sets new value of ROW-offset image phrase option in character units.
|
void |
setImageOffsetX(int offset)
Sets new value of X-offset image phrase option in pixel units.
|
void |
setImageOffsetX(NumberType offset)
Sets new value of X-offset image phrase option in pixel units.
|
void |
setImageOffsetY(int offset)
Sets new value of Y-offset image phrase option in pixel units.
|
void |
setImageOffsetY(NumberType offset)
Sets new value of Y-offset image phrase option in pixel units.
|
void |
setImageWidthChars(int widthChars)
Sets the image load size as defined in the DEFINE IMAGE ...
|
void |
setImageWidthChars(NumberType widthChars)
Sets the image load size as defined in the DEFINE IMAGE ...
|
void |
setImageWidthPixels(int widthPixels)
Sets the image load size as defined in the DEFINE IMAGE ...
|
void |
setImageWidthPixels(NumberType widthPixels)
Sets the image load size as defined in the DEFINE IMAGE ...
|
void |
setRetainShape(boolean flag)
Set RETAIN-SHAPE option.
|
void |
setRetainShape(logical flag)
Set RETAIN-SHAPE option.
|
void |
setStretchToFit(boolean flag)
Set STRETCH-TO-FIT option.
|
void |
setStretchToFit(logical flag)
Set STRETCH-TO-FIT option.
|
void |
setTooltip(java.lang.String text)
Set image tooltip.
|
void |
setTransparent(boolean flag)
Set TRANSPARENT option.
|
void |
setTransparent(logical flag)
Set TRANSPARENT option.
|
_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, changeFontWorker, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getPrevSibling, getRow, getSizeAttrs, getTitle, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, resetAutoResize, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFgColorRgb, setFont, setGroup, setHeightChars, setHeightChars, setHeightCharsWorker, setHeightPixels, setHeightPixels, setHeightPixelsWorker, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setTabStop, setTabStop, setTitle, setTitle, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthCharsWorker, setWidthPixels, setWidthPixels, setWidthPixelsWorker, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow
_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _setDynamic, _setVisible, afterConfigUpdate, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, cleanup, colorDisplay, colorPrompt, config, deselectRows, detachMenu, disable, dynamic, enable, finishConfigProcessing, finishSetup, getColumnFont, getColumnLabel, getContextHelpId, getCursorOffset, getDataType, getDbName, getFormat, getFrame, getFrameHandle, getHelp, getHWND, getId, getLabel, getLabelFont, getLabelStr, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNextTabItem, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getPreviousTabItem, getQuery, getScreenValue, getScreenValue, getSideLabelHandle, getTable, getTabPosition, getTitleFont, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoResize, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isModified, isMultiple, isNotEntered, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, preRealizeCheck, processSideLabel, pushScreenDefinition, pushWidgetAttr, pushWidgetAttr, readOnlyError, realize, refresh, resourceDelete, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAutoResize, setAutoResize, setAutoReturn, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setColumnLabel, setColumnLabel, setContextHelpId, setContextHelpId, setCursorOffset, setCursorOffset, setDataType, setDataType, setDbname, setDeblank, setDisableAutoZap, setDisableRedraw, setFont, setFormat, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setHeader, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setModified, setModified, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setScreenLock, setScreenValue, setScreenValue, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setTable, setThreeD, setThreeD, setTitleFont, setTitleFont, setValidation, setValidation, setVertical, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, truncatePixelSize, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateFields, view, widgetName
delete, firstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData
getResourceType, id, id, instantiatingProcedure, invalidAttribute, setInstantiatingProcedure, type, unknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setScreenValue
getPrivateData, setPrivateData, setPrivateData
getResourceType
id, id, unknown
setDisableRedraw
public ImageWidget()
public ImageWidget(boolean dynamic)
dynamic
- Flag indicating if this is a static or dynamic resource.public character getImage()
getImage
in interface CommonWidget
getImage
in class GenericWidget<ImageConfig>
public void setImage(java.lang.String name)
name
- Image file name.public void setTooltip(java.lang.String text)
setTooltip
in interface CommonWidget
setTooltip
in class BaseEntity<ImageConfig>
text
- Tooltip textpublic character getTooltip()
getTooltip
in interface CommonWidget
getTooltip
in class BaseEntity<ImageConfig>
public void setConvert3D(boolean flag)
setConvert3D
in interface ImageSupport
setConvert3D
in class GenericWidget<ImageConfig>
flag
- New value for the option.public void setConvert3D(logical flag)
setConvert3D
in interface ImageSupport
setConvert3D
in class GenericWidget<ImageConfig>
flag
- New value for the option.public logical getConvert3D()
getConvert3D
in interface ImageSupport
getConvert3D
in class GenericWidget<ImageConfig>
public void setTransparent(boolean flag)
setTransparent
in interface ImageWidgetSupport
setTransparent
in class GenericWidget<ImageConfig>
flag
- New value for the option.public void setTransparent(logical flag)
setTransparent
in interface ImageWidgetSupport
setTransparent
in class GenericWidget<ImageConfig>
flag
- New value for the option.public logical getTransparent()
getTransparent
in interface ImageWidgetSupport
getTransparent
in class GenericWidget<ImageConfig>
public void setStretchToFit(boolean flag)
setStretchToFit
in interface ImageWidgetSupport
setStretchToFit
in class GenericWidget<ImageConfig>
flag
- New value for the option.public void setStretchToFit(logical flag)
setStretchToFit
in interface ImageWidgetSupport
setStretchToFit
in class GenericWidget<ImageConfig>
flag
- New value for the option.public logical getStretchToFit()
getStretchToFit
in interface ImageWidgetSupport
getStretchToFit
in class GenericWidget<ImageConfig>
public void setRetainShape(boolean flag)
setRetainShape
in interface ImageWidgetSupport
setRetainShape
in class GenericWidget<ImageConfig>
flag
- New value for the option.public void setRetainShape(logical flag)
setRetainShape
in interface ImageWidgetSupport
setRetainShape
in class GenericWidget<ImageConfig>
flag
- New value for the option.public logical getRetainShape()
getRetainShape
in interface ImageWidgetSupport
getRetainShape
in class GenericWidget<ImageConfig>
public void setImageOffsetX(NumberType offset)
offset
- new value of X-offset in pixels.public void setImageOffsetX(int offset)
offset
- new value of X-offset in pixels.public void setImageOffsetY(NumberType offset)
offset
- new value of Y-offset in pixels.public void setImageOffsetY(int offset)
offset
- new value of Y-offset in pixels.public void setImageOffsetRow(NumberType offset)
offset
- new value of ROW-offset in characters.public void setImageOffsetRow(double offset)
offset
- new value of ROW-offset in characters.public void setImageOffsetColumn(NumberType offset)
offset
- new value of COLUMN-offset in characters.public void setImageOffsetColumn(double offset)
offset
- new value of COLUMN-offset in characters.public boolean loadImage(java.lang.String name)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.true
if operation was successful.public boolean loadImage(java.lang.String name, long xOffset)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.xOffset
- An integer expression that specifies the pixel along the x-axis at which to begin
reading from the image file.true
if operation was successful.public boolean loadImage(java.lang.String name, long xOffset, long yOffset)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.xOffset
- An integer expression that specifies the pixel along the x-axis at which to begin
reading from the image file.yOffset
- Specifies the pixel along the y-axis at which to begin reading from the image file.true
if operation was successful.public boolean loadImage(java.lang.String name, long xOffset, long yOffset, long width)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.xOffset
- An integer expression that specifies the pixel along the x-axis at which to begin
reading from the image file.yOffset
- Specifies the pixel along the y-axis at which to begin reading from the image file.width
- Specifies the number of pixels along the x-axis to read from the image file.true
if operation was successful.public boolean loadImage(java.lang.String name, long xOffset, long yOffset, long width, long height)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.xOffset
- An integer expression that specifies the pixel along the x-axis at which to begin
reading from the image file.yOffset
- Specifies the pixel along the y-axis at which to begin reading from the image file.width
- Specifies the number of pixels along the x-axis to read from the image file.height
- Specifies the number of pixels along the y-axis to read from the image file.true
if operation was successful.public logical loadImage(character name)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.true
if operation was successful.public logical loadImage(character name, int64 xOffset)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.xOffset
- An integer expression that specifies the pixel along the x-axis at which to begin
reading from the image file.true
if operation was successful.public logical loadImage(character name, int64 xOffset, int64 yOffset)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.xOffset
- An integer expression that specifies the pixel along the x-axis at which to begin
reading from the image file.yOffset
- Specifies the pixel along the y-axis at which to begin reading from the image file.true
if operation was successful.public logical loadImage(character name, int64 xOffset, int64 yOffset, int64 width)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.xOffset
- An integer expression that specifies the pixel along the x-axis at which to begin
reading from the image file.yOffset
- Specifies the pixel along the y-axis at which to begin reading from the image file.width
- Specifies the number of pixels along the x-axis to read from the image file.true
if operation was successful.public logical loadImage(character name, int64 xOffset, int64 yOffset, int64 width, int64 height)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.xOffset
- An integer expression that specifies the pixel along the x-axis at which to begin
reading from the image file.yOffset
- Specifies the pixel along the y-axis at which to begin reading from the image file.width
- Specifies the number of pixels along the x-axis to read from the image file.height
- Specifies the number of pixels along the y-axis to read from the image file.true
if operation was successful.public boolean isTabWidget()
isTabWidget
in class GenericWidget<ImageConfig>
public void setImageWidthChars(NumberType widthChars)
widthChars
- The new size value.public void setImageWidthChars(int widthChars)
widthChars
- The new size value.public void setImageHeightChars(NumberType heightChars)
heightChars
- The new size value.public void setImageHeightChars(int heightChars)
heightChars
- The new size value.public void setImageWidthPixels(NumberType widthPixels)
widthPixels
- The new size value.public void setImageWidthPixels(int widthPixels)
widthPixels
- The new size value.public void setImageHeightPixels(NumberType heightPixels)
heightPixels
- The new size value.public void setImageHeightPixels(int heightPixels)
heightPixels
- The new size value.private logical loadImageInt(character imageSrc, int64 xOffset, int64 yOffset, int64 width, int64 height)
imageSrc
- Image file name to load.xOffset
- Image load x-offset.yOffset
- Image load y-offset.width
- Image load width.height
- Image load height.true
if operation was successful.