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.
|
logical |
loadImage(character name)
Load image from specified file name.
|
logical |
loadImage(character name,
integer xOffset)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(character name,
integer xOffset,
integer yOffset)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(character name,
integer xOffset,
integer yOffset,
integer width)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(character name,
integer xOffset,
integer yOffset,
integer width,
integer height)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(java.lang.String name)
Load image from specified file name.
|
logical |
loadImage(java.lang.String name,
int xOffset)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(java.lang.String name,
int xOffset,
int yOffset)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(java.lang.String name,
int xOffset,
int yOffset,
int width)
Load widget(button or image) image from specified file name.
|
logical |
loadImage(java.lang.String name,
int xOffset,
int yOffset,
int width,
int height)
Load widget(button or image) image from specified file name.
|
private boolean |
loadImageInt(java.lang.String imageSrc)
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 |
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 |
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.
|
canSetPixelPositionInChui, changeFontWorker, getBgColor, getColumn, getDColor, getFgColor, getFont, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getPrevSibling, getRow, getTitle, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, resetAutoResize, setAlign, setBgColor, setBgColor, setBgColor, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, 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, 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, disable, dynamic, enable, finishConfigProcessing, finishSetup, getColumnFont, getColumnLabel, getContextHelpId, getCursorOffset, getDataType, getDbName, getFirstTabItem, 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, getTitleFont, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWindow, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoResize, isChained, isChecked, isEntered, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isModified, isMultiple, isNotEntered, isReadOnly, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notSettable, notWorker, preRealizeCheck, processSideLabel, pushScreenDefinition, readOnlyError, realize, refresh, resourceDelete, selectAll, selectFocusedRow, setAtFormatLength, setAutoResize, setAutoResize, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setColumnLabel, setColumnLabel, setContextHelpId, setContextHelpId, setCursorOffset, setCursorOffset, setDataType, setDataType, setDbname, setDeblank, setDisableAutoZap, setFirstTabItem, 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, setReadOnly, 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, validateLayout, view, widgetName
delete, firstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, 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
public ImageWidget()
public ImageWidget(boolean dynamic)
dynamic
- Flag indicating if this is a static or dynamic resource.public character getImage()
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 logical loadImage(java.lang.String name)
loadImage
in interface ImageSupport
loadImage
in class GenericWidget<ImageConfig>
name
- Image file name.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(java.lang.String name, int 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(java.lang.String name, int xOffset, int 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(java.lang.String name, int xOffset, int yOffset, int 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(java.lang.String name, int xOffset, int yOffset, int width, int 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, integer 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, integer xOffset, integer 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, integer xOffset, integer yOffset, integer 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, integer xOffset, integer yOffset, integer width, integer 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.private boolean loadImageInt(java.lang.String imageSrc)
imageSrc
- Image file name to load.true
if operation was successful.