public class FrameWidget extends PaneEntity<FrameConfig> implements FrameInterface, TopOnlyInterface, BoxInterface, CommonHandleTree, Down, Hoverable, Labels, TitledElement
WARNING: unlike most of the server-side widget classes, this class intentionally DOES NOT push a modified screen definition to the client when visibility/hidden/down changes occur. Such changes transfer to the client using alternate paths and since these are frequently changed, using the screen definition for such things is not acceptable.
BaseEntity.CharsPixels| Modifier and Type | Field and Description |
|---|---|
private FieldGroup |
background
FIELD-GROUP containing background widgets
|
groupconfig, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccessname, nextSibling, prevSibling, wainstProc, pm| Constructor and Description |
|---|
FrameWidget()
Default constructor which can be used to create a static frame.
|
FrameWidget(boolean dynamic)
Primary constructor.
|
FrameWidget(boolean dynamic,
FrameConfig cfg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected decimal |
_getHeightChars()
Gets the HEIGHT-CHARS writable attribute.
|
protected integer |
_getHeightPixels()
Gets the HEIGHT-PIXELS writable attribute.
|
protected decimal |
_getWidthChars()
Gets the WIDTH-CHARS writable attribute.
|
protected integer |
_getWidthPixels()
Gets the WIDTH-PIXELS writable attribute.
|
protected void |
_setHidden(boolean hidden)
Sets the frame's config
hidden flag. |
protected void |
_setVisible(boolean visible)
Sets the frame's config
visibility flag. |
void |
afterConfigUpdate(FrameConfig beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
protected boolean |
allFramesVisible()
Determine if all frames up the hierarchy are visible.
|
handle |
backgroundIteration()
Get the handle for the BACKGROUND iteration of the frame.
|
decimal |
borderBottomChars()
Get the thickness (in character units) of the border at the bottom of the frame or dialog
box.
|
integer |
borderBottomPixels()
Get the thickness (in pixels) of the border at the bottom of the frame or dialog box.
|
decimal |
borderLeftChars()
Get the thickness (in character units) of the border at the left of the frame or dialog box.
|
integer |
borderLeftPixels()
Get the thickness (in pixels) of the border at the left of the frame or dialog box.
|
decimal |
borderRightChars()
Get the thickness (in character units) of the border at the right of the frame or dialog
box.
|
integer |
borderRightPixels()
Get the thickness (in pixels) of the border at the right of the frame or dialog box.
|
decimal |
borderTopChars()
Get the thickness (in character units) of the border at the top of the frame or dialog box.
|
integer |
borderTopPixels()
Get the thickness (in pixels) of the border at the top of the frame or dialog box.
|
handle |
currentIteration()
Conversion of CURRENT-ITERATION attribute (KW_CUR_ITER) of frame widget.
|
void |
delete()
Perform actual delete of an resource.
|
handle |
firstChild()
Accesses the first widget in the list of contained widgets.
|
FieldGroup |
getBackground()
Get the background field group
|
private double |
getBorderSize(boolean chars,
boolean row,
boolean top)
Get the frame's border size.
|
handle |
getCancelButton()
Gets the cancel button for this frame.
|
decimal |
getColumn()
Gets the COLUMN writable attribute.
|
comhandle |
getComHandle()
Gets the Progress COM-HANDLE attribute.
|
handle |
getDefaultButton()
Get the default button of this frame.
|
integer |
getDown()
Gets the down frame size.
|
handle |
getFrameHandle()
Gets the containing frame instance, as a handle.
|
decimal |
getHeightChars()
Gets the HEIGHT-CHARS writable attribute.
|
integer |
getHeightPixels()
Get rectangle height pixels.
|
handle |
getIteration(int level)
Implements the GET-ITERATION() widget method.
|
java.lang.String |
getMousePointerImpl()
Get the MOUSE-POINTER attribute
|
handle |
getNextTabItem()
Calculates the next widget in the tab order.
|
CommonWidget |
getParent()
Gets the PARENT writable attribute.
|
handle |
getPreviousTabItem()
Calculates the previous widget in the tab order.
|
handle |
getPrevSibling()
Obtains the previous sibling widget in the current field group.
|
decimal |
getRow()
Gets the ROW writable attribute.
|
character |
getScreenValue()
Obtain the current value in the screen buffer of the backing data for
this widget and return it as a
character type. |
protected void |
getSizeAttrs(java.util.List<java.lang.String> names,
java.util.List<java.lang.Object> vals)
Collect the size-related attributes which can be assigned by this widget.
|
integer |
getTabPosition()
Returns the current readable TAB-POSITION widget's attribute within its field-group.
|
character |
getTitle()
Gets the TITLE writable attribute.
|
integer |
getTitleBgColor()
Gets the TITLE-BGCOLOR writable attribute.
|
integer |
getTitleDColor()
Gets the TITLE-DCOLOR writable attribute.
|
integer |
getTitleFgColor()
Gets the TITLE-FGCOLOR writable attribute.
|
integer |
getTitleFont()
Get the TITLE-FONT attribute of this browse column widget.
|
protected java.lang.String[] |
getValidParentTypes()
Returns the widget types that can act as parent for this widget.
|
decimal |
getVirtHeight()
Get VIRTUAL-HEIGHT-CHARS attribute.
|
integer |
getVirtHeightPixels()
Get VIRTUAL-HEIGHT-PIXELS attribute.
|
decimal |
getVirtWidth()
Get VIRTUAL-WIDTH-CHARS attribute.
|
integer |
getVirtWidthPixels()
Get VIRTUAL-WIDTH-PIXELS attribute.
|
decimal |
getWidthChars()
Gets the WIDTH-CHARS writable attribute.
|
integer |
getWidthPixels()
Get rectangle width pixels.
|
integer |
getX()
Gets the X writable attribute.
|
integer |
getY()
Gets the Y writable attribute.
|
ZOrderClass |
getZOrderClass()
Get the Z-Order class of this widget.
|
protected boolean |
hasParent(HandleChain parent)
Check if this resource has as parent the specified resource.
|
void |
hide(boolean noPause)
Hides this frame.
|
protected boolean |
implicitDeletion()
Check if the resource may be implicitly deleted.
|
logical |
isAttrSpace()
Gets the ATTR-SPACE writable attribute.
|
logical |
isBox()
Get the value of the BOX attribute
|
logical |
isCarefulPaint()
Get the CAREFUL-PAINT attribute.
|
logical |
isCentered()
Get the value of the CENTERED attribute which defines if the frame is to be centered in
the width of the parent window.
|
boolean |
isDialogBox()
Gets the dialog box flag.
|
boolean |
isDown()
Return
true if frame is DOWN frame. |
logical |
isLabels()
Gets the LABELS attribute.
|
logical |
isMovable()
Queries if the user is allowed to move this widget using direct manipulation.
|
logical |
isOverlay()
Get the OVERLAY attribute's value.
|
protected boolean |
isRootFrame()
Check if this frame is the root frame (is parented directly to a window).
|
logical |
isScrollable()
Gets the SCROLLABLE writeable attribute.
|
logical |
isSelected()
Gets the SELECTED writable attribute.
|
logical |
isSideLabels()
Get the SIDE-LABELS attribute.
|
logical |
isTopOnly()
Gets the TOP-ONLY attribute's value.
|
handle |
lastChild()
Accesses the last widget in the list of contained widgets.
|
integer |
line()
Get the current iteration number for down frame.
|
protected boolean |
moveToWorker(boolean top)
Worker for the
GenericWidget.moveToTop() and GenericWidget.moveToBottom() code. |
void |
name(character name)
Set NAME attribute.
|
void |
name(java.lang.String name)
Set NAME attribute.
|
private void |
placeFrame()
Place the frame.
|
private void |
resetVirtualSize(SizeAttribute attr)
Resets the virtual size when the frame is not scrollable and size attributes are assigned.
|
protected java.lang.String |
resolveChainType()
Resolve the resource's type, for internal management purposes.
|
protected boolean |
resourceDelete()
Delete the resource.
|
void |
setAttrSpace(boolean space)
Sets the ATTR-SPACE writable attribute.
|
void |
setAttrSpace(logical space)
Sets the ATTR-SPACE writable attribute.
|
void |
setBackground(FieldGroup background)
Set the background field group
|
void |
setBox(boolean value)
Set the value of the BOX attribute
|
void |
setBox(logical value)
Set the value of the BOX attribute
|
void |
setCancelButton(handle cancelButton)
Sets the cancel button for this frame.
|
void |
setCarefulPaint(boolean careful)
Sets the CAREFUL-PAINT attribute.
|
void |
setCarefulPaint(logical careful)
Sets the CAREFUL-PAINT attribute.
|
void |
setCentered(boolean center)
Set the value of the CENTERED attribute which defines if the frame is to be centered in
the width of the parent window.
|
void |
setCentered(logical center)
Set the value of the CENTERED attribute which defines if the frame is to be centered in
the width of the parent window.
|
protected void |
setColumnOrRow(boolean isUnknown,
double value,
boolean row)
Sets the row or column position for this widget.
|
void |
setCurrentIteration(handle newIter)
Set the CURRENT-ITERATION widget handle for this frame.
|
void |
setDefaultButton(handle defaultButton)
Set the default button of this frame.
|
void |
setDialogBox(boolean dialogBox)
Sets the dialog box flag.
|
void |
setDown(int64 down)
Sets the down frame size.
|
void |
setDown(long down)
Sets the down frame size.
|
void |
setFrame(GenericFrame frame)
Sets the containing frame instance.
|
void |
setHeightChars(double height)
Sets the HEIGHT-CHARS writable attribute.
|
void |
setHeightChars(NumberType height)
Sets the HEIGHT-CHARS writable attribute.
|
protected void |
setHeightCharsWorker(double height)
Sets the value for the attribute HEIGHT-CHARS in the associated config instance.
|
protected void |
setHeightImpl(int heightPixels,
SizeAttribute attribute)
Implementation for both
setHeightPixels(int) and setHeightChars(double). |
void |
setHeightPixels(int heightPixels)
Sets new value of HEIGHT-PIXELS attribute.
|
void |
setHeightPixels(NumberType heightPixels)
Sets new value of HEIGHT-PIXELS attribute.
|
protected void |
setHeightPixelsWorker(int height)
Sets the value for the attribute HEIGHT-PIXELS in the associated config instance.
|
void |
setHidden(boolean hidden)
Sets the new value for HIDDEN flag.
|
void |
setId(int id)
Sets the numeric ID of this widget (this is used as an index into the
screen-buffer among other things).
|
protected void |
setInstantiatingProcedure(handle hproc)
Set the instantiating procedure for this resource.
|
void |
setLabels(boolean labels)
Sets the LABELS attribute.
|
void |
setLabels(logical labels)
Sets the LABELS attribute.
|
void |
setMousePointerName(java.lang.String name)
Set the MOUSE-POINTER attribute
|
void |
setMovable(boolean movable)
Defines if the user is allowed to move this widget using direct manipulation.
|
void |
setMovable(logical movable)
Defines if the user is allowed to move this widget using direct manipulation.
|
void |
setNextTabItem(GenericWidget<?> n)
Sets the NEXT-TAB-ITEM writable attribute.
|
void |
setOverlay(boolean overlay)
Sets the OVERLAY option/attribute.
|
void |
setOverlay(logical overlay)
Sets the OVERLAY attribute.
|
void |
setParent(GenericWidget<?> widget)
Sets the PARENT writable attribute.
|
protected void |
setScreenValueInt(character value)
Set the current value in the screen buffer of the backing data for
this widget.
|
void |
setScrollable(boolean scroll)
Sets the SCROLLABLE writeable attribute.
|
void |
setScrollable(logical scroll)
Sets the SCROLLABLE writeable attribute.
|
void |
setSelected(boolean sel)
Sets the SELECTED writable attribute.
|
void |
setSelected(logical sel)
Sets the SELECTED writable attribute.
|
void |
setSideLabels(boolean sideLabels)
Sets the SIDE-LABELS attribute.
|
void |
setSideLabels(logical sideLabels)
Sets the SIDE-LABELS attribute.
|
protected void |
setSizeChars(java.lang.Double value,
SizeAttribute attr)
Sets one of the size char attributes, that is WIDTH-CHARS, HEIGHT-CHARS,
MIN-WIDTH-CHARS, MIN-HEIGHT-CHARS, MAX-WIDTH-CHARS, MAX-HEIGHT-CHARS,
VIRTUAL-WIDTH_CHARS, VIRTUAL-HEIGHT-CHARS.
|
protected void |
setSizePixels(java.lang.Integer value,
SizeAttribute attr)
Sets one of the size pixel attributes, that is WIDTH-PIXELS, HEIGHT-PIXELS,
MIN-WIDTH-PIXELS, MIN-HEIGHT-PIXELS, MAX-WIDTH-PIXELS, MAX-HEIGHT-PIXELS,
VIRTUAL-WIDTH_PIXELS, VIRTUAL-HEIGHT-PIXELS.
|
void |
setTitle(character title)
Sets the TITLE writable attribute.
|
void |
setTitleBgColor(int64 bgcolor)
Sets the TITLE-BGCOLOR writable attribute.
|
void |
setTitleBgColor(long bgcolor)
Sets the TITLE-BGCOLOR writable attribute.
|
void |
setTitleDColor(int64 dcolor)
Sets the TITLE-DCOLOR writable attribute.
|
void |
setTitleDColor(long dcolor)
Sets the TITLE-DCOLOR writable attribute.
|
void |
setTitleFgColor(int64 fgcolor)
Sets the TITLE-FGCOLOR writable attribute.
|
void |
setTitleFgColor(long fgcolor)
Sets the TITLE-FGCOLOR writable attribute.
|
void |
setTitleFont(int64 fontNum)
Set the TITLE-FONT attribute of this browse widget.
|
void |
setTitleFont(long fontNum)
Set the TITLE-FONT attribute of this browse widget.
|
void |
setTopOnly(boolean topOnly)
Sets the TOP-ONLY option/attribute.
|
void |
setTopOnly(logical topOnly)
Sets the TOP-ONLY option/attribute.
|
void |
setVisible(boolean visible)
Sets the Progress VISIBLE attribute.
|
protected void |
setWidthCharsWorker(double width)
Sets the value for the attribute WIDTH-CHARS in the associated config instance.
|
protected void |
setWidthImpl(int widthPixels,
SizeAttribute attribute)
Implementation for both
BaseEntity.setWidthPixels(int) and BaseEntity.setWidthChars(double). |
protected void |
setWidthPixelsWorker(int width)
Sets the value for the attribute WIDTH-PIXELS in the associated config instance.
|
protected void |
setXorY(boolean isUnknown,
int value,
boolean x)
Sets the X or Y position for this widget.
|
java.lang.String |
type()
If this is a dialog-box frame, then its type must be
DIALOG-BOX. |
protected boolean |
useHandleChainSiblings()
Indicates an implementation of siblings methods.
|
logical |
validateFields(boolean enabledOnly)
Processes validation rules (if they exist), error checking and any other constraint
processing that needs to be applied.
|
protected boolean |
validateParent(GenericWidget<?> widget)
Checks whether the supplied widget can be used as a valid parent
of this widget.
|
protected boolean |
validateSize(java.lang.Number value,
SizeAttribute attr)
Performs a validation of widget size value.
|
void |
view()
Views this frame.
|
getGridFactorHorizontal, getGridFactorVertical, getGridUnitHeightChars, getGridUnitHeightPixels, getGridUnitWidthChars, getGridUnitWidthPixels, getHScrollPosition, getNumSelectedWidgets, getVScrollPosition, isBoxSelectable, isDropTarget, isGridSnap, isGridVisible, isResize, isThreeD, setBoxSelectable, setDropTarget, setGridFactorHorizontal, setGridFactorVertical, setGridSnap, setGridUnitHeightChars, setGridUnitHeightPixels, setGridUnitWidthChars, setGridUnitWidthPixels, setGridVisible, setHScrollPosition, setResize, setThreeD, setThreeD, setVirtHeight, setVirtHeightCharsWorker, setVirtHeightPixels, setVirtHeightPixelsWorker, setVirtWidth, setVirtWidthCharsWorker, setVirtWidthPixels, setVirtWidthPixelsWorker, setVScrollPositioncanSetPixelPositionInChui, changeFontWorker, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getNextSibling, getParent, getPfColor, getTooltip, isFontBold, isFontItalic, isFontUnderline, isResizable, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, resetAutoResize, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFont, setFontBold, setFontItalic, setFontName, setFontSize, setFontUnderline, setGroup, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSystemParent, setTabStop, setTabStop, setTitle, setTooltip, setTooltip, setWidthChars, setWidthChars, setWidthPixels, setWidthPixels, setX, setX, setXOrYWorker, setY, setY, validColumnOrRow_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _name, _setDynamic, 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, getDataType, getDbName, getFormat, getFrame, getFrameName, getHeight, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getQuery, getRetainShape, getScreenValue, getSideLabelHandle, getStretchToFit, getTable, getTransparent, getValidationExpression, getValidationMessage, getWidgetId, getWidth, getWindow, hasFormat, hasNameReadOnly, hide, inputValue, isAutoCompletion, isAutoResize, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isModified, isMultiple, isNotEntered, isReadOnly, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, isTextSelected, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTabItem, moveAfterTabItem, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, openPopup, preRealizeCheck, processSideLabel, pushScreenDefinition, pushWidgetAttr, pushWidgetAttr, readOnlyError, readOnlyError, realize, refresh, 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, setConvert3D, setConvert3D, setCursorOffset, setCursorOffset, setDataType, setDataType, setDbname, setDeblank, setDisableAutoZap, setDisableRedraw, setFont, setFormat, setFormat, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setFromOCX, setHeader, setHeight, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabel, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setModified, setModified, setMultiple, setMultiple, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setReadOnly, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValue, setScreenValueNoErrorHandling, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setTransparent, setTransparent, setValidation, setValidation, setVertical, setVisible, setWidgetId, setWidgetId, setWidth, truncatePixelSize, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateLabelAssignment, warningAlreadyRealized, widgetNamefirstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName_instantiatingProcedure, addToPool, doDelete, equals, hashCode, id, id, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, resourceType, toString, unableToAssignUnknown, unknownclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIterationendFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTargetsetBoxSelectable, setGridFactorHorizontal, setGridFactorVertical, setGridSnap, setGridUnitHeightChars, setGridUnitHeightPixels, setGridUnitWidthChars, setGridUnitWidthPixels, setGridVisiblegetIdEx, getListItems, isEditCanUndo, setListItems, setListItems, setScreenValuegetPrivateData, setPrivateData, setPrivateDataresourceTypeid, id, unknownsetDisableRedrawsetReadOnlyallowDeleteprivate FieldGroup background
public FrameWidget()
public FrameWidget(boolean dynamic)
dynamic - Flag indicating if this is a static or dynamic resource.public FrameWidget(boolean dynamic,
FrameConfig cfg)
dynamic - Flag indicating if this is a static or dynamic resource.cfg - The configuration to use. If null the widget will create new default instance.public void setId(int id)
setId in interface CommonWidgetsetId in class GenericWidget<FrameConfig>id - The numeric ID of this widget.public java.lang.String type()
DIALOG-BOX. Otherwise,
its type is FRAME.type in class GenericWidget<FrameConfig>public void name(java.lang.String name)
name in interface Nameablename in class HandleChainname - New value for the attribute.public void name(character name)
name in interface Nameablename in class HandleChainname - New value for the attribute.public handle getPrevSibling()
getPrevSibling in interface CommonHandleChaingetPrevSibling in class BaseEntity<FrameConfig>public void setNextTabItem(GenericWidget<?> n)
setNextTabItem in interface CommonWidgetsetNextTabItem in class GenericWidget<FrameConfig>n - The new value for the NEXT-TAB-ITEM attribute.public character getScreenValue()
character type. If
there is no value in the screen buffer (if it is null
which is the representation for an uninitialized value), then return
the empty string.getScreenValue in interface CommonWidgetgetScreenValue in class GenericWidget<FrameConfig>character type or the empty
string if the screen buffer value is uninitialized.protected void setScreenValueInt(character value)
null then this
widget will be set to the uninitialized value.setScreenValueInt in class GenericWidget<FrameConfig>value - The new value for the widget, use null to set
the value as uninitialized.public logical isCarefulPaint()
isCarefulPaint in interface FrameInterfacetrue if the attribute is ON.public void setCarefulPaint(logical careful)
setCarefulPaint in interface FrameInterfacecareful - true if the attribute is set to ON.public void setCarefulPaint(boolean careful)
setCarefulPaint in interface FrameInterfacecareful - true if the attribute is set to ON.public logical isAttrSpace()
public void setAttrSpace(logical space)
space - The new value for the ATTR-SPACE attribute.public void setAttrSpace(boolean space)
space - The new value for the ATTR-SPACE attribute.public logical isCentered()
isCentered in interface FrameInterfacetrue if the frame is centered.public void setCentered(boolean center)
setCentered in interface FrameInterfacecenter - true if the frame is to be centered.public void setCentered(logical center)
setCentered in interface FrameInterfacecenter - true if the frame is to be centered.public handle getDefaultButton()
getDefaultButton in interface FrameInterfacepublic void setDefaultButton(handle defaultButton)
setDefaultButton in interface FrameInterfacedefaultButton - handle to current default button.public handle getCancelButton()
getCancelButton in interface FrameInterfacepublic void setCancelButton(handle cancelButton)
setCancelButton in interface FrameInterfacecancelButton - button widget that receives the CHOOSE event when a user cancels the current frame
or dialog box by pressing the ESC key.public handle currentIteration()
currentIteration in interface IterableResourcepublic void setCurrentIteration(handle newIter)
setCurrentIteration in interface IterableResourcenewIter - A handle for the current iteration of the frame.public decimal borderTopChars()
borderTopChars in interface FrameInterfacegetBorderSize(boolean, boolean, boolean)public decimal borderLeftChars()
borderLeftChars in interface FrameInterfacegetBorderSize(boolean, boolean, boolean)public decimal borderRightChars()
borderRightChars in interface FrameInterfacegetBorderSize(boolean, boolean, boolean)public decimal borderBottomChars()
borderBottomChars in interface FrameInterfacegetBorderSize(boolean, boolean, boolean)public integer borderTopPixels()
borderTopPixels in interface FrameInterfacegetBorderSize(boolean, boolean, boolean)public integer borderLeftPixels()
borderLeftPixels in interface FrameInterfacegetBorderSize(boolean, boolean, boolean)public integer borderRightPixels()
borderRightPixels in interface FrameInterfacegetBorderSize(boolean, boolean, boolean)public integer borderBottomPixels()
borderBottomPixels in interface FrameInterfacegetBorderSize(boolean, boolean, boolean)public void setDialogBox(boolean dialogBox)
dialogBox - new value for the dialog box flagpublic boolean isDialogBox()
true if this frame is a dialog box.public void setDown(int64 down)
public void setDown(long down)
public integer getDown()
public boolean isDown()
true if frame is DOWN frame.true if frame is DOWN frame.public void setHidden(boolean hidden)
setHidden in interface CommonWidgetsetHidden in class GenericWidget<FrameConfig>hidden - The new boolean value for the HIDDEN attribute.public void setVisible(boolean visible)
setVisible in interface HasVisiblesetVisible in class GenericWidget<FrameConfig>visible - The new value for the Progress VISIBLE attribute.public comhandle getComHandle()
This is a non-functional stub for now.
public void hide(boolean noPause)
This method corresponds to the Progress statement: HIDE FRAME
hide in interface CommonWidgethide in class GenericWidget<FrameConfig>noPause - true causes omission of any pauses which would
be necessary otherwise.public void view()
This method corresponds to the Progress statement: VIEW FRAME
view in interface CommonWidgetview in class GenericWidget<FrameConfig>public logical isSelected()
isSelected in interface CommonWidgetisSelected in class BaseEntity<FrameConfig>public void setSelected(logical sel)
setSelected in interface CommonWidgetsetSelected in class BaseEntity<FrameConfig>sel - The new value for the SELECTED attribute.public void setSelected(boolean sel)
setSelected in interface CommonWidgetsetSelected in class BaseEntity<FrameConfig>sel - The new value for the SELECTED attribute.public void setSideLabels(boolean sideLabels)
setSideLabels in interface FrameInterfacesideLabels - true if the attribute is set to ON.public void setSideLabels(logical sideLabels)
setSideLabels in interface FrameInterfacesideLabels - true if the attribute is set to ON.public logical isSideLabels()
isSideLabels in interface FrameInterfacetrue if the attribute is ON.public logical isLabels()
public void setLabels(logical labels)
public void setLabels(boolean labels)
public logical isMovable()
isMovable in interface CommonWidgetisMovable in class BaseEntity<FrameConfig>true, the widget is movable via direct manipulation.public void setMovable(boolean movable)
setMovable in interface CommonWidgetsetMovable in class BaseEntity<FrameConfig>movable - true to enable movable direct manipulation.public void setMovable(logical movable)
setMovable in interface CommonWidgetsetMovable in class BaseEntity<FrameConfig>movable - true to enable movable direct manipulation.public logical isScrollable()
isScrollable in interface CommonWidgetisScrollable in class GenericWidget<FrameConfig>public void setScrollable(logical scroll)
setScrollable in interface CommonWidgetsetScrollable in class GenericWidget<FrameConfig>scroll - The new value for the SCROLLABLE attribute.public void setScrollable(boolean scroll)
setScrollable in interface CommonWidgetsetScrollable in class GenericWidget<FrameConfig>scroll - The new value for the SCROLLABLE attribute.public handle firstChild()
firstChild in interface CommonHandleTreenull if no widgets are contained.public handle lastChild()
lastChild in interface CommonHandleTreenull if no widgets are contained.public void setFrame(GenericFrame frame)
setFrame in interface CommonWidgetsetFrame in class GenericWidget<FrameConfig>frame - The containing instance.public handle getNextTabItem()
getNextTabItem in interface CommonWidgetgetNextTabItem in class GenericWidget<FrameConfig>public handle getPreviousTabItem()
getPreviousTabItem in interface CommonWidgetgetPreviousTabItem in class GenericWidget<FrameConfig>protected boolean useHandleChainSiblings()
useHandleChainSiblings in class BaseEntity<FrameConfig>true.public logical isBox()
isBox in interface BoxInterfacepublic void setBox(logical value)
setBox in interface BoxInterfacevalue - the new value of the attributepublic void setBox(boolean value)
setBox in interface BoxInterfacevalue - the new value of the attributepublic void setTopOnly(boolean topOnly)
setTopOnly in interface TopOnlyInterfacetopOnly - true if the option/attribute is set to ON.public void setTopOnly(logical topOnly)
setTopOnly in interface TopOnlyInterfacetopOnly - true if the attribute is set to ON.public logical isTopOnly()
isTopOnly in interface TopOnlyInterfacepublic void setOverlay(boolean overlay)
setOverlay in interface FrameInterfaceoverlay - true if the option/attribute is set to ON.public void setOverlay(logical overlay)
setOverlay in interface FrameInterfaceoverlay - true if the attribute is set to ON.public logical isOverlay()
isOverlay in interface FrameInterfacepublic void setBackground(FieldGroup background)
background - background fieldgrouppublic FieldGroup getBackground()
public handle backgroundIteration()
backgroundIteration in interface FrameInterfacepublic logical validateFields(boolean enabledOnly)
validateFields in class GenericWidget<FrameConfig>enabledOnly - If true, VALIDATE will
check enabled fields only. Otherwise, the VALIDATE method validates all fields,
whether enabled or not.true if the validation is successful.public void setMousePointerName(java.lang.String name)
setMousePointerName in interface Hoverablename - the attribute valuepublic java.lang.String getMousePointerImpl()
getMousePointerImpl in interface Hoverablepublic void setParent(GenericWidget<?> widget)
setParent in interface CommonWidgetsetParent in class BaseEntity<FrameConfig>widget - The new value for the PARENT attribute.protected boolean implicitDeletion()
implicitDeletion in class GenericWidget<FrameConfig>true if the INSTANTIATING-PROCEDURE attribute is unknown (i.e. the
instantiating procedure has been deleted).public CommonWidget getParent()
For FRAMEs, this is either the containing WINDOW or the parent FIELD-GROUP, if attached to a frame.
getParent in interface CommonWidgetgetParent in class BaseEntity<FrameConfig>protected boolean hasParent(HandleChain parent)
hasParent in class GenericWidget<FrameConfig>parent - The parent for which the first child is needed. If null, the first
resource with no parent set is returned.true if the parent is null or if the parent has the ID
as set in BaseConfig.parentId.public handle getFrameHandle()
getFrameHandle in interface CommonWidgetgetFrameHandle in class GenericWidget<FrameConfig>protected boolean isRootFrame()
protected boolean allFramesVisible()
true if all frame's ascendants are visible.public void afterConfigUpdate(FrameConfig beforeUpdate)
afterConfigUpdate in interface ConfigOwner<FrameConfig>afterConfigUpdate in class GenericWidget<FrameConfig>beforeUpdate - Config reference capturing the config state before
the owner's config was modified.public void delete()
delete in interface Deletabledelete in class GenericWidget<FrameConfig>public decimal getWidthChars()
getWidthChars in interface SizeablegetWidthChars in class BaseEntity<FrameConfig>public decimal getHeightChars()
getHeightChars in interface SizeablegetHeightChars in class BaseEntity<FrameConfig>public void setHeightChars(NumberType height)
setHeightChars in interface SizeablesetHeightChars in class BaseEntity<FrameConfig>height - The new value for the HEIGHT-CHARS attribute.public void setHeightChars(double height)
setHeightChars in interface SizeablesetHeightChars in class BaseEntity<FrameConfig>height - The new value for the HEIGHT-CHARS attribute.public integer getWidthPixels()
getWidthPixels in interface SizeablegetWidthPixels in class BaseEntity<FrameConfig>public integer getHeightPixels()
getHeightPixels in interface SizeablegetHeightPixels in class BaseEntity<FrameConfig>public void setHeightPixels(NumberType heightPixels)
setHeightPixels in interface SizeablesetHeightPixels in class BaseEntity<FrameConfig>heightPixels - new value of HEIGHT-PIXELS attributepublic void setHeightPixels(int heightPixels)
setHeightPixels in interface SizeablesetHeightPixels in class BaseEntity<FrameConfig>heightPixels - new value of HEIGHT-PIXELS attributepublic decimal getVirtWidth()
getVirtWidth in interface CommonWidgetgetVirtWidth in class PaneEntity<FrameConfig>public decimal getVirtHeight()
getVirtHeight in interface CommonWidgetgetVirtHeight in class PaneEntity<FrameConfig>public integer getVirtWidthPixels()
getVirtWidthPixels in interface CommonWidgetgetVirtWidthPixels in class PaneEntity<FrameConfig>public integer getVirtHeightPixels()
getVirtHeightPixels in interface CommonWidgetgetVirtHeightPixels in class PaneEntity<FrameConfig>public decimal getRow()
getRow in interface CoordinatesgetRow in class BaseEntity<FrameConfig>public decimal getColumn()
getColumn in interface CoordinatesgetColumn in class BaseEntity<FrameConfig>public integer getX()
getX in interface CoordinatesgetX in class BaseEntity<FrameConfig>public integer getY()
getY in interface CoordinatesgetY in class BaseEntity<FrameConfig>public ZOrderClass getZOrderClass()
getZOrderClass in class GenericWidget<FrameConfig>public void setTitle(character title)
setTitle in interface CommonWidgetsetTitle in class BaseEntity<FrameConfig>title - The new value for the TITLE attribute.public character getTitle()
getTitle in interface CommonWidgetgetTitle in class BaseEntity<FrameConfig>public integer getTitleBgColor()
getTitleBgColor in interface TitledElementpublic void setTitleBgColor(int64 bgcolor)
setTitleBgColor in interface TitledElementbgcolor - The new value for the TITLE-BGCOLOR attribute.public void setTitleBgColor(long bgcolor)
setTitleBgColor in interface TitledElementbgcolor - The new value for the TITLE-BGCOLOR attribute.public integer getTitleDColor()
getTitleDColor in interface TitledElementpublic void setTitleDColor(int64 dcolor)
setTitleDColor in interface TitledElementdcolor - The new value for the TITLE-DCOLOR attribute.public void setTitleDColor(long dcolor)
setTitleDColor in interface TitledElementdcolor - The new value for the TITLE-DCOLOR attribute.public integer getTitleFgColor()
getTitleFgColor in interface TitledElementpublic void setTitleFgColor(int64 fgcolor)
setTitleFgColor in interface TitledElementfgcolor - The new value for the TITLE-FGCOLOR attribute.public void setTitleFgColor(long fgcolor)
setTitleFgColor in interface TitledElementfgcolor - The new value for the TITLE-FGCOLOR attribute.public integer getTitleFont()
getTitleFont in interface CommonWidgetgetTitleFont in interface TitledElementgetTitleFont in class GenericWidget<FrameConfig>public void setTitleFont(int64 fontNum)
setTitleFont in interface CommonWidgetsetTitleFont in interface TitledElementsetTitleFont in class GenericWidget<FrameConfig>fontNum - An entry in the font-table or unknown to refer the default font.public void setTitleFont(long fontNum)
setTitleFont in interface CommonWidgetsetTitleFont in interface TitledElementsetTitleFont in class GenericWidget<FrameConfig>fontNum - An entry in the font-table or unknown to refer the default font.public integer getTabPosition()
getTabPosition in interface CommonWidgetgetTabPosition in class GenericWidget<FrameConfig>public integer line()
line in interface FrameInterfacepublic handle getIteration(int level)
getIteration in interface IterableResourcelevel - The level of the iteration to get.protected java.lang.String resolveChainType()
For DIALOG-BOX and FRAME, FRAME is returned, as these are linked in the same chain.
resolveChainType in class HandleChainprotected boolean resourceDelete()
resourceDelete in class GenericWidget<FrameConfig>true if the resource was deleted.protected void setInstantiatingProcedure(handle hproc)
This will set the instantiating procedure only if is not shared or this is the procedure where the frame is registered as shared.
setInstantiatingProcedure in class HandleResourcehproc - The procedure where the resource was instantiated.protected java.lang.String[] getValidParentTypes()
getValidParentTypes in class BaseEntity<FrameConfig>protected boolean moveToWorker(boolean top)
GenericWidget.moveToTop() and GenericWidget.moveToBottom() code.moveToWorker in class GenericWidget<FrameConfig>top - true if moving to top, false for bottom.true if move succeeded.protected void _setVisible(boolean visible)
visibility flag._setVisible in class GenericWidget<FrameConfig>visible - The frame's visibility state.protected void _setHidden(boolean hidden)
hidden flag.hidden - The frame's hidden state.protected boolean validateParent(GenericWidget<?> widget)
validateParent in class BaseEntity<FrameConfig>widget - The widget reference to check.true if the supplied widget can be used
as a valid parent, false otherwise.protected boolean validateSize(java.lang.Number value,
SizeAttribute attr)
validateSize in class BaseEntity<FrameConfig>value - The input value to validate.attr - Denotes the kind of size attribute.true when valid, false otherwiseprotected void setSizeChars(java.lang.Double value,
SizeAttribute attr)
setSizeChars in class BaseEntity<FrameConfig>value - The attribute value. null denotes an unknown attribute value.attr - The attribute being set.protected void setWidthImpl(int widthPixels,
SizeAttribute attribute)
BaseEntity.setWidthPixels(int) and BaseEntity.setWidthChars(double).setWidthImpl in class BaseEntity<FrameConfig>widthPixels - the new widget width in pixels, must be positiveattribute - attribute for reporting purposesprotected void setHeightImpl(int heightPixels,
SizeAttribute attribute)
setHeightPixels(int) and setHeightChars(double).setHeightImpl in class BaseEntity<FrameConfig>heightPixels - the new widget height in pixels, must be positiveattribute - attribute for reporting purposesprotected void setSizePixels(java.lang.Integer value,
SizeAttribute attr)
setSizePixels in class BaseEntity<FrameConfig>value - The attribute value. null denotes an unknown attribute value.attr - The attribute being set.protected void setWidthCharsWorker(double width)
setWidthCharsWorker in class BaseEntity<FrameConfig>width - Valid width value.protected void setHeightCharsWorker(double height)
setHeightCharsWorker in class BaseEntity<FrameConfig>height - Valid height value.protected void setWidthPixelsWorker(int width)
setWidthPixelsWorker in class BaseEntity<FrameConfig>width - Valid width value.protected void setHeightPixelsWorker(int height)
setHeightPixelsWorker in class BaseEntity<FrameConfig>height - Valid height value.protected void getSizeAttrs(java.util.List<java.lang.String> names,
java.util.List<java.lang.Object> vals)
getSizeAttrs in class PaneEntity<FrameConfig>names - The collection where to add the field names.vals - The collection where to add the field values.protected void setColumnOrRow(boolean isUnknown,
double value,
boolean row)
setColumnOrRow in class BaseEntity<FrameConfig>isUnknown - If true the attribute value being set is an unknown value.value - The 1-based row or column number.row - If true value represents a row number, otherwise
a column number.protected void setXorY(boolean isUnknown,
int value,
boolean x)
setXorY in class BaseEntity<FrameConfig>isUnknown - If true the attribute value being set is an unknown value.value - The X or Y position value.x - If true value represents an X position, otherwise
a Y position.protected decimal _getHeightChars()
_getHeightChars in class BaseEntity<FrameConfig>protected integer _getHeightPixels()
_getHeightPixels in class BaseEntity<FrameConfig>protected integer _getWidthPixels()
_getWidthPixels in class BaseEntity<FrameConfig>protected decimal _getWidthChars()
_getWidthChars in class BaseEntity<FrameConfig>private double getBorderSize(boolean chars,
boolean row,
boolean top)
If NO-BOX option is used at a non-dialog frame, then this method returns 0.
In ChUI, for any kind of frame (dialog, titled, non-titled), it returns 1 for character units and 8 for pixel units, for any border. Note that NO-BOX is ignored for dialog frames.
In GUI, for non-dialog non-titled frames or left/right/bottom borders for titled frames, the reference is 1 pixel (for any border) which is converted to character units, using the PIXELS-PER-ROW (for top/bottom border) or PIXELS-PER-COlUMN (for left/right border). Note that this border is not dependent on Windows OS appearance settings.
In GUI, for dialog frames, the left/right/bottom border have a reference of 5 units (these can not be changed in Windows OS).
Finally, the top border for titled or dialog frames is managed explicitly in
borderTopChars() and borderTopPixels().
chars - When true, character units are returned; else, pixel units.row - When true, it means size for the top/bottom border is returned; else,
the size of the left/right border is returned.top - Flag indicating this is the top border.private void placeFrame()
private void resetVirtualSize(SizeAttribute attr)
attr - The information about the attribute being assigned.