public class WindowWidget extends PaneEntity<WindowConfig> implements CommonWindow, CommonHandleTree, TopOnlyInterface, Hoverable, MinHeightCharsInterface
The window widget differs from all the other widgets also in this: it is the only widget that is not contained in a frame, but rather contains frames (and other top-level components) itself.
BaseEntity.CharsPixels| Modifier and Type | Field and Description |
|---|---|
private MenuWidget |
menubar
MenuWidget handle owned by this window
|
groupconfig, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccessname, nextSibling, prevSibling, wainstProc, pmWINDOW_STATE_DELAYED_MINIMIZE, WINDOW_STATE_MAXIMIZED, WINDOW_STATE_MINIMIZED, WINDOW_STATE_NORMAL| Constructor and Description |
|---|
WindowWidget(boolean dynamic)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_setVisible(boolean visible)
Sets the window's config
visibility flag. |
void |
afterConfigUpdate(WindowConfig beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
GenericWidget<?> |
asWidget()
Return reference to
WindowWidget as reference to
GenericWidget. |
protected boolean |
canPushWidgetAttr()
Returns true if the configuration can be pushed to the client-side.
|
protected boolean |
canSetPixelPositionInChui()
The method returns
false always - windows can't be positioned via pixel in Chui. |
void |
delete()
Perform actual delete of an resource.
|
void |
detachMenu(MenuWidget menu)
Detach the specified popup-menu or menubar from this widget.
|
handle |
firstChild()
Accesses the first window in the list of contained windows, having this window as parent.
|
decimal |
getFullHeightChars()
Gets the FULL-HEIGHT-CHARS writable attribute.
|
integer |
getFullHeightPixels()
Gets the FULL-HEIGHT-PIXELS writable attribute.
|
decimal |
getFullWidthChars()
Gets the FULL-WIDTH-CHARS writable attribute.
|
integer |
getFullWidthPixels()
Gets the FULL-WIDTH-PIXELS writable attribute.
|
character |
getIcon()
Get icon file name previously loaded by
loadIcon(character). |
decimal |
getMaxHeight()
Get window maximal height.
|
decimal |
getMaxHeightChars()
Gets the MAX-HEIGHT-CHARS writable attribute.
|
integer |
getMaxHeightPixels()
Gets the MAX-HEIGHT-PIXELS writable attribute.
|
decimal |
getMaxWidth()
Get window maximal width.
|
decimal |
getMaxWidthChars()
Gets the MAX-WIDTH-CHARS writable attribute.
|
integer |
getMaxWidthPixels()
Gets the MAX-WIDTH-PIXELS writable attribute.
|
handle |
getMenubar()
Get window MENUBAR.
|
int64 |
getMessageAreaFont()
Get the message-area's font.
|
decimal |
getMinHeightChars()
Gets the MIN-HEIGHT-CHARS writable attribute.
|
integer |
getMinHeightPixels()
Gets the MIN-HEIGHT-PIXELS writable attribute.
|
decimal |
getMinWidthChars()
Gets the MIN-WIDTH-CHARS writable attribute.
|
integer |
getMinWidthPixels()
Gets the MIN-WIDTH-PIXELS writable attribute.
|
java.lang.String |
getMousePointerImpl()
Get the MOUSE-POINTER attribute
|
handle |
getNextSibling()
Obtains the next sibling widget in the current field group.
|
decimal |
getScreenLines()
Gets the SCREEN-LINES readable 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. |
int64 |
getStatusAreaFont()
Get the status-area's font.
|
protected java.lang.String[] |
getValidParentTypes()
Returns the widget types that can act as parent for this widget.
|
handle |
getWindow()
Gets the WINDOW attribute.
|
integer |
getWindowHeightPixels()
Returns outer window height, including all decorations.
|
int64 |
getWindowState()
Gets the WINDOW-STATE attribute.
|
integer |
getWindowWidthPixels()
Returns outer window width, including all decorations.
|
void |
hide()
For windows, performing a HIDe is the same as setting the VISIBLE attribute to false.
|
logical |
isAlwaysOnTop()
Gets the ALWAYS-ON-TOP attribute's value.
|
protected boolean |
isChained()
Check if this resource can be reported as chained.
|
logical |
isControlBox()
Gets the CONTROL-BOX attribute's value.
|
logical |
isKeepFrameZOrder()
Gets the KEEP-FRAME-Z-ORDER writable attribute.
|
logical |
isKeepZOrder()
Check if window has KEEP-Z-ORDER option set.
|
logical |
isMaxButton()
Gets the MAX-BUTTON attribute.
|
logical |
isMessageArea()
Check if window has message area.
|
logical |
isMinButton()
Gets the MIN-BUTTON attribute.
|
logical |
isScrollBars()
Check if window has scrollbars.
|
logical |
isShowInTaskbar()
Gets the SHOW-IN-TASKBAR attribute.
|
logical |
isSmallTitle()
Gets the SMALL-TITLE attribute's value.
|
logical |
isStatusArea()
Check if window has status area.
|
logical |
isTopOnly()
Gets the TOP-ONLY attribute's value.
|
handle |
lastChild()
Accesses the last window in the list of contained windows, having this window as parent.
|
logical |
loadIcon(character iconPath)
Load icon for window.
|
logical |
loadIcon(java.lang.String searchPath)
Load icon for window.
|
private boolean |
loadIconInt(java.lang.String iconSrc,
boolean small)
Load icon for window.
|
logical |
loadSmallIcon(character iconPath)
Load small icon(16x16) for window.
|
logical |
loadSmallIcon(java.lang.String searchPath)
Load small icon(16x16) for window.
|
logical |
moveToBottom()
This method implements MOVE-TO-BOTTOM function.
|
logical |
moveToTop()
This method implements MOVE-TO-TOP function.
|
protected void |
pushScreenDefinition()
Push this window definition.
|
protected void |
pushSizeAttrs()
Push all the size-related attributes to the client-size.
|
void |
pushWidgetAttr(java.lang.String[] fnames,
java.lang.Object[] values)
Push the specified widget attribute changes to the client-side.
|
void |
pushWidgetAttr(java.lang.String fname,
java.lang.Object value)
Push the specified widget attribute changes to the client-side.
|
protected boolean |
resourceDelete()
Delete the resource.
|
void |
setAlwaysOnTop(boolean value)
Sets the ALWAYS-ON-TOP attribute.
|
void |
setBgColor()
Set (default) background color.
|
void |
setControlBox(boolean value)
Sets the CONTROL-BOX attribute.
|
void |
setFgColor()
Set (default) foreground color.
|
protected void |
setHeightCharsWorker(double height)
Sets the value for the attribute HEIGHT-CHARS in the associated config instance.
|
protected void |
setHeightPixelsWorker(int height)
Sets the value for the attribute HEIGHT-PIXELS in the associated config instance.
|
void |
setHidden(boolean hidden)
Sets the HIDDEN writable attribute.
|
void |
setKeepFrameZOrder(boolean keep)
Sets the KEEP-FRAME-Z-ORDER writable attribute.
|
void |
setKeepFrameZOrder(logical keep)
Sets the KEEP-FRAME-Z-ORDER writable attribute.
|
void |
setKeepZOrder(logical keepFrameZOrder)
Enable/disable KEEP-Z-ORDER option.
|
void |
setMaxButton(boolean value)
Sets the MAX-BUTTON attribute.
|
void |
setMaxHeight(NumberType maxHeight)
Set maximal height.
|
void |
setMaxHeightChars(double max)
Sets the MAX-HEIGHT-CHARS writable attribute.
|
void |
setMaxHeightChars(NumberType max)
Sets the MAX-HEIGHT-CHARS writable attribute.
|
protected void |
setMaxHeightCharsWorker(double height)
Sets the value for the attribute MAX-HEIGHT-CHARS.
|
void |
setMaxHeightPixels(integer max)
Sets the MAX-HEIGHT-PIXELS writable attribute.
|
protected void |
setMaxHeightPixelsWorker(int height)
Sets the value for the attribute MAX-HEIGHT-PIXELS.
|
void |
setMaxWidth(NumberType maxWidth)
Set maximal width.
|
void |
setMaxWidthChars(double max)
Sets the MAX-WIDTH-CHARS writable attribute.
|
void |
setMaxWidthChars(NumberType max)
Sets the MAX-WIDTH-CHARS writable attribute.
|
protected void |
setMaxWidthCharsWorker(double width)
Sets the value for the attribute MAX-WIDTH-CHARS.
|
void |
setMaxWidthPixels(integer max)
Sets the MAX-WIDTH-PIXELS writable attribute.
|
protected void |
setMaxWidthPixelsWorker(int width)
Sets the value for the attribute MAX-WIDTH-PIXELS.
|
void |
setMenubar(handle menubar)
Set window MENUBAR.
|
void |
setMenubar(MenuWidget menubar)
Set window MENUBAR.
|
void |
setMessageArea(logical messageArea)
Enable/disable displaying of message area.
|
void |
setMessageAreaFont(int64 fontNum)
Set the message-area's font.
|
void |
setMessageAreaFont(long fontNum)
Set the message-area's font.
|
void |
setMinButton(boolean value)
Sets the MIN-BUTTON attribute.
|
void |
setMinHeightChars(NumberType min)
Sets the MIN-HEIGHT-CHARS writable attribute.
|
protected void |
setMinHeightCharsWorker(double height)
Sets the value for the attribute MIN-HEIGHT-CHARS.
|
void |
setMinHeightPixels(integer min)
Sets the MIN-HEIGHT-PIXELS writable attribute.
|
protected void |
setMinHeightPixelsWorker(int height)
Sets the value for the attribute MIN-HEIGHT-PIXELS.
|
void |
setMinWidthChars(NumberType min)
Sets the MIN-WIDTH-CHARS writable attribute.
|
protected void |
setMinWidthCharsWorker(double width)
Sets the value for the attribute MIN-WIDTH-CHARS.
|
void |
setMinWidthPixels(integer min)
Sets the MIN-WIDTH-CHARS writable attribute.
|
protected void |
setMinWidthPixelsWorker(int width)
Sets the value for the attribute MIN-WIDTH-PIXELS.
|
void |
setMousePointerName(java.lang.String name)
Set the MOUSE-POINTER attribute
|
void |
setScrollBars(logical scrollBars)
Enable/disable displaying of scrollbars.
|
void |
setSensitive(boolean s)
Sets new value of SENSITIVE attribute.
|
void |
setShowInTaskbar(boolean value)
Sets the SHOW-IN-TASKBAR attribute.
|
void |
setSmallTitle(boolean value)
Sets the SMALL-TITLE attribute.
|
void |
setStatusArea(logical statusArea)
Enable/disable displaying of status area.
|
void |
setStatusAreaFont(int64 fontNum)
Set the status-area's font.
|
void |
setStatusAreaFont(long fontNum)
Set the status-area's font.
|
void |
setTitle(java.lang.String title)
Sets the TITLE writable attribute and pushes the config to the client-side.
|
void |
setTopOnly(boolean topOnly)
Sets the TOP-ONLY option/attribute.
|
void |
setTopOnly(logical topOnly)
Sets the TOP-ONLY option/attribute.
|
protected void |
setVirtHeightCharsWorker(double height)
Sets the value for the attribute VIRTUAL-HEIGHT-CHARS.
|
protected void |
setVirtHeightPixelsWorker(int height)
Sets the value for the attribute VIRTUAL-HEIGHT-PIXELS.
|
protected void |
setVirtWidthCharsWorker(double width)
Sets the value for the attribute VIRTUAL-WIDTH-CHARS.
|
protected void |
setVirtWidthPixelsWorker(int width)
Sets the value for the attribute VIRTUAL-WIDTH-PIXELS.
|
void |
setVisible(boolean visible)
Set the VISIBLE writable attribute.
|
protected void |
setWidthCharsWorker(double width)
Sets the value for the attribute WIDTH-CHARS in the associated config instance.
|
protected void |
setWidthPixelsWorker(int width)
Sets the value for the attribute WIDTH-PIXELS in the associated config instance.
|
void |
setWindowState(int64 state)
Sets the WINDOW-STATE attribute.
|
void |
setWindowState(long state)
Sets the WINDOW-STATE attribute.
|
protected int |
truncatePixelSize(int size,
SizeAttribute attr)
In 4GL the widget size (WIDTH/HEIGHT-PIXELS) can be set larger
than the maximum X/Y values.
|
private void |
updateMinMaxSize()
The method updates min/max size config fields and should be called after
window size is changed.
|
protected boolean |
useHandleChainSiblings()
Indicates an implementation of siblings methods.
|
boolean |
valid()
Reports if this widget object is valid for use.
|
protected boolean |
validateSize(java.lang.Number value,
SizeAttribute attr)
Performs a validation of widget size value.
|
void |
view()
For windows, performing a VIEW is the same as setting the VISIBLE attribute to true.
|
getGridFactorHorizontal, getGridFactorVertical, getGridUnitHeightChars, getGridUnitHeightPixels, getGridUnitWidthChars, getGridUnitWidthPixels, getHScrollPosition, getNumSelectedWidgets, getSizeAttrs, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getVScrollPosition, isBoxSelectable, isDropTarget, isGridSnap, isGridVisible, isResize, isThreeD, setBoxSelectable, setDropTarget, setGridFactorHorizontal, setGridFactorVertical, setGridSnap, setGridUnitHeightChars, setGridUnitHeightPixels, setGridUnitWidthChars, setGridUnitWidthPixels, setGridVisible, setHScrollPosition, setResize, setThreeD, setThreeD, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVScrollPosition_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, changeFontWorker, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getParent, getParent, getPfColor, getPrevSibling, getRow, getTitle, getTooltip, getWidthChars, getWidthPixels, getX, getY, isFontBold, isFontItalic, isFontUnderline, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, 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, setHeightImpl, setHeightPixels, setHeightPixels, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setSystemParent, setTabStop, setTabStop, setTitle, setTooltip, setTooltip, setWidthChars, setWidthChars, setWidthImpl, setWidthPixels, setWidthPixels, setX, setX, setXorY, setXOrYWorker, setY, setY, validateParent, validColumnOrRow_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _name, _setDynamic, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, cleanup, colorDisplay, colorPrompt, config, deselectRows, 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, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNextTabItem, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getPreviousTabItem, getQuery, getRetainShape, getScreenValue, getSideLabelHandle, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getWidgetId, getWidth, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, implicitDeletion, inputValue, isAutoCompletion, isAutoResize, isAutoReturn, isChecked, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isManualHighlight, isModified, isMultiple, isNotEntered, isReadOnly, isScrollable, 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, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, openPopup, preRealizeCheck, processSideLabel, 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, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setFromOCX, setHeader, setHeight, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setId, 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, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValue, setScreenValueInt, setScreenValueNoErrorHandling, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVertical, setVisible, setWidgetId, setWidgetId, setWidth, type, underline, underline, validate, validateFields, validateFields, validateFields, validateFields, validateLabelAssignment, 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, waitisResize, setAlwaysOnTop, setControlBox, setMaxButton, setMinButton, setResize, setShowInTaskbar, setSmallTitleendFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTargetsetBoxSelectable, setGridFactorHorizontal, setGridFactorVertical, setGridSnap, setGridUnitHeightChars, setGridUnitHeightPixels, setGridUnitWidthChars, setGridUnitWidthPixels, setGridVisiblegetIdEx, getListItems, isEditCanUndo, setListItems, setListItems, setScreenValuegetPrivateData, setPrivateData, setPrivateDataresourceTypeid, id, unknownsetDisableRedrawsetReadOnlyallowDeleteprivate MenuWidget menubar
WindowWidget(boolean dynamic)
dynamic - Flag indicating if this is a static or dynamic resource.public boolean valid()
valid in interface CommonWidgetvalid in interface WrappedResourcevalid in class GenericWidget<WindowConfig>GenericWidget.deleted flag.public logical isKeepFrameZOrder()
isKeepFrameZOrder in interface CommonWidgetisKeepFrameZOrder in interface CommonWindowisKeepFrameZOrder in class GenericWidget<WindowConfig>public void setKeepFrameZOrder(logical keep)
setKeepFrameZOrder in interface CommonWidgetsetKeepFrameZOrder in interface CommonWindowsetKeepFrameZOrder in class GenericWidget<WindowConfig>keep - The new value for the KEEP-FRAME-Z-ORDER attribute.public void setKeepFrameZOrder(boolean keep)
setKeepFrameZOrder in interface CommonWidgetsetKeepFrameZOrder in interface CommonWindowsetKeepFrameZOrder in class GenericWidget<WindowConfig>keep - The new value for the KEEP-FRAME-Z-ORDER attribute.public decimal getFullHeightChars()
getFullHeightChars in interface CommonWindowpublic integer getFullHeightPixels()
getFullHeightPixels in interface CommonWindowpublic decimal getFullWidthChars()
getFullWidthChars in interface CommonWindowpublic integer getFullWidthPixels()
getFullWidthPixels in interface CommonWindowpublic decimal getMaxHeightChars()
getMaxHeightChars in interface CommonWidgetgetMaxHeightChars in interface CommonWindowgetMaxHeightChars in class GenericWidget<WindowConfig>public void setMaxHeightChars(NumberType max)
setMaxHeightChars in interface CommonWindowmax - The new value for the MAX-HEIGHT-CHARS attribute.public void setMaxHeightChars(double max)
max - The new value for the MAX-HEIGHT-CHARS attribute.public decimal getMaxWidthChars()
getMaxWidthChars in interface CommonWidgetgetMaxWidthChars in interface CommonWindowgetMaxWidthChars in class GenericWidget<WindowConfig>public void setMaxWidthChars(NumberType max)
setMaxWidthChars in interface CommonWindowmax - The new value for the MAX-WIDTH-CHARS attribute.public void setMaxWidthChars(double max)
max - The new value for the MAX-WIDTH-CHARS attribute.public void setMaxHeight(NumberType maxHeight)
setMaxHeight in interface CommonWindowmaxHeight - New option value.public void setMaxWidth(NumberType maxWidth)
setMaxWidth in interface CommonWindowmaxWidth - New option value.public decimal getMinHeightChars()
getMinHeightChars in interface MinHeightCharsInterfacepublic decimal getMinWidthChars()
getMinWidthChars in interface CommonWindowpublic void setMinHeightChars(NumberType min)
setMinHeightChars in interface MinHeightCharsInterfacemin - The new value for the MIN-HEIGHT-CHARS attribute.public void setMinWidthChars(NumberType min)
setMinWidthChars in interface CommonWindowmin - The new value for the MIN-WIDTH-CHARS attribute.public integer getMinHeightPixels()
getMinHeightPixels in interface CommonWindowpublic integer getMinWidthPixels()
getMinWidthPixels in interface CommonWindowpublic void setMinHeightPixels(integer min)
setMinHeightPixels in interface CommonWindowmin - The new value for the MIN-HEIGHT-PIXELS attribute.public void setMinWidthPixels(integer min)
setMinWidthPixels in interface CommonWindowmin - The new value for the MIN-WIDTH-CHARS attribute.public void setScrollBars(logical scrollBars)
setScrollBars in interface CommonWindowscrollBars - New option value.public void setStatusArea(logical statusArea)
setStatusArea in interface CommonWindowstatusArea - New option value.public void setTitle(java.lang.String title)
setTitle in interface CommonWidgetsetTitle in class BaseEntity<WindowConfig>title - The new value for the TITLE attribute.public void setSensitive(boolean s)
setSensitive in interface SensitivesetSensitive in class GenericWidget<WindowConfig>s - new value of SENSITIVE attributepublic void setBgColor()
public void setFgColor()
public void setKeepZOrder(logical keepFrameZOrder)
setKeepZOrder in interface CommonWindowkeepFrameZOrder - New flag value.public void setMessageArea(logical messageArea)
setMessageArea in interface CommonWindowmessageArea - New flag value.public decimal getMaxHeight()
getMaxHeight in interface CommonWindowpublic decimal getMaxWidth()
getMaxWidth in interface CommonWindowpublic logical isScrollBars()
isScrollBars in interface CommonWindowtrue if window has scrollbars.public logical isStatusArea()
isStatusArea in interface CommonWindowtrue if window has status area.public logical isKeepZOrder()
isKeepZOrder in interface CommonWindowtrue if window has KEEP-Z-ORDER option set.public logical isMessageArea()
isMessageArea in interface CommonWindowtrue if window has message area.public character getIcon()
loadIcon(character).getIcon in interface CommonWindowpublic logical loadIcon(character iconPath)
loadIcon in interface CommonWindowiconPath - Icon file name.true if operation was successful.public logical loadIcon(java.lang.String searchPath)
loadIcon in interface CommonWindowsearchPath - Icon file name.true if operation was successful.public logical loadSmallIcon(character iconPath)
loadSmallIcon in interface CommonWindowiconPath - Icon file name.true if operation was successful.public logical loadSmallIcon(java.lang.String searchPath)
loadSmallIcon in interface CommonWindowsearchPath - Icon file name.true if operation was successful.public GenericWidget<?> asWidget()
WindowWidget as reference to
GenericWidget.public void setMaxHeightPixels(integer max)
setMaxHeightPixels in interface CommonWindowmax - The new value for the MAX-HEIGHT-PIXELS attribute.public void setMaxWidthPixels(integer max)
setMaxWidthPixels in interface CommonWindowmax - The new value for the MAX-WIDTH-PIXELS attribute.public integer getMaxHeightPixels()
getMaxHeightPixels in interface CommonWindowpublic integer getMaxWidthPixels()
getMaxWidthPixels in interface CommonWindowpublic int64 getMessageAreaFont()
getMessageAreaFont in interface CommonWindowpublic void setMessageAreaFont(long fontNum)
setMessageAreaFont in interface CommonWindowfontNum - The font number, an entry in the font-table.public void setMessageAreaFont(int64 fontNum)
setMessageAreaFont in interface CommonWindowfontNum - The font number, an entry in the font-table.public int64 getStatusAreaFont()
getStatusAreaFont in interface CommonWindowpublic void setStatusAreaFont(long fontNum)
setStatusAreaFont in interface CommonWindowfontNum - The font number, an entry in the font-table.public void setStatusAreaFont(int64 fontNum)
setStatusAreaFont in interface CommonWindowfontNum - The font number, an entry in the font-table.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<WindowConfig>character type or the empty
string if the screen buffer value is uninitialized.protected boolean resourceDelete()
resourceDelete in class GenericWidget<WindowConfig>true if the resource was deleted.public void delete()
All the direct child windows will be deleted too; and recursively, the entire window tree will be deleted.
delete in interface Deletabledelete in class GenericWidget<WindowConfig>public void setMousePointerName(java.lang.String name)
setMousePointerName in interface Hoverablename - the attribute valuepublic java.lang.String getMousePointerImpl()
getMousePointerImpl in interface Hoverableprotected boolean validateSize(java.lang.Number value,
SizeAttribute attr)
BaseEntityvalidateSize in class BaseEntity<WindowConfig>value - The input value to validate.attr - Denotes the kind of size attribute.true when valid, false otherwiseprotected void setWidthCharsWorker(double width)
setWidthCharsWorker in class BaseEntity<WindowConfig>width - Valid width value.protected void setHeightCharsWorker(double height)
setHeightCharsWorker in class BaseEntity<WindowConfig>height - Valid height value.protected void setWidthPixelsWorker(int width)
setWidthPixelsWorker in class BaseEntity<WindowConfig>width - Valid width value.protected void setHeightPixelsWorker(int height)
setHeightPixelsWorker in class BaseEntity<WindowConfig>height - Valid height value.protected void setMinWidthCharsWorker(double width)
setMinWidthCharsWorker in class BaseEntity<WindowConfig>width - Valid width value.protected void setMinHeightCharsWorker(double height)
setMinHeightCharsWorker in class BaseEntity<WindowConfig>height - Valid height value.protected void setMinWidthPixelsWorker(int width)
setMinWidthPixelsWorker in class BaseEntity<WindowConfig>width - Valid width value.protected void setMinHeightPixelsWorker(int height)
setMinHeightPixelsWorker in class BaseEntity<WindowConfig>height - Valid height value.protected void setMaxWidthCharsWorker(double width)
setMaxWidthCharsWorker in class BaseEntity<WindowConfig>width - Valid width value.protected void setMaxHeightCharsWorker(double height)
setMaxHeightCharsWorker in class BaseEntity<WindowConfig>height - Valid height value.protected void setMaxWidthPixelsWorker(int width)
setMaxWidthPixelsWorker in class BaseEntity<WindowConfig>width - Valid width value.protected void setMaxHeightPixelsWorker(int height)
setMaxHeightPixelsWorker in class BaseEntity<WindowConfig>height - Valid height value.protected void setVirtWidthCharsWorker(double width)
setVirtWidthCharsWorker in class PaneEntity<WindowConfig>width - Valid width value.protected void setVirtHeightCharsWorker(double height)
setVirtHeightCharsWorker in class PaneEntity<WindowConfig>height - Valid height value.protected void setVirtWidthPixelsWorker(int width)
setVirtWidthPixelsWorker in class PaneEntity<WindowConfig>width - Valid width value.protected void setVirtHeightPixelsWorker(int height)
setVirtHeightPixelsWorker in class PaneEntity<WindowConfig>height - Valid height value.public void setVisible(boolean visible)
setVisible in interface HasVisiblesetVisible in class GenericWidget<WindowConfig>visible - The new value for the VISIBLE attribute.public handle getMenubar()
getMenubar in interface CommonWindowpublic void setMenubar(handle menubar)
setMenubar in interface CommonWindowmenubar - The menu bar handle.public void setMenubar(MenuWidget menubar)
setMenubar in interface CommonWindowmenubar - The menu widget.public void detachMenu(MenuWidget menu)
detachMenu in class GenericWidget<WindowConfig>menu - The menu to detach.public decimal getScreenLines()
getScreenLines in interface CommonWindowpublic void view()
view in interface CommonWidgetview in class GenericWidget<WindowConfig>public void hide()
hide in interface CommonWidgethide in class GenericWidget<WindowConfig>public handle getNextSibling()
getNextSibling in interface CommonHandleChaingetNextSibling in class BaseEntity<WindowConfig>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 logical moveToTop()
moveToTop in interface CommonWidgetmoveToTop in class GenericWidget<WindowConfig>true if operation was successful.public logical moveToBottom()
moveToBottom in interface CommonWidgetmoveToBottom in class GenericWidget<WindowConfig>true if operation was successful.public 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 setAlwaysOnTop(boolean value)
setAlwaysOnTop in interface CommonWindowvalue - true if the option/attribute is set to ON.public logical isAlwaysOnTop()
isAlwaysOnTop in interface CommonWindowpublic void setControlBox(boolean value)
setControlBox in interface CommonWindowvalue - true if the option/attribute is set to ON.public logical isControlBox()
isControlBox in interface CommonWindowpublic void setSmallTitle(boolean value)
setSmallTitle in interface CommonWindowvalue - true if the option/attribute is set to ON.public logical isSmallTitle()
isSmallTitle in interface CommonWindowpublic int64 getWindowState()
getWindowState in interface CommonWindowWINDOW_STATE_*
constants).public void setWindowState(long state)
setWindowState in interface CommonWindowstate - Value of WINDOW-STATE attribute to set (see WINDOW_STATE_*
constants).public void setWindowState(int64 state)
setWindowState in interface CommonWindowstate - Value of WINDOW-STATE attribute to set (see WINDOW_STATE_*
constants).public void setMinButton(boolean value)
setMinButton in interface CommonWindowvalue - The new attribute value.public logical isMinButton()
isMinButton in interface CommonWindowpublic void setMaxButton(boolean value)
setMaxButton in interface CommonWindowvalue - The new attribute value.public logical isMaxButton()
isMaxButton in interface CommonWindowpublic void setShowInTaskbar(boolean value)
setShowInTaskbar in interface CommonWindowvalue - The new attribute value.public logical isShowInTaskbar()
isShowInTaskbar in interface CommonWindowpublic void setHidden(boolean hidden)
setHidden in interface CommonWidgetsetHidden in class GenericWidget<WindowConfig>hidden - The new value for the HIDDEN attribute.public handle getWindow()
getWindow in interface CommonWidgetgetWindow in class GenericWidget<WindowConfig>public integer getWindowWidthPixels()
public integer getWindowHeightPixels()
public void pushWidgetAttr(java.lang.String fname,
java.lang.Object value)
This just invokes LogicalTerminal.pushWindow(com.goldencode.p2j.ui.WindowConfig).
pushWidgetAttr in class GenericWidget<WindowConfig>fname - The list of config field names.value - The list of new config field values.public void pushWidgetAttr(java.lang.String[] fnames,
java.lang.Object[] values)
This just invokes LogicalTerminal.pushWindow(com.goldencode.p2j.ui.WindowConfig).
pushWidgetAttr in class GenericWidget<WindowConfig>fnames - The list of config field names.values - The list of new config field values.protected boolean useHandleChainSiblings()
useHandleChainSiblings in class BaseEntity<WindowConfig>true.protected java.lang.String[] getValidParentTypes()
getValidParentTypes in class BaseEntity<WindowConfig>protected boolean isChained()
isChained in class GenericWidget<WindowConfig>true.protected boolean canSetPixelPositionInChui()
false always - windows can't be positioned via pixel in Chui.canSetPixelPositionInChui in class BaseEntity<WindowConfig>protected void _setVisible(boolean visible)
visibility flag._setVisible in class GenericWidget<WindowConfig>visible - The window's visibility state.protected void pushScreenDefinition()
pushScreenDefinition in class GenericWidget<WindowConfig>protected void pushSizeAttrs()
This just invokes LogicalTerminal.pushWindow(com.goldencode.p2j.ui.WindowConfig).
pushSizeAttrs in class BaseEntity<WindowConfig>protected boolean canPushWidgetAttr()
canPushWidgetAttr in class GenericWidget<WindowConfig>public void afterConfigUpdate(WindowConfig beforeUpdate)
afterConfigUpdate in interface ConfigOwner<WindowConfig>afterConfigUpdate in class GenericWidget<WindowConfig>beforeUpdate - Config reference capturing the config state before
the owner's config was modified.private boolean loadIconInt(java.lang.String iconSrc,
boolean small)
iconSrc - Icon file name.small - Flag indicating usage of the small icon case(16x16 in size).true if operation was successful.private void updateMinMaxSize()
Note that min/max size can be indirectly changed only when window size is directly changed, i.e. by assigning WIDTH/HEIGHT attributes for example and not by user input like mouse resize.
protected int truncatePixelSize(int size,
SizeAttribute attr)
truncatePixelSize in class GenericWidget<WindowConfig>size - The value of WIDTH/HEIGHT-PIXELS attributes being assigned.attr - The size attribute to truncate.