public class DialogBoxWindow extends ModalWindow implements HasDynamicLayout
TopLevelWindow.IconDataType
Modifier and Type | Field and Description |
---|---|
private WindowDynamicLayoutIntegration |
dynamicLayout
Enabler of dynamic layout.
|
private GuiColorResolver |
gc
Color resolver.
|
contentPane, gd, windowPane
location, mousePtr, nativeInsets, physicalLocation
ZSCORE_ALWAYS_ON_TOP, ZSCORE_NORMAL, ZSCORE_TOP_ONLY
Constructor and Description |
---|
DialogBoxWindow(java.lang.String title)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFrame(Widget<GuiOutputManager> frame,
double column,
double row)
Adds the specified frame to the window's content pane.
|
protected GuiColorResolver |
getColorResolver()
Get the color resolver.
|
DynamicLayoutIntegration<GuiOutputManager> |
getDynamicLayout()
Returns the dynamic layout widget integration implementation.
|
FrameGuiImpl |
getFrame()
Returns the managing frame instance.
|
NativePoint |
getPortableMouseEventCoordinates(NativePoint point)
Get a point to represent the LAST-EVENT:X and LAST-EVENT:Y coordinates.
|
NativeDimension |
getWorkspaceNativeSize()
Get the native size of the window workspace area.
|
int |
getZOrderScore()
The method returns the window's relative z-order.
|
void |
onFrameDimensionChanged()
This method must be called when the associated frame instance has
changed its dimension.
|
void |
onFrameLocationChanged()
This method must be called when the associated frame instance has
changed its location.
|
void |
processEvent(Event event)
Process event and dispatch it to specific method.
|
void |
refreshColors(BaseConfig bc)
Changes the dialog-box color set.
|
void |
show()
Show window.
|
coordinates, destroy, doLayout, draw, findMouseSource, getBorder, getClientContentPane, getContentPane, getGuiMessageArea, getId, getMaxWorkspaceSize, getMessageArea, getMinSize, getResizedSize, getScreenDimension, getStatusArea, getTitleBar, getWorkspaceScreenLocation, getWorkspaceSize, hasDecorations, hasTitlebar, hide, isModal, isRealized, isResizeWorkspace, isResizing, realize, resizeTo, resolveOwner, setColorResolver, setSize, setWorkspaceLocation, setWorkspaceNativeSize
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, reflectLocationChange, repaint, repaintDecorations, resolveTitleFont, screenLocation, screenPhysicalLocation, setLastLeaveResult, setOwner, setWindowDefaultIcon, setWindowIcon, window
drawInt
destroyWidgets, focusTraversable, getZOrderClass, hasFocus, hasTitle, isDisplayed, processKeyEvent, setTitle, title, toString
add, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, currentFocus, currentFocus, cycleFocus, detach, dimension, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, formatDump, get, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, height, insets, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, prepareWidgets, prevFocus, reflectAncestorChange, remove, removeContainerStateListener, replace, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setTabItemList, setWidth, startSizeChange, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, width
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestorId, autoResize, clear, clearWidget, clipRectangle, clipWith, config, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, hidden, highlighted, ignoreAction, isCurrent, isDirectManipulationCapable, isDirectManipulationRequired, isEnabled, isHeader, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, screen, screenDimension, screenHeight, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, translate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, iconify, isDesktopMinimized, isMaximized, isMinimized, isShareActivationWithOwner, loadWindowIcon, maximize, resizeTo, resolveTitleFont, restore, setLocation, setPhysicalLocation, setWindowIcon
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, config, defaultMousePtr, dimension, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, height, hidden, highlighted, insets, isCurrent, isDirectManipulable, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, minimumSize, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, processDirectManipulationEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, repaint, requestFocus, requestFocus, requestSync, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setParent, setState, setVisible, supportsCustomMousePointer, topLevelWindow, unrealize, width, window
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
dismiss, isDismissed
private GuiColorResolver gc
private WindowDynamicLayoutIntegration dynamicLayout
public DialogBoxWindow(java.lang.String title)
title
- The frame title to be displayed in the window title bar.public void addFrame(Widget<GuiOutputManager> frame, double column, double row)
addFrame
in class TopLevelWindow<GuiOutputManager>
frame
- The frame instance to process.column
- The row number for the upper-left frame corner.row
- The column number for the upper-left frame corner.public FrameGuiImpl getFrame()
public NativePoint getPortableMouseEventCoordinates(NativePoint point)
AbstractWidget.getPortableMouseEventCoordinates(NativePoint)
.getPortableMouseEventCoordinates
in class ModalWindow
point
- The point (relative to the window's top-left corner) for which the coordinates for
the portable mouse events are needed.null
if such an event can't be raised.public void refreshColors(BaseConfig bc)
bc
- New config to apply.public void onFrameDimensionChanged()
public void onFrameLocationChanged()
public void show()
show
in interface Widget<GuiOutputManager>
show
in class ModalWindow
public void processEvent(Event event)
processEvent
in interface Widget<GuiOutputManager>
processEvent
in class ModalWindow
event
- Event to process.java.lang.IllegalStateException
- If window MENUBAR contains wrong widget.public int getZOrderScore()
getZOrderScore
in interface GuiWindow
getZOrderScore
in class ModalWindow
public NativeDimension getWorkspaceNativeSize()
getWorkspaceNativeSize
in interface GuiWindow
getWorkspaceNativeSize
in class ModalWindow
public DynamicLayoutIntegration<GuiOutputManager> getDynamicLayout()
getDynamicLayout
in interface HasDynamicLayout
protected GuiColorResolver getColorResolver()
getColorResolver
in class ModalWindow
null
by default.