public class ImageWidget extends BaseEntity<ImageConfig>
BaseEntity.CharsPixelsgroupconfig, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccessname, nextSibling, prevSibling, wainstProc, pm| 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, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getPrevSibling, getRow, getSizeAttrs, getTitle, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isFontBold, isFontItalic, isFontUnderline, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, resetAutoResize, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFont, setFontBold, setFontItalic, setFontName, setFontSize, setFontUnderline, setGroup, setHeightChars, setHeightChars, setHeightCharsWorker, setHeightImpl, 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, setSystemParent, setTabStop, setTabStop, setTitle, setTitle, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthCharsWorker, setWidthImpl, setWidthPixels, setWidthPixels, setWidthPixelsWorker, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _name, _setDynamic, _setVisible, afterConfigUpdate, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, canPushWidgetAttr, cleanup, colorDisplay, colorPrompt, config, delete, deselectRows, detachMenu, disable, dynamic, editUndo, enable, finishConfigProcessing, finishSetup, flushWidgetAttrs, genAssignUnknownWarning, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getColumnFont, getColumnLabel, getContextHelpId, getCursorOffset, getDataType, getDbName, getFormat, getFrame, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getId, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, 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, getWidth, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, isAutoResize, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isModified, isMultiple, isNotEntered, isReadOnly, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadMousePointer, loadMousePointer, moveAfterTabItem, moveAfterTabItem, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, openPopup, preRealizeCheck, processSideLabel, pushScreenDefinition, pushWidgetAttr, pushWidgetAttr, readOnlyError, readOnlyError, realize, refresh, resourceDelete, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrs, setAutoCompletion, setAutoCompletion, 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, setFromOCX, setHeader, setHeight, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, 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, setReadOnly, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValue, setScreenValueInt, setScreenValueNoErrorHandling, 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, setWidth, truncatePixelSize, type, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateFields, validateLabelAssignment, view, warningAlreadyRealized, widgetNamefirstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, resolveChainType, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName_instantiatingProcedure, addToPool, doDelete, equals, hashCode, id, id, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, resourceType, setInstantiatingProcedure, toString, unableToAssignUnknown, unknownclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdEx, getListItems, isEditCanUndo, setListItems, setListItems, setScreenValuegetPrivateData, setPrivateData, setPrivateDataresourceTypeid, id, unknownsetDisableRedrawsetReadOnlyallowDeletepublic ImageWidget()
public ImageWidget(boolean dynamic)
dynamic - Flag indicating if this is a static or dynamic resource.public character getImage()
getImage in interface CommonWidgetgetImage 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 CommonWidgetsetTooltip in class BaseEntity<ImageConfig>text - Tooltip textpublic character getTooltip()
getTooltip in interface CommonWidgetgetTooltip in class BaseEntity<ImageConfig>public void setConvert3D(boolean flag)
setConvert3D in interface ImageSupportsetConvert3D in class GenericWidget<ImageConfig>flag - New value for the option.public void setConvert3D(logical flag)
setConvert3D in interface ImageSupportsetConvert3D in class GenericWidget<ImageConfig>flag - New value for the option.public logical getConvert3D()
getConvert3D in interface ImageSupportgetConvert3D in class GenericWidget<ImageConfig>public void setTransparent(boolean flag)
setTransparent in interface ImageWidgetSupportsetTransparent in class GenericWidget<ImageConfig>flag - New value for the option.public void setTransparent(logical flag)
setTransparent in interface ImageWidgetSupportsetTransparent in class GenericWidget<ImageConfig>flag - New value for the option.public logical getTransparent()
getTransparent in interface ImageWidgetSupportgetTransparent in class GenericWidget<ImageConfig>public void setStretchToFit(boolean flag)
setStretchToFit in interface ImageWidgetSupportsetStretchToFit in class GenericWidget<ImageConfig>flag - New value for the option.public void setStretchToFit(logical flag)
setStretchToFit in interface ImageWidgetSupportsetStretchToFit in class GenericWidget<ImageConfig>flag - New value for the option.public logical getStretchToFit()
getStretchToFit in interface ImageWidgetSupportgetStretchToFit in class GenericWidget<ImageConfig>public void setRetainShape(boolean flag)
setRetainShape in interface ImageWidgetSupportsetRetainShape in class GenericWidget<ImageConfig>flag - New value for the option.public void setRetainShape(logical flag)
setRetainShape in interface ImageWidgetSupportsetRetainShape in class GenericWidget<ImageConfig>flag - New value for the option.public logical getRetainShape()
getRetainShape in interface ImageWidgetSupportgetRetainShape 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 ImageSupportloadImage 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 ImageSupportloadImage 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 ImageSupportloadImage 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 ImageSupportloadImage 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 ImageSupportloadImage 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 ImageSupportloadImage in class GenericWidget<ImageConfig>name - Image file name.true if operation was successful.public logical loadImage(character name, int64 xOffset)
loadImage in interface ImageSupportloadImage 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 ImageSupportloadImage 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 ImageSupportloadImage 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 ImageSupportloadImage 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.