public class DialogBoxWindow extends ModalWindow implements HasDynamicLayout, FrameContainer
TopLevelWindow.IconDataType| Modifier and Type | Field and Description |
|---|---|
private WindowDynamicLayoutIntegration |
dynamicLayout
Enabler of dynamic layout.
|
private GuiColorResolver |
gc
Color resolver.
|
contentPane, destroyInProgress, gd, windowPanelisteners, location, mousePtr, nativeInsets, physicalLocationZSCORE_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.
|
void |
destroy()
Destroy this window.
|
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(Dimension dimension)
This method must be called when the associated frame instance has
changed its dimension.
|
void |
onFrameLocationChanged(Point location)
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 |
reflectLocationChanged()
Called when the widget's location changes.
|
void |
refreshColors(BaseConfig bc)
Changes the dialog-box color set.
|
void |
resizeTo(NativePoint origin,
NativeDimension size,
boolean raise)
Resize the widget to the specified dimensions.
|
void |
resizeWindowWithFrame(FrameConfig frameCfg,
GuiDriver<?,?> gd)
Set the window to resize if the corresponding frame resize attribute is set.
|
void |
show()
Show window.
|
coordinates, doLayout, draw, findMouseSource, getBorder, getClientContentPane, getContentPane, getFocusCreatedByKeyboard, getGuiMessageArea, getId, getMaxWorkspaceSize, getMessageArea, getMinSize, getRelativeTo, getResizedSize, getScreenDimension, getStatusArea, getTitleBar, getWorkspaceScreenLocation, getWorkspaceSize, hasDecorations, hasTitlebar, hide, isModal, isRealized, isResizeWorkspace, isResizing, realize, resizeTo, resolveOwner, setColorResolver, setFocusCreatedByKeyboard, setSize, setWorkspaceLocation, setWorkspaceNativeSizeancestor, 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, repaint, repaintDecorations, resetMousePointer, resolveTitleFont, screenLocation, screenPhysicalLocation, setLastLeaveResult, setOwner, setWindowDefaultIcon, setWindowIcon, setWindowIcon, windowdrawIntdestroyWidgets, focusTraversable, getZOrderClass, hasFocus, hasTitle, isDisplayed, processKeyEvent, setTitle, 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, 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, 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, iconify, isDesktopMinimized, isMaximized, isMinimized, isShareActivationWithOwner, loadWindowIcon, maximize, resolveTitleFont, restore, 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, mouseReleaseddismiss, isDismissedwidgetsAsListprivate 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 ModalWindowpoint - 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(Dimension dimension)
onFrameDimensionChanged in interface FrameContainerdimension - The new dimension of the frame.public void resizeTo(NativePoint origin, NativeDimension size, boolean raise)
resizeTo in interface GuiWindowresizeTo in interface Widget<GuiOutputManager>resizeTo in class AbstractWidget<GuiOutputManager>origin - The top-left window corner new position.size - The new window size.raise - Flag indicating if the 4GL WINDOW-RESIZED event needs to be raised.public void onFrameLocationChanged(Point location)
onFrameLocationChanged in interface FrameContainerlocation - The new location of the frame.public void reflectLocationChanged()
reflectLocationChanged in class TopLevelWindow<GuiOutputManager>public void show()
show in interface Widget<GuiOutputManager>show in class ModalWindowpublic void resizeWindowWithFrame(FrameConfig frameCfg, GuiDriver<?,?> gd)
frameCfg - Object with access to the widget's configuration attributes.gd - Cached GUI driver reference.public void processEvent(Event event)
processEvent in interface Widget<GuiOutputManager>processEvent in class ModalWindowevent - Event to process.java.lang.IllegalStateException - If window MENUBAR contains wrong widget.public int getZOrderScore()
getZOrderScore in interface GuiWindowgetZOrderScore in class ModalWindowpublic NativeDimension getWorkspaceNativeSize()
getWorkspaceNativeSize in interface GuiWindowgetWorkspaceNativeSize in class ModalWindowpublic DynamicLayoutIntegration<GuiOutputManager> getDynamicLayout()
getDynamicLayout in interface HasDynamicLayoutpublic void destroy()
destroy in interface Widget<GuiOutputManager>destroy in class ModalWindowprotected GuiColorResolver getColorResolver()
getColorResolver in class ModalWindownull by default.