public class OverlayWindow<TChild extends Widget<GuiOutputManager>> extends TopLevelWindow<GuiOutputManager> implements GuiWindow
TopLevelWindow.IconDataType| Modifier and Type | Field and Description |
|---|---|
private boolean |
activateOnShow
Flag indicating if the window should be activated when it's shown.
|
private Container |
childParent
Stores a reference to a parent container that contains the child widget used to construct this object.
|
private java.lang.Runnable |
destroyingListener
The callback called when window is being destroyed.
|
protected GuiDriver<?,?> |
gd
Cached GUI driver reference.
|
private WidgetId |
id
Window id.
|
private Widget<GuiOutputManager> |
mousePressedSource
The last mouse pressed determined for this window.
|
private boolean |
realized
Cached realized flag.
|
private WidgetLocationRef |
relativeTo
Represents the location relative to which the overlay window is positioned.
|
protected BorderedPanel<GuiOutputManager> |
windowPane
Overlay window single content pane.
|
listeners, location, mousePtr, nativeInsets, physicalLocationZSCORE_ALWAYS_ON_TOP, ZSCORE_NORMAL, ZSCORE_TOP_ONLY| Constructor and Description |
|---|
OverlayWindow(TChild child)
Default constructor.
|
OverlayWindow(TChild child,
TopLevelWindow<GuiOutputManager> owner)
Default constructor
.
|
OverlayWindow(TChild child,
TopLevelWindow<GuiOutputManager> owner,
WidgetLocationRef relativeTo)
Default constructor.
|
OverlayWindow(TChild child,
TopLevelWindow<GuiOutputManager> owner,
WidgetLocationRef relativeTo,
boolean activateOnShow)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CoordinatesConversion |
coordinates()
Returns the output window's coordinates conversion service.
|
void |
destroy()
Destroy this window.
|
void |
draw()
Draw widget.
|
Widget<GuiOutputManager> |
findMouseSource(MouseEvt evt)
Find the widget to which the given mouse event can be applied.
|
Border<GuiOutputManager> |
getBorder()
Returns the window's border implementation.
|
TChild |
getChild()
Returns the child widget instance passed in the constructor.
|
Container<GuiOutputManager> |
getClientContentPane()
Returns the container where useful client content widgets are placed.
|
Container<GuiOutputManager> |
getContentPane()
Get window content pane.
|
MessageAreaGuiImpl |
getGuiMessageArea()
Get the message area widget associated with this window.
|
WidgetId |
getId()
Widget ID.
|
Dimension |
getMaxWorkspaceSize()
Get the maximum size of the window workspace area.
|
MessageArea<GuiOutputManager> |
getMessageArea()
Get the message area widget associated with this window.
|
NativeDimension |
getMinSize()
Returns the window minimum size.
|
NativePoint |
getPortableMouseEventCoordinates(NativePoint point)
Get a point to represent the LAST-EVENT:X and LAST-EVENT:Y coordinates.
|
WidgetLocationRef |
getRelativeTo()
Returns the widget location relativity.
|
NativeDimension |
getResizedSize()
Determine the resized window size.
|
Dimension |
getScreenDimension()
Get dimension of screen area available for the placement of frames.
|
StatusLine<GuiOutputManager> |
getStatusArea()
Get the status area widget associated with this window.
|
WindowTitleBar |
getTitleBar()
Get the title bar widget associated witn this window.
|
NativeDimension |
getWorkspaceNativeSize()
Get the native size of the window workspace area.
|
NativePoint |
getWorkspaceScreenLocation()
Get the screen location of the window workspace area, in native units.
|
Dimension |
getWorkspaceSize()
Get the size of the window workspace area.
|
int |
getZOrderScore()
The method returns the window's relative z-order.
|
boolean |
hasDecorations()
Determine if this window can have decorations.
|
void |
hide()
Hide window.
|
protected boolean |
isCloseOnWindowDeactivated()
Determines whether the window should be closed when it is deactivated.
|
boolean |
isRealized()
Returns true when the overlay window has been realized.
|
boolean |
isResizeWorkspace()
Determine if this window workspace needs to be resized.
|
boolean |
isResizing()
Determine if this window is being resized.
|
boolean |
isShareActivationWithOwner()
This method indicates whether the window shares its activation state with its owner.
|
void |
processEvent(Event event)
Process event and dispatch it to specific method.
|
void |
realize()
The method realizes this overlay window.
|
void |
resizeTo(NativePoint origin,
NativeDimension size)
Resize the widget to the specified dimensions.
|
void |
setDestroyingListener(java.lang.Runnable run)
Sets the destroying listener.
|
void |
setRelativeTo(WidgetLocationRef relativeTo)
Sets the widget location relativity.
|
void |
setSize(double width,
double height)
Set container size.
|
void |
setWorkspaceLocation(int x,
int y)
Sets the window workspace location.
|
void |
setWorkspaceNativeSize(int width,
int height)
Sets the native size of the window workspace area.
|
void |
show()
Show window.
|
protected void |
updateLocation()
This method updates the location of the overlay window.
|
addFrame, ancestor, bounds, clipRectangle, close, defaultFocus, findFrames, findFrames, getFirstVisibleFrame, getFrames, getNextEnabledFrame, getNextVisibleFrame, getOwner, getOwnerOpt, getPlacementManager, getPrevEnabledFrame, getTopFrame, getTopVisibleFrame, getWindowDefaultIcon, isFocusable, isLastLeaveResult, isMaximized, isMinimized, loadWindowIcon, parentOrSelfHidden, physicalBounds, processFocusEvent, reflectLocationChanged, repaint, repaintDecorations, resetMousePointer, resolveTitleFont, screenLocation, screenPhysicalLocation, setLastLeaveResult, setOwner, setWindowDefaultIcon, setWindowIcon, setWindowIcon, windowdrawIntdestroyWidgets, focusTraversable, getZOrderClass, hasFocus, hasTitle, hasTitlebar, isDisplayed, isModal, processKeyEvent, setTitle, 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, setTabItemList, setWidth, startSizeChange, swap, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, widgetStateChanged, width_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestorId, autoResize, clear, clearWidget, clipRectangle, clipWith, config, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, 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, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, 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, waitclose, getFocusCreatedByKeyboard, iconify, isDesktopMinimized, isMaximized, isMinimized, loadWindowIcon, maximize, resizeTo, resolveTitleFont, restore, setFocusCreatedByKeyboard, setLocation, setPhysicalLocation, setWindowIconacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, completeTrigger, config, defaultMousePtr, dimension, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getIdForTrigger, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, hasTooltip, height, hidden, highlighted, ignoreEnable, initialHeight, initialWidth, insets, isCurrent, isCurrent, isDirectManipulable, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, minimumSize, moveToBottom, moveToTop, name, navigable, oleDrag, parent, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, refreshWidget, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestSync, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setMousePointer, setParent, setSensitiveForUIB, setState, setVisible, setWindow, startTrigger, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unrealize, unregisterWidgetListener, validateDisplayValue, widgetStateChanged, width, windowmouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasedwidgetsAsListprivate WidgetId id
protected BorderedPanel<GuiOutputManager> windowPane
protected GuiDriver<?,?> gd
private Widget<GuiOutputManager> mousePressedSource
private boolean realized
private WidgetLocationRef relativeTo
private java.lang.Runnable destroyingListener
private Container childParent
private boolean activateOnShow
public OverlayWindow(TChild child)
child - Widget to put inside the overlay window.public OverlayWindow(TChild child, TopLevelWindow<GuiOutputManager> owner)
child - Widget to put inside the overlay window.owner - Window that is the owner of the child widget used inside overlay window.public OverlayWindow(TChild child, TopLevelWindow<GuiOutputManager> owner, WidgetLocationRef relativeTo)
child - Widget to put inside the overlay window.owner - Window that is the owner of the child widget used inside overlay window.relativeTo - Widget location relativity.public OverlayWindow(TChild child, TopLevelWindow<GuiOutputManager> owner, WidgetLocationRef relativeTo, boolean activateOnShow)
child - Widget to put inside the overlay window.owner - Window that is the owner of the child widget used inside overlay window.relativeTo - Widget location relativity.activateOnShow - Flag indicating if the window should be activated when it is shown.public TChild getChild()
public boolean hasDecorations()
hasDecorations in interface GuiWindowtrue.public WidgetId getId()
getId in interface Widget<GuiOutputManager>getId in class AbstractWidget<GuiOutputManager>public Container<GuiOutputManager> getContentPane()
getContentPane in class TopLevelWindow<GuiOutputManager>public void draw()
draw in interface Widget<GuiOutputManager>draw in class OuterFrame<GuiOutputManager>public boolean isRealized()
isRealized in interface Widget<GuiOutputManager>isRealized in class AbstractWidget<GuiOutputManager>public void realize()
public void show()
show in interface Widget<GuiOutputManager>show in class TitledWindow<GuiOutputManager>protected void updateLocation()
public void hide()
hide in interface Widget<GuiOutputManager>hide in class TitledWindow<GuiOutputManager>public MessageAreaGuiImpl getGuiMessageArea()
getGuiMessageArea in interface GuiWindowpublic void resizeTo(NativePoint origin, NativeDimension size)
public CoordinatesConversion coordinates()
coordinates in interface GuiWindowCoordinatesConversion instance.public void setSize(double width,
double height)
setSize in interface GuiWindowsetSize in interface Container<GuiOutputManager>setSize in class AbstractContainer<GuiOutputManager>width - New width.height - New height.public boolean isResizing()
isResizing in interface GuiWindowfalse.public boolean isResizeWorkspace()
isResizeWorkspace in interface GuiWindowfalse.public NativeDimension getResizedSize()
getResizedSize in interface GuiWindowpublic WindowTitleBar getTitleBar()
getTitleBar in interface GuiWindowgetTitleBar in class TopLevelWindow<GuiOutputManager>public MessageArea<GuiOutputManager> getMessageArea()
getMessageArea in interface GuiWindownull, as overlay windows don't have a message area.public StatusLine<GuiOutputManager> getStatusArea()
getStatusArea in interface GuiWindowpublic Dimension getWorkspaceSize()
getWorkspaceSize in class TitledWindow<GuiOutputManager>public NativePoint getWorkspaceScreenLocation()
getWorkspaceScreenLocation in interface GuiWindowpublic NativeDimension getWorkspaceNativeSize()
getWorkspaceNativeSize in interface GuiWindowpublic void setWorkspaceNativeSize(int width,
int height)
setWorkspaceNativeSize in interface GuiWindowwidth - New workspace width.height - New workspace height.public void setWorkspaceLocation(int x,
int y)
setWorkspaceLocation in interface GuiWindowx - The x location.y - The y location.public Dimension getScreenDimension()
getScreenDimension in class TopLevelWindow<GuiOutputManager>Dimension which describes size of the
available screen area.public Widget<GuiOutputManager> findMouseSource(MouseEvt evt)
findMouseSource in class TitledWindow<GuiOutputManager>evt - The mouse event.null if none found.public NativePoint getPortableMouseEventCoordinates(NativePoint point)
null.getPortableMouseEventCoordinates in class AbstractWidget<GuiOutputManager>point - The point (relative to the window's top-left corner) for which the coordinates for
the portable mouse events are needed.null.public void destroy()
destroy in interface Widget<GuiOutputManager>destroy in class TitledWindow<GuiOutputManager>public void processEvent(Event event)
processEvent in interface Widget<GuiOutputManager>processEvent in class TitledWindow<GuiOutputManager>event - Event to process.public Dimension getMaxWorkspaceSize()
getMaxWorkspaceSize in interface GuiWindowpublic NativeDimension getMinSize()
getMinSize in interface GuiWindowpublic boolean isShareActivationWithOwner()
isShareActivationWithOwner in interface GuiWindowpublic Border<GuiOutputManager> getBorder()
null
is returned, the window has no border.public void setDestroyingListener(java.lang.Runnable run)
run - The callback reference.public int getZOrderScore()
getZOrderScore in interface GuiWindowpublic Container<GuiOutputManager> getClientContentPane()
getClientContentPane in interface GuiWindowprotected boolean isCloseOnWindowDeactivated()
true if the window should be closed when deactivated, false otherwise.public WidgetLocationRef getRelativeTo()
getRelativeTo in class TopLevelWindow<GuiOutputManager>public void setRelativeTo(WidgetLocationRef relativeTo)
relativeTo - New widget location relativity.