public class HtmlBrowserWidget extends ControlEntity<HtmlBrowserConfig> implements HtmlBrowser, EmitsComEvents
This implementation is specific for a COM object used to open a web page. It is required to have a
CtrlFrameName.WebBrowser.BeforeNavigate24GL procedure, to emit the COM events.
BaseEntity.CharsPixels| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
defaultContextPath
Default context-path for a HTML browser
|
private static java.lang.String |
defaultResourceBase
Default resource-base for a HTML browser
|
private static java.lang.Integer |
loadTimeout
Defined timeout for loading web pages into the browser
|
private static CentralLogger |
LOG
Logger
|
private ComObject |
obj
A definition of a corresponding COM-OBJECT used to raise the COM events.
|
ALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHTgroupconfig, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccessname, nextSibling, prevSibling, wainstProc, pm| Constructor and Description |
|---|
HtmlBrowserWidget()
Default constructor.
|
HtmlBrowserWidget(boolean dynamic)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterConfigUpdate(HtmlBrowserConfig beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
BaseDataType[] |
emitComEvent(java.lang.String eventName,
BaseDataType[] args)
The method is called when a COM event is to be emitted by means of this instance.
|
character |
getContextPath()
Getter for the CONTEXT-PATH attribute.
|
static int |
getLoadTimeout()
Retrieve the number of milliseconds to wait when loading a HTML web page.
|
character |
getResourceBase()
Getter for the RESOURCE-BASE attribute.
|
void |
openHTMLString(character html)
Assigns the supplied string as the html content in the widget.
|
void |
openHTMLString(longchar html)
Assigns the supplied string as the html content in the widget.
|
logical |
openWebPage(character url)
Open the specified web page.
|
logical |
openWebPage(character url,
BaseDataType unused,
character target)
Open the specified web page.
|
logical |
openWebPage(character url,
character target)
Open the specified web page.
|
void |
postMessage(character message)
Posts a message to the HTML loaded by the widget.
|
void |
postMessage(longchar message)
Posts a message to the HTML loaded by the widget.
|
void |
print()
Prints the currently opened web page.
|
void |
setContextPath(character value)
Setter for the CONTEXT-PATH attribute.
|
void |
setResourceBase(character value)
Setter for the RESOURCE-BASE attribute.
|
void |
setSensitive(boolean s)
Sets new value of SENSITIVE attribute.
|
changeFontWorker, delete, firstChild, getColon, getDataClass, getDataType, getIndex, getNextTabItem, getPreviousTabItem, getPrevSibling, getSideLabelHandleWorker, getSizeAttrs, getTitle, hasSideLabelHandle, isAutoResize, isDropTarget, isModified, lastChild, processSideLabel, resetAutoResize, setAttrSpace, setAutoResize, setAutoResize, setColumnLabel, setColumnLabel, setDataType, setDataType, setDropTarget, setForceLabel, setForceLabel, setHeightCharsWorker, setHeightPixelsWorker, setIndex, setIndex, setModified, setModified, setNoAttrSpace, setNoLabels, setSideLabelHandleWorker, setTitle, setTitle, setTo, setTo, setWidthCharsWorker, setWidthPixelsWorker, validateFields_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getRow, getTooltip, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isFontBold, isFontItalic, isFontUnderline, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, 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, setHeightImpl, setHeightPixels, setHeightPixels, 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, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthImpl, setWidthPixels, setWidthPixels, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _name, _setDynamic, _setVisible, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, canPushWidgetAttr, cleanup, colorDisplay, colorPrompt, config, 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, getConvert3D, getCursorOffset, getDbName, getFormat, getFrame, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getQuery, getRetainShape, getScreenValue, getScreenValue, getSideLabelHandle, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWidth, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isReadOnly, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTabItem, moveAfterTabItem, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, openPopup, preRealizeCheck, 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, setAutoReturn, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setCursorOffset, setCursorOffset, 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, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setReadOnly, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValue, setScreenValueInt, setScreenValueNoErrorHandling, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setThreeD, setThreeD, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVertical, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, setWidth, truncatePixelSize, type, underline, underline, valid, validate, 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, waitid, id, unknown, validgetHeight, getHeightChars, getHeightPixels, getWidth, getWidthChars, getWidthPixels, setHeight, setHeightChars, setHeightChars, setHeightPixels, setHeightPixels, setWidth, setWidthChars, setWidthChars, setWidthPixels, setWidthPixelsendFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTargetgetIdEx, getListItems, isEditCanUndo, setListItems, setListItems, setScreenValuegetPrivateData, setPrivateData, setPrivateDataresourceTypesetDisableRedrawsetReadOnlyallowDeleteprivate static final CentralLogger LOG
private static java.lang.Integer loadTimeout
private static final java.lang.String defaultContextPath
private static final java.lang.String defaultResourceBase
private ComObject obj
public HtmlBrowserWidget()
public HtmlBrowserWidget(boolean dynamic)
dynamic - Flag indicating if this is a static or dynamic resource.public static int getLoadTimeout()
public void afterConfigUpdate(HtmlBrowserConfig beforeUpdate)
afterConfigUpdate in interface ConfigOwner<HtmlBrowserConfig>afterConfigUpdate in class GenericWidget<HtmlBrowserConfig>beforeUpdate - Config reference capturing the config state before
the owner's config was modified.public void setSensitive(boolean s)
setSensitive in interface SensitivesetSensitive in class GenericWidget<HtmlBrowserConfig>s - new value of SENSITIVE attributepublic character getContextPath()
getContextPath in interface HtmlBrowserpublic void setContextPath(character value)
setContextPath in interface HtmlBrowservalue - the attribute valuepublic character getResourceBase()
getResourceBase in interface HtmlBrowserpublic void setResourceBase(character value)
setResourceBase in interface HtmlBrowservalue - the attribute valuepublic logical openWebPage(character url, character target)
openWebPage in interface HtmlBrowserurl - The target URL.target - The page target - unused.true if opening the page was possible.public logical openWebPage(character url, BaseDataType unused, character target)
openWebPage in interface HtmlBrowserurl - The target URL.unused - The parameter is currently unused.target - The page target - unused.true if opening the page was possible.public void openHTMLString(character html)
openHTMLString in interface HtmlBrowserhtml - The html string.public void openHTMLString(longchar html)
openHTMLString in interface HtmlBrowserhtml - The html string.public BaseDataType[] emitComEvent(java.lang.String eventName, BaseDataType[] args)
emitComEvent in interface EmitsComEventseventName - Event name.args - Event arguments.public logical openWebPage(character url)
openWebPage in interface HtmlBrowserurl - The target URL.true if opening the page was possible.public void print()
print in interface HtmlBrowserpublic void postMessage(character message)
postMessage in interface HtmlBrowsermessage - The string representation of the message.public void postMessage(longchar message)
postMessage in interface HtmlBrowsermessage - The string representation of the message.