public class PrintSetupDialog extends DialogBoxWindow
| Modifier and Type | Class and Description |
|---|---|
private class |
PrintSetupDialog.ButtonsPanel
The class implements the buttons-panel part of the alert box widget.
|
TopLevelWindow.IconDataType| Modifier and Type | Field and Description |
|---|---|
private static double |
BUTTONS_CHAR_HEIGHT
Height of buttons in characters.
|
private static double |
BUTTONS_CHAR_WIDTH
Width of buttons in characters.
|
private PrintSetupDialog.ButtonsPanel |
buttonsPanel
Buttons panel.
|
private GuiDriver |
gd
Cached driver.
|
private RadioSet |
orientationWidget
Radio set for page orientation
|
private PrintOptions |
printOptions
Print options
|
private ScreenBuffer |
sb
Screen buffer
|
private ComboBox |
sizeWidget
Combo for page size
|
private GuiWidgetFactory |
widgetFactory
Widget factory
|
contentPane, destroyInProgress, windowPanelisteners, location, mousePtr, nativeInsets, physicalLocationZSCORE_ALWAYS_ON_TOP, ZSCORE_NORMAL, ZSCORE_TOP_ONLY| Constructor and Description |
|---|
PrintSetupDialog(PrintOptions printOptions)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
build()
Initializes this instance.
|
private ControlSetItem[] |
buildPageSizeComboItems()
Returns the items of the page size combo.
|
void |
close()
Close this window.
|
void |
destroy()
Destroy this window.
|
void |
dismiss()
Let the modal UI element now that it should finish its modal input processing.
|
void |
doLayout()
Layout.
|
Dimension |
getMaxWorkspaceSize()
Get the maximum size of the window workspace area.
|
PrintOptions |
getOptions()
Helper method to get the edited result when finished.
|
Frame<?> |
getTopFrame(boolean ignoreState)
Returns the frame that is on top of the Z-order or
null
if no such frame present. |
boolean |
isDismissed()
Returns
true when the modal UI element has dismissed (finished its modal input). |
void |
onFrameDimensionChanged(Dimension dimension)
This method must be called when the associated frame instance has
changed its dimension.
|
void |
realize()
Show widget.
|
private void |
saveOptions()
Saves the screen values of the frame widgets in
printOptions. |
addFrame, getColorResolver, getDynamicLayout, getFrame, getPortableMouseEventCoordinates, getWorkspaceNativeSize, getZOrderScore, onFrameLocationChanged, processEvent, reflectLocationChanged, refreshColors, resizeTo, resizeWindowWithFrame, showcoordinates, draw, findMouseSource, getBorder, getClientContentPane, getContentPane, getFocusCreatedByKeyboard, getGuiMessageArea, getId, getMessageArea, getMinSize, getRelativeTo, getResizedSize, getScreenDimension, getStatusArea, getTitleBar, getWorkspaceScreenLocation, getWorkspaceSize, hasDecorations, hasTitlebar, hide, isModal, isRealized, isResizeWorkspace, isResizing, resizeTo, resolveOwner, setColorResolver, setFocusCreatedByKeyboard, setSize, setWorkspaceLocation, setWorkspaceNativeSizeancestor, bounds, clipRectangle, defaultFocus, findFrames, findFrames, getFirstVisibleFrame, getFrames, getNextEnabledFrame, getNextVisibleFrame, getOwner, getOwnerOpt, getPlacementManager, getPrevEnabledFrame, 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, waiticonify, 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, mouseReleasedwidgetsAsListprivate static double BUTTONS_CHAR_WIDTH
private static double BUTTONS_CHAR_HEIGHT
private final GuiWidgetFactory widgetFactory
private PrintOptions printOptions
private GuiDriver gd
private PrintSetupDialog.ButtonsPanel buttonsPanel
private ScreenBuffer sb
private RadioSet orientationWidget
private ComboBox sizeWidget
public PrintSetupDialog(PrintOptions printOptions)
printOptions - Print options.public void doLayout()
doLayout in interface Container<GuiOutputManager>doLayout in class ModalWindowpublic void onFrameDimensionChanged(Dimension dimension)
onFrameDimensionChanged in interface FrameContaineronFrameDimensionChanged in class DialogBoxWindowdimension - The new dimension of the frame.public void realize()
realize in class ModalWindowpublic void close()
close in interface GuiWindowclose in class TopLevelWindow<GuiOutputManager>public void dismiss()
public boolean isDismissed()
true when the modal UI element has dismissed (finished its modal input).public PrintOptions getOptions()
public void destroy()
destroy in interface Widget<GuiOutputManager>destroy in class DialogBoxWindowpublic Frame<?> getTopFrame(boolean ignoreState)
null
if no such frame present. If requested method also can filter out all
invisible, disabled and out of scope frames.getTopFrame in class TopLevelWindow<GuiOutputManager>ignoreState - if true then ignore frame state during search.null.private void build()
public Dimension getMaxWorkspaceSize()
getMaxWorkspaceSize in interface GuiWindowgetMaxWorkspaceSize in class ModalWindowprivate ControlSetItem[] buildPageSizeComboItems()
private void saveOptions()
printOptions.