public class WindowChuiImpl extends Window<ChuiOutputManager>
TopLevelWindow.IconDataType
Widget.ZOrderClass
Modifier and Type | Field and Description |
---|---|
(package private) StatusLine<ChuiOutputManager> |
insertModeLabel
Renders the status of the current insertion mode.
|
config, contentPane, 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, vislist
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, getStatusArea, getStatusText, getStatusType, getTinyInputLine, getWidgets, hideAllFrames, hideMessage, initialize, isInsertInAmbiguousState, isMessageNeedPause, isMessageNull, isRunning, isThreeD, isTinyInputActive, message, message, message, message, popStatus, pushConfig, pushStatus, resume, setAutoCleared, setClearMessage, setHelp, setInsertInAmbiguousState, setInsertMode, setInsertMode, setMessageNeedPause, setMessageText, setMessageText, setPutScreenPerformed, setStatusType, status, status, statusDefault, statusInput, suspend, tinyInput, window
bounds, clipRectangle, close, defaultFocus, findFrames, findFrames, getFirstVisibleFrame, getFrames, getNextEnabledFrame, getNextVisibleFrame, getOwner, getOwnerOpt, getPlacementManager, getPrevEnabledFrame, getTitleBar, getTopFrame, getTopVisibleFrame, getWindowDefaultIcon, isFocusable, isMaximized, loadWindowIcon, parentOrSelfHidden, physicalBounds, processEvent, processFocusEvent, repaint, repaintDecorations, resolveTitleFont, screenLocation, screenPhysicalLocation, setLocation, setOwner, setPhysicalLocation, setWindowDefaultIcon, setWindowIcon
drawInt
destroy, destroyWidgets, findMouseSource, focusTraversable, getZOrderClass, hasFocus, hasTitle, hasTitlebar, hide, isDisplayed, isModal, processKeyEvent, setTitle, show, title, toString
add, add, add, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, currentFocus, currentFocus, cycleFocus, detach, dimension, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, get, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getWidgetsList, hasFocusable, height, insets, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, prepareWidgets, prevFocus, remove, replace, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setSize, setWidth, startSizeChange, unrealize, updateSizeWorker, widgets, width
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestorId, autoResize, clear, clearWidget, clipRectangle, clipWith, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, enable, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidthNative, getVisiblePart, hidden, highlighted, ignoreAction, isDirectManipulationCapable, isDirectManipulationRequired, isEnabled, isHeader, isRealized, isRMBEntrySupported, isTabStop, isTotallyObscured, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, requestSync, resetBitmap, resizeTo, resolveFont, screen, screenDimension, screenHeight, screenWidth, setBitmap, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setParent, setState, supportsCustomMousePointer, sync, topLevelWindow, translate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFocusListener, addKeyListener, ancestorId, clearWidget, defaultMousePtr, displayPhysicalLocation, enclosingFrame, enforceDefaultMousePtr, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, hidden, highlighted, isDirectManipulable, isEnabled, isHeader, isRealized, isRMBEntrySupported, isTabStop, isTotallyObscured, isVisible, location, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalDimension, physicalLocation, postprocessConfig, processDirectManipulationEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, requestSync, resizeTo, screen, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setParent, setState, supportsCustomMousePointer, topLevelWindow
StatusLine<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.