public class WindowChuiImpl extends Window<ChuiOutputManager>
TopLevelWindow.IconDataType| Modifier and Type | Field and Description |
|---|---|
(package private) StatusLine<ChuiOutputManager> |
insertModeLabel
Renders the status of the current insertion mode.
|
config, contentPane, helpText, INSERT_MODE_INS, INSERT_MODE_OFF, INSERT_MODE_OVR, INSERT_TEXT, insertInAmbiguousState, insertMode, isRunning, menubar, messageArea, RESERVED_LINES, ST_DEFAULT, ST_HELP, ST_INPUT, statusLine, suspend, suspendLock, vislistlisteners, location, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
WindowChuiImpl(WidgetId id)
Hide base class public constructor.
|
WindowChuiImpl(WidgetId id,
WindowConfig config)
Construct a window widget based on a specific configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doLayout()
Lay out container.
|
void |
drawCaret()
Draw caret.
|
Rectangle |
getMessageLineRectangle(int line)
Get messages area rectangle by message line index.
|
Dimension |
getScreenDimension()
Get dimension of screen area available for the placement of frames.
|
Dimension |
getScrollableSize()
Returns the preferred size of the window workspace.
|
Rectangle |
getStatusLineRectangle()
Get status area rectangle.
|
Dimension |
getWorkspaceSize()
Get the size of the window workspace area.
|
protected void |
init()
Initialize window
|
protected void |
reset()
Reset Window instance state.
|
protected void |
setInsMode(int insMode,
boolean force)
The private function to set up the global insert mode value.
|
protected void |
setStatusLineText(java.lang.String status,
boolean noLengthLimit)
Set the contents of the status line.
|
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.
|
void |
setVisible(boolean visible)
When the window is no longer visible, special processing is required.
|
addFrame, afterConfigUpdate, ancestor, clearPutScreenInMessageArea, clearScreenDirectly, config, disableSpecial, displayMessage, draw, drawStatusLine, enableSpecial, getContentPane, getDefaultMessage, getHelpText, getInputMessage, getInsertMode, getInsMode, getMenubar, getMessageArea, getMessageColor, getMessageText, getRelativeTo, getStatusArea, getStatusText, getStatusType, getTinyInputLine, getWidgets, hideAllFrames, hideMessage, initialize, isInsertInAmbiguousState, isMessageNeedPause, isMessageNull, isRepaintDisabled, isRunning, isThreeD, isTinyInputActive, message, message, message, message, popStatus, processStatusMessage, pushConfig, pushStatus, resetHelp, resume, setAutoCleared, setClearMessage, setHelp, setInsertInAmbiguousState, setInsertMode, setInsertMode, setMessageNeedPause, setMessageText, setMessageText, setPutScreenPerformed, setStatusType, status, status, statusDefault, statusInput, suspend, tinyInput, windowbounds, clipRectangle, close, defaultFocus, findFrames, findFrames, getFirstVisibleFrame, getFrames, getNextEnabledFrame, getNextVisibleFrame, getOwner, getOwnerOpt, getPlacementManager, getPrevEnabledFrame, 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, 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, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, formatDump, get, getAllSelectedWidgets, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, 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, 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, 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, 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, setWindow, startTrigger, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unregisterWidgetListener, validateDisplayValueStatusLine<ChuiOutputManager> insertModeLabel
public WindowChuiImpl(WidgetId id)
id - The widget's ID.public WindowChuiImpl(WidgetId id, WindowConfig config)
config - Window configuration.id - The widget's ID.public void drawCaret()
drawCaret in interface Widget<ChuiOutputManager>drawCaret in class AbstractWidget<ChuiOutputManager>public void doLayout()
doLayout in interface Container<ChuiOutputManager>doLayout in class AbstractContainer<ChuiOutputManager>public Dimension getScreenDimension()
getScreenDimension in class TopLevelWindow<ChuiOutputManager>Dimension which describes size of the
available screen area.public Rectangle getMessageLineRectangle(int line)
getMessageLineRectangle in class Window<ChuiOutputManager>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.public Rectangle getStatusLineRectangle()
getStatusLineRectangle in class Window<ChuiOutputManager>Rectangle which describes the status
area in screen coordinates.public Dimension getScrollableSize()
getScrollableSize in class AbstractContainer<ChuiOutputManager>public void setVisible(boolean visible)
setVisible in interface Widget<ChuiOutputManager>setVisible in class AbstractWidget<ChuiOutputManager>visible - The frame's visibility state.public Dimension getWorkspaceSize()
getWorkspaceSize in class TitledWindow<ChuiOutputManager>protected void reset()
reset in class Window<ChuiOutputManager>protected void init()
init in class Window<ChuiOutputManager>protected void setStatusLineText(java.lang.String status,
boolean noLengthLimit)
noLengthLimit flag is not set.setStatusLineText in class Window<ChuiOutputManager>status - The new string to be displayed inside the status line area.noLengthLimit - flag indicating the status message should not be trimmedprotected void setInsMode(int insMode,
boolean force)
setInsMode in class Window<ChuiOutputManager>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 void setVisibility(boolean visibility)
setVisibility in class Window<ChuiOutputManager>visibility - true enable false disable.