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, windowPane
location, mousePtr, nativeInsets, physicalLocation
ZSCORE_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()
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, refreshColors, show
coordinates, draw, findMouseSource, getBorder, getClientContentPane, getContentPane, getGuiMessageArea, getId, getMessageArea, getMinSize, getResizedSize, getScreenDimension, getStatusArea, getTitleBar, getWorkspaceScreenLocation, getWorkspaceSize, hasDecorations, hasTitlebar, hide, isModal, isRealized, isResizeWorkspace, isResizing, resizeTo, resolveOwner, setColorResolver, setSize, setWorkspaceLocation, setWorkspaceNativeSize
ancestor, bounds, clipRectangle, defaultFocus, findFrames, findFrames, getFirstVisibleFrame, getFrames, getNextEnabledFrame, getNextVisibleFrame, getOwner, getOwnerOpt, getPlacementManager, getPrevEnabledFrame, 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
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
private 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)
public void doLayout()
doLayout
in interface Container<GuiOutputManager>
doLayout
in class ModalWindow
public void onFrameDimensionChanged()
onFrameDimensionChanged
in class DialogBoxWindow
public void realize()
realize
in class ModalWindow
public void close()
close
in interface GuiWindow
close
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 ModalWindow
public 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 GuiWindow
getMaxWorkspaceSize
in class ModalWindow
private ControlSetItem[] buildPageSizeComboItems()
private void saveOptions()
printOptions
.