public class WindowWidget extends PaneEntity<WindowConfig> implements CommonWindow, CommonHandleTree, TopOnlyInterface, Hoverable
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
|
group
config, deleted, frame
name, nextSibling, prevSibling
instProc
WINDOW_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 |
canSetPixelPositionInChui()
The method returns
false always - windows can't be positioned via pixel in Chui. |
void |
delete()
Perform actual delete of an resource.
|
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
|
decimal |
getScreenLines()
Gets the SCREEN-LINES readable attribute.
|
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.
|
int64 |
getWindowState()
Gets the WINDOW-STATE attribute.
|
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 |
isDisableRedraw()
Gets the DISABLE-REDRAW attribute.
|
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 |
isResize()
Check if window size can be changed.
|
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 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 |
setDisableRedraw(boolean value)
Sets the DISABLE-REDRAW 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 |
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 |
setResize(logical resize)
Enable/disable window resizing.
|
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, getNumSelectedWidgets, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, isBoxSelectable, isDropTarget, isGridSnap, isGridVisible, isThreeD, setBoxSelectable, setDropTarget, setGridFactorHorizontal, setGridFactorVertical, setGridSnap, setGridUnitHeightChars, setGridUnitHeightPixels, setGridUnitWidthChars, setGridUnitWidthPixels, setGridVisible, setThreeD, setThreeD, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels
changeFontWorker, getBgColor, getColumn, getDColor, getFgColor, getFont, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getPrevSibling, getRow, getTitle, getTooltip, 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, setHeightPixels, setHeightPixels, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setTabStop, setTabStop, setTitle, setTooltip, setTooltip, setWidthChars, setWidthChars, setWidthPixels, setWidthPixels, setX, setX, setXOrYWorker, setY, setY, validateParent, validColumnOrRow
_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _setDynamic, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, cleanup, colorDisplay, colorPrompt, config, deselectRows, disable, dynamic, enable, finishConfigProcessing, finishSetup, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDataType, getDbName, getFirstTabItem, getFormat, getFrame, getFrameHandle, getHelp, getHWND, getId, getLabel, getLabelFont, getLabelStr, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNextTabItem, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getPreviousTabItem, getQuery, getRetainShape, getScreenValue, getScreenValue, getSideLabelHandle, getStretchToFit, getTable, getTitleFont, getTransparent, getWidgetId, getWindow, hasNameReadOnly, hasParent, hide, implicitDeletion, inputValue, isAutoResize, isChecked, isEntered, isFocusedRowSelected, isHidden, isManualHighlight, isModified, isMultiple, isNotEntered, isReadOnly, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTextSelected, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToWorker, name, notQueryable, notSettable, notWorker, preRealizeCheck, processSideLabel, pushScreenDefinition, readOnlyError, realize, refresh, selectAll, selectFocusedRow, setAtFormatLength, setAutoResize, setAutoResize, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setColumnLabel, setColumnLabel, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, 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, 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, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVertical, setVisible, setWidgetId, setWidgetId, underline, underline, validate, validateFields, validateFields, validateFields, validateFields, validateLayout, widgetName
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
setAlwaysOnTop, setControlBox, setDisableRedraw, setMaxButton, setMinButton, setShowInTaskbar, setSmallTitle
endFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTarget
setBoxSelectable, setGridFactorHorizontal, setGridFactorVertical, setGridSnap, setGridUnitHeightChars, setGridUnitHeightPixels, setGridUnitWidthChars, setGridUnitWidthPixels, setGridVisible
setScreenValue
getPrivateData, setPrivateData, setPrivateData
getResourceType
id, id, unknown
private MenuWidget menubar
WindowWidget(boolean dynamic)
dynamic
- Flag indicating if this is a static or dynamic resource.public boolean valid()
valid
in interface CommonWidget
valid
in interface WrappedResource
valid
in class GenericWidget<WindowConfig>
GenericWidget.deleted
flag.public logical isKeepFrameZOrder()
isKeepFrameZOrder
in interface CommonWidget
isKeepFrameZOrder
in interface CommonWindow
isKeepFrameZOrder
in class GenericWidget<WindowConfig>
public void setKeepFrameZOrder(logical keep)
setKeepFrameZOrder
in interface CommonWidget
setKeepFrameZOrder
in interface CommonWindow
setKeepFrameZOrder
in class GenericWidget<WindowConfig>
keep
- The new value for the KEEP-FRAME-Z-ORDER attribute.public void setKeepFrameZOrder(boolean keep)
setKeepFrameZOrder
in interface CommonWidget
setKeepFrameZOrder
in interface CommonWindow
setKeepFrameZOrder
in class GenericWidget<WindowConfig>
keep
- The new value for the KEEP-FRAME-Z-ORDER attribute.public decimal getFullHeightChars()
getFullHeightChars
in interface CommonWindow
public integer getFullHeightPixels()
getFullHeightPixels
in interface CommonWindow
public decimal getFullWidthChars()
getFullWidthChars
in interface CommonWindow
public integer getFullWidthPixels()
getFullWidthPixels
in interface CommonWindow
public decimal getMaxHeightChars()
getMaxHeightChars
in interface CommonWidget
getMaxHeightChars
in interface CommonWindow
getMaxHeightChars
in class GenericWidget<WindowConfig>
public void setMaxHeightChars(NumberType max)
setMaxHeightChars
in interface CommonWindow
max
- 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 CommonWidget
getMaxWidthChars
in interface CommonWindow
getMaxWidthChars
in class GenericWidget<WindowConfig>
public void setMaxWidthChars(NumberType max)
setMaxWidthChars
in interface CommonWindow
max
- 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 CommonWindow
maxHeight
- New option value.public void setMaxWidth(NumberType maxWidth)
setMaxWidth
in interface CommonWindow
maxWidth
- New option value.public decimal getMinHeightChars()
getMinHeightChars
in interface CommonWindow
public decimal getMinWidthChars()
getMinWidthChars
in interface CommonWindow
public void setMinHeightChars(NumberType min)
setMinHeightChars
in interface CommonWindow
min
- The new value for the MIN-HEIGHT-CHARS attribute.public void setMinWidthChars(NumberType min)
setMinWidthChars
in interface CommonWindow
min
- The new value for the MIN-WIDTH-CHARS attribute.public integer getMinHeightPixels()
getMinHeightPixels
in interface CommonWindow
public integer getMinWidthPixels()
getMinWidthPixels
in interface CommonWindow
public void setMinHeightPixels(integer min)
setMinHeightPixels
in interface CommonWindow
min
- The new value for the MIN-HEIGHT-PIXELS attribute.public void setMinWidthPixels(integer min)
setMinWidthPixels
in interface CommonWindow
min
- The new value for the MIN-WIDTH-CHARS attribute.public void setResize(logical resize)
setResize
in interface CommonWindow
resize
- New option value.public void setScrollBars(logical scrollBars)
setScrollBars
in interface CommonWindow
scrollBars
- New option value.public void setStatusArea(logical statusArea)
setStatusArea
in interface CommonWindow
statusArea
- New option value.public void setTitle(java.lang.String title)
setTitle
in interface CommonWidget
setTitle
in class BaseEntity<WindowConfig>
title
- The new value for the TITLE attribute.public void setSensitive(boolean s)
setSensitive
in interface Sensitive
setSensitive
in class GenericWidget<WindowConfig>
s
- new value of SENSITIVE attributepublic void setBgColor()
public void setFgColor()
public void setKeepZOrder(logical keepFrameZOrder)
setKeepZOrder
in interface CommonWindow
keepFrameZOrder
- New flag value.public void setMessageArea(logical messageArea)
setMessageArea
in interface CommonWindow
messageArea
- New flag value.public decimal getMaxHeight()
getMaxHeight
in interface CommonWindow
public decimal getMaxWidth()
getMaxWidth
in interface CommonWindow
public logical isResize()
isResize
in interface CommonWindow
true
if window size can be changed.public logical isScrollBars()
isScrollBars
in interface CommonWindow
true
if window has scrollbars.public logical isStatusArea()
isStatusArea
in interface CommonWindow
true
if window has status area.public logical isKeepZOrder()
isKeepZOrder
in interface CommonWindow
true
if window has KEEP-Z-ORDER option set.public logical isMessageArea()
isMessageArea
in interface CommonWindow
true
if window has message area.public character getIcon()
loadIcon(character)
.getIcon
in interface CommonWindow
public logical loadIcon(character iconPath)
loadIcon
in interface CommonWindow
iconPath
- Icon file name.true
if operation was successful.public logical loadIcon(java.lang.String searchPath)
loadIcon
in interface CommonWindow
searchPath
- Icon file name.true
if operation was successful.public logical loadSmallIcon(character iconPath)
loadSmallIcon
in interface CommonWindow
iconPath
- Icon file name.true
if operation was successful.public logical loadSmallIcon(java.lang.String searchPath)
loadSmallIcon
in interface CommonWindow
searchPath
- Icon file name.true
if operation was successful.public GenericWidget<?> asWidget()
WindowWidget
as reference to
GenericWidget
.public void setMaxHeightPixels(integer max)
setMaxHeightPixels
in interface CommonWindow
max
- The new value for the MAX-HEIGHT-PIXELS attribute.public void setMaxWidthPixels(integer max)
setMaxWidthPixels
in interface CommonWindow
max
- The new value for the MAX-WIDTH-PIXELS attribute.public integer getMaxHeightPixels()
getMaxHeightPixels
in interface CommonWindow
public integer getMaxWidthPixels()
getMaxWidthPixels
in interface CommonWindow
public int64 getMessageAreaFont()
getMessageAreaFont
in interface CommonWindow
public void setMessageAreaFont(long fontNum)
setMessageAreaFont
in interface CommonWindow
fontNum
- The font number, an entry in the font-table.public void setMessageAreaFont(int64 fontNum)
setMessageAreaFont
in interface CommonWindow
fontNum
- The font number, an entry in the font-table.public int64 getStatusAreaFont()
getStatusAreaFont
in interface CommonWindow
public void setStatusAreaFont(long fontNum)
setStatusAreaFont
in interface CommonWindow
fontNum
- The font number, an entry in the font-table.public void setStatusAreaFont(int64 fontNum)
setStatusAreaFont
in interface CommonWindow
fontNum
- The font number, an entry in the font-table.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 Deletable
delete
in class HandleChain
public void setMousePointerName(java.lang.String name)
setMousePointerName
in interface Hoverable
name
- the attribute valuepublic java.lang.String getMousePointerImpl()
getMousePointerImpl
in interface Hoverable
protected boolean validateSize(java.lang.Number value, SizeAttribute attr)
BaseEntity
validateSize
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 CommonWidget
setVisible
in class GenericWidget<WindowConfig>
visible
- The new value for the VISIBLE attribute.public handle getMenubar()
getMenubar
in interface CommonWindow
public void setMenubar(handle menubar)
setMenubar
in interface CommonWindow
menubar
- The menu bar handle.public void setMenubar(MenuWidget menubar)
setMenubar
in interface CommonWindow
menubar
- The menu widget.public decimal getScreenLines()
getScreenLines
in interface CommonWindow
public void view()
view
in interface CommonWidget
view
in class GenericWidget<WindowConfig>
public void hide()
hide
in interface CommonWidget
hide
in class GenericWidget<WindowConfig>
public handle firstChild()
firstChild
in interface CommonHandleTree
null
if no widgets are contained.public handle lastChild()
lastChild
in interface CommonHandleTree
null
if no widgets are contained.public logical moveToTop()
moveToTop
in interface CommonWidget
moveToTop
in class GenericWidget<WindowConfig>
true
if operation was successful.public logical moveToBottom()
moveToBottom
in interface CommonWidget
moveToBottom
in class GenericWidget<WindowConfig>
true
if operation was successful.public void setTopOnly(boolean topOnly)
setTopOnly
in interface TopOnlyInterface
topOnly
- true
if the option/attribute is set to ON.public void setTopOnly(logical topOnly)
setTopOnly
in interface TopOnlyInterface
topOnly
- true
if the attribute is set to ON.public logical isTopOnly()
isTopOnly
in interface TopOnlyInterface
public void setAlwaysOnTop(boolean value)
setAlwaysOnTop
in interface CommonWindow
value
- true
if the option/attribute is set to ON.public logical isAlwaysOnTop()
isAlwaysOnTop
in interface CommonWindow
public void setControlBox(boolean value)
setControlBox
in interface CommonWindow
value
- true
if the option/attribute is set to ON.public logical isControlBox()
isControlBox
in interface CommonWindow
public void setSmallTitle(boolean value)
setSmallTitle
in interface CommonWindow
value
- true
if the option/attribute is set to ON.public logical isSmallTitle()
isSmallTitle
in interface CommonWindow
public int64 getWindowState()
getWindowState
in interface CommonWindow
WINDOW_STATE_*
constants).public void setWindowState(long state)
setWindowState
in interface CommonWindow
state
- Value of WINDOW-STATE attribute to set (see WINDOW_STATE_*
constants).public void setWindowState(int64 state)
setWindowState
in interface CommonWindow
state
- Value of WINDOW-STATE attribute to set (see WINDOW_STATE_*
constants).public void setMinButton(boolean value)
setMinButton
in interface CommonWindow
value
- The new attribute value.public logical isMinButton()
isMinButton
in interface CommonWindow
public void setMaxButton(boolean value)
setMaxButton
in interface CommonWindow
value
- The new attribute value.public logical isMaxButton()
isMaxButton
in interface CommonWindow
public void setShowInTaskbar(boolean value)
setShowInTaskbar
in interface CommonWindow
value
- The new attribute value.public logical isShowInTaskbar()
isShowInTaskbar
in interface CommonWindow
public logical isDisableRedraw()
CommonWindow
isDisableRedraw
in interface CommonWindow
public void setDisableRedraw(boolean value)
setDisableRedraw
in interface CommonWindow
value
- Value to set to DISABLE-REDRAW attribute.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.public void afterConfigUpdate(WindowConfig beforeUpdate)
afterConfigUpdate
in interface ConfigOwner<WindowConfig>
afterConfigUpdate
in class GenericWidget<WindowConfig>
beforeUpdate
- 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.