public abstract class Window<O extends OutputManager<?>> extends TopLevelWindow<O> implements WidgetWithConfig<WindowConfig>
| Modifier and Type | Class and Description |
|---|---|
private static class |
Window.StatusData
Status data container.
|
private static class |
Window.WorkArea
Stores common data for all windows, relating to the state of the current context.
|
TopLevelWindow.IconDataType| Modifier and Type | Field and Description |
|---|---|
private boolean |
autoCleared
true if automatic message clearing occurred during trigger
processing. |
private boolean |
clearMessage
Flag to force message clearing on the next MESSAGE stmt.
|
protected WindowConfig |
config
Window attributes container.
|
protected BorderedPanel<O> |
contentPane
Inner content pane.
|
private java.lang.String |
defaultMessage
Status message displayed when application is running
|
protected java.lang.String |
helpText
Last help text.
|
private java.lang.String |
inputMessage
Status message displayed when input operation is active.
|
static int |
INSERT_MODE_INS
The mode when the next char is inserted into current caret position.
|
static int |
INSERT_MODE_OFF
This is the default value for insert mode, means it is not used.
|
static int |
INSERT_MODE_OVR
Insert mode when the next typed char replaces the current one.
|
static java.lang.String |
INSERT_TEXT
"Insert " text message (with 1 space of padding on right).
|
protected boolean |
insertInAmbiguousState
If
true then insert mode is ON while insert indicator is
into OFF state. |
protected int |
insertMode
Global variable to store the current insertion mode.
|
protected boolean |
isRunning
true if initialization has been performed. |
protected Menu<O> |
menubar
Menubar
|
protected MessageArea<O> |
messageArea
Message-area for this window.
|
private boolean |
messageNeedPause
Separate pause before hide flag for messages.
|
private boolean |
putScreenPerformed
Determines whether any output has been performed using PUT SCREEN
statement after the last call of HIDE ALL.
|
static int |
RESERVED_LINES
Number of reserved lines at the bottom of the screen.
|
static int |
ST_DEFAULT
Default status type
|
static int |
ST_HELP
Help status type.
|
static int |
ST_INPUT
Status type: INPUT
|
protected StatusLine<O> |
statusLine
Renders status info text.
|
private int |
statusType
Current status type.
|
protected boolean |
suspend
Suspend mode active flag.
|
protected java.lang.Object |
suspendLock
Synchronization lock for suspend processing.
|
private int |
tinyInputLine
message line number where tiny input frame is placed
|
protected java.util.Set<Widget<O>> |
vislist
Components that must be visible when interactive mode is restored.
|
private static ContextLocal<Window.WorkArea> |
wa
Stores context-local state variables.
|
listeners, location, mousePtr, nativeInsets, physicalLocation| Modifier | Constructor and Description |
|---|---|
protected |
Window(WidgetId id)
Constructs the single Window instance by calling superclass constructor,
setting the current layout to null and performing the window
initialization with creation of a CHARVA frame without borders.
|
protected |
Window(WidgetId id,
WindowConfig wcfg)
Construct a window widget based on a specific configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFrame(Widget<O> widget,
double row,
double column)
Adds the frame to the window at the specified position.
|
void |
afterConfigUpdate(WindowConfig beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
TitledWindow<O> |
ancestor()
A window's ancestor is itself.
|
void |
clearPutScreenInMessageArea(int line)
Force clearing of any temp-texts inside the message area or on the
specific line in the message area.
|
void |
clearScreenDirectly(boolean framesToHide)
Perform direct screen cleanup.
|
WindowConfig |
config()
Provide access to the attributes stored in the widget.
|
static void |
disableSpecial()
Disables the "special components" (status line, insert mode indicator,
message lines, temp text components) and stores a list of all currently
visible top-level components (which are then set invisible before this
method completes).
|
void |
displayMessage(java.lang.String[] content,
Color cs,
int ndx)
Display specified message lines.
|
void |
draw()
Draw all the components in this window, and request the keyboard focus.
|
void |
drawStatusLine(java.lang.String message,
boolean noLengthLimit)
Draw status line.
|
static void |
enableSpecial()
Enables the "special components" (status line, insert mode indicator,
message lines, temp text components) and restores visibility to the
list of all previously visible top-level components.
|
Container<O> |
getContentPane()
Get window content pane.
|
java.lang.String |
getDefaultMessage()
Get the default status message.
|
java.lang.String |
getHelpText()
Get the last help text.
|
java.lang.String |
getInputMessage()
Get the input status message.
|
static int |
getInsertMode()
The static function to get the global insert mode value.
|
protected int |
getInsMode()
Get the global insert mode value.
|
Menu<O> |
getMenubar()
Get the
Menu widget assigned to this window as MENUBAR. |
MessageArea<O> |
getMessageArea()
Get the message area widget associated with this window.
|
Color[] |
getMessageColor()
Get colors of message area.
|
abstract Rectangle |
getMessageLineRectangle(int line)
Get messages area rectangle by message line index.
|
java.lang.String[] |
getMessageText()
Get content of message area.
|
WidgetLocationRef |
getRelativeTo()
Returns the widget location relativity.
|
StatusLine<O> |
getStatusArea()
Get the status area widget associated with this window.
|
abstract Rectangle |
getStatusLineRectangle()
Get status area rectangle.
|
java.lang.String |
getStatusText()
Get content of status line.
|
int |
getStatusType()
Get current status type.
|
int |
getTinyInputLine()
Obtain the message area line number being used by the currently active MESSAGE SET/UPDATE.
|
Widget<O>[] |
getWidgets()
Get widgets array from first available window.
|
boolean |
hideAllFrames()
Hide all frames.
|
void |
hideMessage(boolean noPause)
Hides all messages displayed in the message area.
|
private void |
hideRedirectedFrames()
Hides all redirected frames that are visible.
|
protected void |
init()
Initialize window
|
void |
initialize(WidgetId id,
WindowConfig cfg)
Replacement API for the logic which should exist in the widget's c'tor, but the logic
can't be executed as it depends on the widget being registered into the official registry.
|
static boolean |
isInsertInAmbiguousState()
Returns
true if insert mode is ON while insert indicator is
into OFF state). |
boolean |
isMessageNeedPause()
Is a pause needed for messages.
|
boolean |
isMessageNull()
Determines if the message lines are empty.
|
private boolean |
isMessageTextNull()
Determines if the message lines are empty.
|
boolean |
isRepaintDisabled()
Returns true if the widget repaint is disabled.
|
static boolean |
isRunning()
Checks to see whether the windowing environment is up.
|
boolean |
isThreeD()
If the method returns
true the widget should be represented with 3D visuals. |
boolean |
isTinyInputActive()
Reports if the user is in a tiny input editing session (MESSAGE SET/UPDATE).
|
void |
message(java.lang.String message)
Renders the specified message into the message line.
|
MessageReturnValue |
message(java.lang.String text,
boolean set,
BaseDataType var,
boolean auto,
java.lang.String format,
Color cs,
java.lang.String[] stack)
Displays a message and sets or updates a character variable using a
specified format for the temporary FillIn widget.
|
int |
message(java.lang.String message,
Color cs)
Renders the specified message into the message line.
|
int |
message(java.lang.String message,
Color cs,
boolean clear,
java.lang.String[] stack)
Renders the specified message into the message line.
|
private void |
messageClearWorker()
Message line clear worker.
|
static void |
popStatus(int cnt)
Restore current status type and text from stack.
|
protected java.lang.String |
processStatusMessage(java.lang.String message)
Process the given status message - if a
null value is received, it will default
either to the helpText, the inputMessage or the defaultMessage,
depending on the input mode being active or not. |
static void |
pushConfig(WindowConfig cfg)
Merge current settings with new ones for default static window.
|
static void |
pushStatus(int cnt)
Save current status type and text in stack.
|
protected void |
reset()
Reset Window instance state.
|
protected void |
resetHelp()
Performs UI specific reset for help status line text.
|
static void |
resume()
Resumes normal drawing (exits suspend mode which was set using
suspend). |
void |
setAutoCleared(boolean autoCleared)
Set if automatic clearing is needed for trigger processing.
|
void |
setClearMessage(boolean clearMessage)
Set if clearing needed on next message statement.
|
void |
setHelp(java.lang.String text)
Set help text.
|
static void |
setInsertInAmbiguousState()
Sets the flag that indicates that insert is in an ambiguous state (i.e.
|
static void |
setInsertMode(int insertMode)
The static function to set up the global insert mode value.
|
static void |
setInsertMode(int insertMode,
boolean force)
The static function to set up the global insert mode value.
|
protected abstract void |
setInsMode(int insMode,
boolean force)
The private function to set up the global insert mode value.
|
void |
setMessageNeedPause(boolean messageNeedPause)
Set true if pause needed for messages.
|
void |
setMessageText(java.lang.String[] message,
Color[] cs)
Shows the new message text.
|
void |
setMessageText(java.lang.String[] msg,
Color[] cs,
boolean force)
Set message main worker routine.
|
void |
setPutScreenPerformed(boolean putScreenPerformed)
Set true if output has been performed using PUT SCREEN after the last call of HIDE ALL.
|
protected abstract void |
setStatusLineText(java.lang.String status,
boolean noLengthLimit)
Set the contents of the status line.
|
void |
setStatusType(int statusType)
Set current status type.
|
protected void |
setVisibility(boolean visibility)
Enables / Disables the "special components" (status line, insert mode indicator,
message lines, temp text components) and restores visibility to the
list of all previously visible top-level components.
|
private void |
showRedirectedFrames()
Restores visibility of all redirected frames.
|
private int |
splitMessage(java.lang.String message,
Color cs)
Split long message and display it piece by piece.
|
void |
status(java.lang.String message)
Renders the specified message into the status line.
|
void |
status(java.lang.String message,
boolean noLengthLimit)
Renders the specified message into the status line.
|
void |
statusDefault(java.lang.String text,
boolean noLengthLimit)
Specifies a new default status message for the running procedure when
not in INPUT mode (when editing).
|
void |
statusInput(java.lang.String text)
Specifies a new status message used when the user interface is blocked
on input.
|
private void |
statusInt(java.lang.String status,
boolean noLengthLimit)
Updates the status line area with the given text.
|
static void |
suspend()
Suspends drawing except for the status line.
|
MessageReturnValue |
tinyInput(java.lang.String text,
int row,
BaseDataType var,
java.lang.String format,
boolean auto,
boolean set)
Perform complete input operation: create fill-in widget, process user
input and return result.
|
Window<O> |
window()
A window's "window" is itself.
|
bounds, clipRectangle, close, defaultFocus, findFrames, findFrames, getFirstVisibleFrame, getFrames, getNextEnabledFrame, getNextVisibleFrame, getOwner, getOwnerOpt, getPlacementManager, getPrevEnabledFrame, getScreenDimension, getTitleBar, getTopFrame, getTopVisibleFrame, getWindowDefaultIcon, isFocusable, isLastLeaveResult, isMaximized, isMinimized, loadWindowIcon, parentOrSelfHidden, physicalBounds, processFocusEvent, reflectLocationChanged, repaint, repaintDecorations, resetMousePointer, resolveTitleFont, screenLocation, screenPhysicalLocation, setLastLeaveResult, setOwner, setWindowDefaultIcon, setWindowIcon, setWindowIcondrawIntdestroy, destroyWidgets, findMouseSource, focusTraversable, getWorkspaceSize, getZOrderClass, hasFocus, hasTitle, hasTitlebar, hide, isDisplayed, isModal, processEvent, processKeyEvent, setTitle, show, title, toStringadd, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, currentFocus, currentFocus, cycleFocus, deregisterSelectedWidget, detach, dimension, doLayout, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, formatDump, get, getAllSelectedWidgets, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, height, insets, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, paintOnTop, parentOf, prepareWidgets, prevFocus, reflectAncestorChange, registerSelectedWidget, remove, removeContainerStateListener, replace, requestFocus, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setPhysicalDimensionInt, setSize, setSize, setTabItemList, setWidth, startSizeChange, swap, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, widgetStateChanged, width_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestorId, autoResize, clear, clearWidget, clipRectangle, clipWith, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, hasFocus, hasTooltip, hidden, highlighted, ignoreAction, initialHeight, initialWidth, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isEnabled, isHeader, isMouseDrag, isRealized, isRMBEntrySupported, isScreenLocationCached, isTabStop, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, oleDoDrop, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, reflectSizeChanged, refresh, registerWidgetListener, repaint, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, screen, screenDimension, screenHeight, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setVisible, setWindow, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, translate, triggerLocationChanged, unregisterWidgetListener, updateSystemParent, widgetRealizedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwidgetsAsListacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestorId, canMovetoTop, clearWidget, completeTrigger, defaultMousePtr, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getIdForTrigger, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, hasFocus, hasTooltip, hidden, highlighted, ignoreEnable, initialHeight, initialWidth, isCurrent, isCurrent, isDirectManipulable, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDroppable, isEnabled, isHeader, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, isRealized, isRMBEntrySupported, isTabStop, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, moveToBottom, moveToTop, name, navigable, oleDrag, parent, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalDimension, physicalLocation, postprocessConfig, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, refreshWidget, registerWidgetListener, repaint, repaint, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setVisible, setWindow, startTrigger, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unregisterWidgetListener, validateDisplayValuepublic static final int ST_HELP
public static final int ST_DEFAULT
public static final int ST_INPUT
public static final int INSERT_MODE_OFF
public static final int INSERT_MODE_INS
public static final int INSERT_MODE_OVR
public static final int RESERVED_LINES
public static final java.lang.String INSERT_TEXT
private static final ContextLocal<Window.WorkArea> wa
protected BorderedPanel<O extends OutputManager<?>> contentPane
protected MessageArea<O extends OutputManager<?>> messageArea
protected StatusLine<O extends OutputManager<?>> statusLine
protected Menu<O extends OutputManager<?>> menubar
protected boolean suspend
protected java.lang.Object suspendLock
protected WindowConfig config
protected boolean isRunning
true if initialization has been performed.protected int insertMode
protected boolean insertInAmbiguousState
true then insert mode is ON while insert indicator is
into OFF state.private boolean putScreenPerformed
protected java.util.Set<Widget<O extends OutputManager<?>>> vislist
protected java.lang.String helpText
private java.lang.String defaultMessage
private java.lang.String inputMessage
private int statusType
private int tinyInputLine
private boolean clearMessage
private boolean autoCleared
true if automatic message clearing occurred during trigger
processing.private boolean messageNeedPause
true means
pause is due.protected Window(WidgetId id)
id - The widget's ID.protected Window(WidgetId id, WindowConfig wcfg)
Call initialize(com.goldencode.p2j.ui.WidgetId, com.goldencode.p2j.ui.WindowConfig) to finish the widget initialization.
id - The widget's ID.wcfg - Window configuration.public void initialize(WidgetId id, WindowConfig cfg)
This API is called after the widget is created and added to the registry.
initialize in interface WidgetWithConfig<WindowConfig>id - The widget's ID.cfg - The config used to initialize this widget.public WidgetLocationRef getRelativeTo()
getRelativeTo in class TopLevelWindow<O extends OutputManager<?>>public java.lang.String[] getMessageText()
String instances with message area
content.public Color[] getMessageColor()
String instances with message area
content.public boolean isMessageNull()
true if the message line is empty.public static void setInsertMode(int insertMode)
insertMode - New integer value for insert mode.public void setClearMessage(boolean clearMessage)
clearMessage - true if clearing is needed, false otherwise.public void setAutoCleared(boolean autoCleared)
autoCleared - true if auto clearing is needed, false otherwise.public boolean isMessageNeedPause()
public void setMessageNeedPause(boolean messageNeedPause)
messageNeedPause - true if pause is needed, false otherwise.public void setPutScreenPerformed(boolean putScreenPerformed)
putScreenPerformed - true if PUT SCREEN was used, false otherwise.public static void setInsertMode(int insertMode,
boolean force)
insertMode - New integer value for insert mode.force - Whether we have to repaint the indicator even if the new mode
is the same as the old one.public static int getInsertMode()
for possible return values.public static void setInsertInAmbiguousState()
public void setHelp(java.lang.String text)
text - Text for help string or null, which indicates the
default status message has to be restoredpublic static boolean isInsertInAmbiguousState()
true if insert mode is ON while insert indicator is
into OFF state).public static boolean isRunning()
true if the windowing environment is up.public static void disableSpecial()
public static void enableSpecial()
public static void suspend()
resume() method.public static void resume()
suspend).public static void pushConfig(WindowConfig cfg)
cfg - New configuration data.public static void pushStatus(int cnt)
cnt - How many times state should be saved in stack.public static void popStatus(int cnt)
cnt - How many elements should be popped from stack.public abstract Rectangle getStatusLineRectangle()
Rectangle which describes the status
area in screen coordinates.public abstract Rectangle getMessageLineRectangle(int line)
line - message line specification: either 0-based line number for
specific line or -1 for the whole message area.Rectangle which describes the message
area in screen coordinates.protected void init()
protected abstract void setStatusLineText(java.lang.String status,
boolean noLengthLimit)
noLengthLimit flag is not set.status - The new string to be displayed inside the status line area.noLengthLimit - flag indicating the status message should not be trimmedpublic TitledWindow<O> ancestor()
ancestor in interface Widget<O extends OutputManager<?>>ancestor in class TopLevelWindow<O extends OutputManager<?>>public Window<O> window()
window in interface Widget<O extends OutputManager<?>>window in class TopLevelWindow<O extends OutputManager<?>>public Menu<O> getMenubar()
Menu widget assigned to this window as MENUBAR.public MessageArea<O> getMessageArea()
public java.lang.String getHelpText()
public int getStatusType()
public void setStatusType(int statusType)
statusType - new statusType - one of 3 constant values.public java.lang.String getStatusText()
public java.lang.String getDefaultMessage()
public java.lang.String getInputMessage()
public StatusLine<O> getStatusArea()
public void status(java.lang.String message)
message - The message body to be rendered.public void status(java.lang.String message,
boolean noLengthLimit)
noLengthLimit flag is not set.
The method is a no-op when the status area is not displayed for this window.
message - The message body to be rendered.noLengthLimit - flag indicating the status message should not be trimmedpublic void statusDefault(java.lang.String text,
boolean noLengthLimit)
This method is used to display a status message, which is trimmed to
63 chars only if the noLengthLimit flag is not set.
text - The new status message. null is the equivalent
of the empty string.noLengthLimit - flag indicating the status message should not be trimmedpublic void statusInput(java.lang.String text)
This method corresponds to the Progress statement
STATUS INPUT text.
text - The new status message. null is the equivalent
of the empty string.public Container<O> getContentPane()
getContentPane in class TopLevelWindow<O extends OutputManager<?>>public Widget<O>[] getWidgets()
public WindowConfig config()
config in interface Widget<O extends OutputManager<?>>config in interface ConfigOwner<WindowConfig>config in class AbstractWidget<O extends OutputManager<?>>public void addFrame(Widget<O> widget, double row, double column)
addFrame in class TopLevelWindow<O extends OutputManager<?>>widget - The handle of the frame to be added to the window.row - The row number for the upper-left frame corner.column - The column number for the upper-left frame corner.public void draw()
If in suspend mode, only draw the status line. This mode can be set
via suspend.
draw in interface Widget<O extends OutputManager<?>>draw in class OuterFrame<O extends OutputManager<?>>public void drawStatusLine(java.lang.String message,
boolean noLengthLimit)
message - Message to display.noLengthLimit - flag indicating the status message should not be trimmedpublic void setMessageText(java.lang.String[] message,
Color[] cs)
This is a no-op when this window doesn't have the message area displayed.
message - Array of two text message which need to be displayed inside the
message area.cs - Array of two color specifications.public void setMessageText(java.lang.String[] msg,
Color[] cs,
boolean force)
This is a no-op when this window doesn't have the message area displayed.
msg - Message text array.cs - Message color array.force - true means force redisplaying of messages even
if message text is already null.public MessageReturnValue tinyInput(java.lang.String text, int row, BaseDataType var, java.lang.String format, boolean auto, boolean set)
text - The message text.row - Message row in which operation will be performed.var - Source variable.format - Format which will be used for variable.auto - Fill-in AUTO-RETURN flag.set - true for SET, false for UPDATE.null.public boolean isTinyInputActive()
true if tiny input is active.public int getTinyInputLine()
public void message(java.lang.String message)
message - The message body to be rendered.public int message(java.lang.String message,
Color cs)
message - The message body to be rendered.cs - color specification.public int message(java.lang.String message,
Color cs,
boolean clear,
java.lang.String[] stack)
message - The message body to be rendered.cs - color specification.clear - If true then the line(s) on which the message will
be displayed, will be cleared first.stack - Progress stack trace. This can be null.public MessageReturnValue message(java.lang.String text, boolean set, BaseDataType var, boolean auto, java.lang.String format, Color cs, java.lang.String[] stack)
This method corresponds to the Progress statement
MESSAGE SET/UPDATE variable AUTO-RETURN FORMAT
text - Text to be displayed.set - true for SET, false for UPDATE,
not used if var parameter is null.var - The variable to set or update. null means no
set or update will occur.auto - true if the AUTO-RETURN option is specified. This
is only valid if var is not null.format - The format specification to use for the set or update. This
is only valid if var is not null.cs - The color specification to use for the text.stack - Progress stack trace. This can be null.var is not null and operation
finished successfully and/or if any key was pressed during
editing/pausing. If no pause occurred and there was no input
(editing) in process, then null will be returned.public void clearPutScreenInMessageArea(int line)
line - Message line specification: either 0-based line number for
specific line or -1 for the whole message area.public void clearScreenDirectly(boolean framesToHide)
framesToHide - true if there are any frames to hide.public boolean hideAllFrames()
true if at least one frame was hidden.public void hideMessage(boolean noPause)
This method corresponds to the Progress statement
HIDE MESSAGE [NO_PAUSE]
noPause - true if no pause is required before hiding
messagespublic void afterConfigUpdate(WindowConfig beforeUpdate)
afterConfigUpdate in interface ConfigOwner<WindowConfig>beforeUpdate - Config reference capturing the config state before
the owner's config was modified.public boolean isThreeD()
true the widget should be represented with 3D visuals.isThreeD in interface Widget<O extends OutputManager<?>>isThreeD in class AbstractWidget<O extends OutputManager<?>>public boolean isRepaintDisabled()
This implementation always returns false. This is to ensure that all the child widgets
except window workspace are not affected with WINDOW:DISABLE-REDRAW. In other words when
WINDOW:DISABLE-REDRAW is set to TRUE the window's title bar, window message and status areas still
must redraw.
isRepaintDisabled in interface Widget<O extends OutputManager<?>>isRepaintDisabled in class AbstractWidget<O extends OutputManager<?>>protected java.lang.String processStatusMessage(java.lang.String message)
null value is received, it will default
either to the helpText, the inputMessage or the defaultMessage,
depending on the input mode being active or not.message - The status message.protected void reset()
protected void setVisibility(boolean visibility)
visibility - true enable false disable.protected abstract void setInsMode(int insMode,
boolean force)
insMode - New integer value for insert mode.force - Whether we have to repaint the indicator even if the new mode
is the same as the old one.protected int getInsMode()
protected void resetHelp()
private boolean isMessageTextNull()
true if the message line is empty.private void messageClearWorker()
public void displayMessage(java.lang.String[] content,
Color cs,
int ndx)
content - Message lines.cs - Color specification.ndx - Message index.private int splitMessage(java.lang.String message,
Color cs)
message - Message to split.cs - Color specification.private void statusInt(java.lang.String status,
boolean noLengthLimit)
noLengthLimit flag is not set.status - The new string to be displayed inside the status line area.noLengthLimit - flag indicating the status message should not be trimmedprivate void hideRedirectedFrames()
private void showRedirectedFrames()
If the terminal has ever been switched to the redirected mode and then back, all redirected frames have been hidden during the back switch to the interactive mode. Now those frames have to be made visible again.