de.jaret.util.ui.table.print
Class JaretTablePrintDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by de.jaret.util.ui.table.print.JaretTablePrintDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class JaretTablePrintDialog
extends org.eclipse.jface.dialogs.Dialog

Simple print dialog for a jaret table.

Version:
$Id: JaretTablePrintDialog.java 179 2007-01-07 17:37:50Z olk $
Author:
Peter Kliem

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
protected  JaretTablePrintConfiguration _configuration
           
protected  org.eclipse.swt.widgets.Label _pagesLabel
           
protected  org.eclipse.swt.printing.PrinterData[] _pdatas
           
protected  int _pIdx
           
protected  org.eclipse.swt.custom.CCombo _printerCombo
           
protected static org.eclipse.swt.printing.PrinterData _printerData
           
protected  java.lang.String[] _printers
           
protected  org.eclipse.swt.widgets.Button _repeatHeader
           
protected  JaretTablePrinter _tablePrinter
           
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
JaretTablePrintDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String printerName, JaretTablePrinter tablePrinter, JaretTablePrintConfiguration printConfiguration)
           
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
protected  void createParameterArea(org.eclipse.swt.widgets.Composite parent)
           
 JaretTablePrintConfiguration getConfiguration()
           
 org.eclipse.swt.printing.PrinterData getPrinterData()
           
protected  void okPressed()
           
 void setColLimit(int limit)
           
 void setRowLimit(int limit)
           
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_printerData

protected static org.eclipse.swt.printing.PrinterData _printerData

_pIdx

protected int _pIdx

_printers

protected java.lang.String[] _printers

_pdatas

protected org.eclipse.swt.printing.PrinterData[] _pdatas

_printerCombo

protected org.eclipse.swt.custom.CCombo _printerCombo

_configuration

protected JaretTablePrintConfiguration _configuration

_repeatHeader

protected org.eclipse.swt.widgets.Button _repeatHeader

_pagesLabel

protected org.eclipse.swt.widgets.Label _pagesLabel

_tablePrinter

protected JaretTablePrinter _tablePrinter
Constructor Detail

JaretTablePrintDialog

public JaretTablePrintDialog(org.eclipse.swt.widgets.Shell parentShell,
                             java.lang.String printerName,
                             JaretTablePrinter tablePrinter,
                             JaretTablePrintConfiguration printConfiguration)
Method Detail

setRowLimit

public void setRowLimit(int limit)

setColLimit

public void setColLimit(int limit)

getConfiguration

public JaretTablePrintConfiguration getConfiguration()

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
Overrides:
configureShell in class org.eclipse.jface.window.Window

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.Dialog

okPressed

protected void okPressed()
Overrides:
okPressed in class org.eclipse.jface.dialogs.Dialog

createParameterArea

protected void createParameterArea(org.eclipse.swt.widgets.Composite parent)

getPrinterData

public org.eclipse.swt.printing.PrinterData getPrinterData()


Copyright © 2012. All Rights Reserved.