Package jexer.effect
Class WindowTransitionEffect.DummyWindow
- java.lang.Object
-
- jexer.TWidget
-
- jexer.TWindow
-
- jexer.effect.WindowTransitionEffect.DummyWindow
-
- All Implemented Interfaces:
java.lang.Comparable<TWidget>
- Enclosing class:
- WindowTransitionEffect
public class WindowTransitionEffect.DummyWindow extends TWindow
The DummyWindow shows the new screen area contents, while also ignoring events during the Effect execution.
-
-
Field Summary
-
Fields inherited from class jexer.TWindow
ABSOLUTEXY, borderStyleActive, borderStyleActiveModal, borderStyleInactive, borderStyleMoving, CENTERED, helpTopic, HIDEONCLOSE, inKeyboardResize, inWindowMove, inWindowResize, MODAL, mouse, NOCLOSEBOX, NOZOOMBOX, overlay, OVERRIDEMENU, RESIZABLE, statusBar, underlay
-
-
Constructor Summary
Constructors Constructor Description DummyWindow(TWindow window, WindowTransitionEffect windowTransitionEffect)Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandisableCloseEffect()If true, disable any window closing effect.booleandisableOpenEffect()If true, disable any window opening effect.voiddraw()Called by TApplication.drawChildren() to render on screen.TWindowgetEffectedWindow()Get the window this dummy window is convering up.ScreengetOldScreen()Get the old screen data.voidhandleEvent(TInputEvent event)Consume event.-
Methods inherited from class jexer.TWindow
activate, addOverlay, addShortcutKeypress, addUnderlay, center, clearShortcutKeypresses, close, ensureOnScreen, getAlpha, getApplication, getBackground, getBorder, getBorderControls, getBorderStyle, getBorderStyleForeground, getBorderStyleInactive, getBorderStyleModal, getBorderStyleMoving, getHelpTopic, getMaximumWindowHeight, getMaximumWindowWidth, getMinimumWindowHeight, getMinimumWindowWidth, getMouseStyle, getScreen, getStatusBar, getTitle, getWindowTheme, getZ, hasCloseBox, hasHiddenMouse, hasOverriddenMenu, hasZoomBox, hide, inMovements, isHidden, isModal, isResizable, isShortcutKeypress, isShown, maximize, mouseOnClose, mouseOnMaximize, mouseOnResize, newStatusBar, onClose, onCommand, onFocus, onHide, onKeypress, onMenu, onMouseDown, onMouseMotion, onMouseUp, onPostDraw, onPreClose, onResize, onShow, onUnfocus, removeShortcutKeypress, restore, setAlpha, setBorderStyleForeground, setBorderStyleInactive, setBorderStyleModal, setBorderStyleMoving, setCloseBox, setDrawPostTransform, setDrawPostTransform, setDrawPreTransform, setDrawPreTransform, setHiddenMouse, setMaximumWindowHeight, setMaximumWindowWidth, setMinimumWindowHeight, setMinimumWindowWidth, setResizable, setTackboardsDirty, setTitle, setWindowTheme, setZ, setZoomBox, show, stopMovements, toString
-
Methods inherited from class jexer.TWidget
activate, activate, activateAll, addButton, addCalendar, addCheckBox, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addField, addImage, addImage, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addProgressBar, addRadioGroup, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, applyCellTransform, applyCellTransform, compareTo, doRepaint, drawBox, drawBoxShadow, drawChildren, drawForegroundBox, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getAttrXY, getAttrXY, getChildren, getClipboard, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getCustomMousePointer, getHeight, getLayoutManager, getLocale, getParent, getTheme, getWidgetUnderMouse, getWidth, getWindow, getX, getY, hasChild, hForegroundLineXY, hLineXY, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, isEnabled, isPixelMouse, isVisible, messageBox, messageBox, mouseWouldHit, onIdle, onMouseDoubleClick, putAll, putAttrXY, putAttrXY, putBackgroundAttrBox, putBackgroundAttrXY, putBackgroundAttrXY, putCharXY, putCharXY, putCharXY, putForegroundCharXY, putForegroundStringXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setCustomMousePointer, setDimensions, setEchoKeystrokes, setEchoKeystrokes, setEnabled, setHeight, setLayoutManager, setLocale, setMouseStyle, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, vLineXY, vLineXY
-
-
-
-
Constructor Detail
-
DummyWindow
public DummyWindow(TWindow window, WindowTransitionEffect windowTransitionEffect)
Public constructor.- Parameters:
window- the window that will be opened or closedwindowTransitionEffect- the effect this dummy window is placegolder for
-
-
Method Detail
-
handleEvent
public void handleEvent(TInputEvent event)
Description copied from class:TWidgetConsume event. Subclasses that want to intercept all events in one go can override this method.- Overrides:
handleEventin classTWidget- Parameters:
event- keyboard, mouse, resize, command, or menu event
-
draw
public void draw()
Description copied from class:TWindowCalled by TApplication.drawChildren() to render on screen.
-
disableOpenEffect
public boolean disableOpenEffect()
Description copied from class:TWindowIf true, disable any window opening effect. This is used by the window closing effects themselves so that they are not themselves opened.- Overrides:
disableOpenEffectin classTWindow- Returns:
- true if the window open effect should be disabled
-
disableCloseEffect
public boolean disableCloseEffect()
Description copied from class:TWindowIf true, disable any window closing effect. This is used by the window closing effects themselves so that they can be closed when finished.- Overrides:
disableCloseEffectin classTWindow- Returns:
- true if the window close effect should be disabled
-
getOldScreen
public Screen getOldScreen()
Get the old screen data.- Returns:
- the old screen data
-
getEffectedWindow
public TWindow getEffectedWindow()
Get the window this dummy window is convering up.- Returns:
- the window
-
-