|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.Action
com.jasperassistant.designer.viewer.actions.AbstractReportViewerAction
com.jasperassistant.designer.viewer.actions.NativePrintAction
Print action. Unlike the
PrintAction
which uses
the AWT print dialog, this action uses a native SWT print dialog.
Note that the actual printing is performed using the standard Java printing support and not the one provided by SWT. The downside of this is that not all of the printing settings, made in the PrintDialog, can be taken in account. The settings taken in account are:
WARNING: this code is still experimental. So far it was only tested on Windows XP.
Field Summary |
Fields inherited from interface org.eclipse.jface.action.IAction |
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
NativePrintAction(IReportViewer viewer)
|
Method Summary | |
protected boolean |
calculateEnabled()
Calculates the enablement condition |
void |
run()
|
Methods inherited from class com.jasperassistant.designer.viewer.actions.AbstractReportViewerAction |
dispose, getReportViewer, runBusy, viewerStateChanged |
Methods inherited from class org.eclipse.jface.action.Action |
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NativePrintAction(IReportViewer viewer)
Method Detail |
protected boolean calculateEnabled()
AbstractReportViewerAction
calculateEnabled
in class AbstractReportViewerAction
AbstractReportViewerAction.calculateEnabled()
public void run()
run
in interface org.eclipse.jface.action.IAction
run
in class AbstractReportViewerAction
AbstractReportViewerAction.run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |