Search in sources :

Example 1 with PrintCommand

use of net.sourceforge.nattable.print.command.PrintCommand in project translationstudio8 by heartsome.

the class PrintAction method run.

public void run(NatTable natTable, KeyEvent event) {
    natTable.doCommand(new TurnViewportOffCommand());
    natTable.doCommand(new PrintCommand(natTable.getConfigRegistry(), natTable.getShell()));
    natTable.doCommand(new TurnViewportOnCommand());
}
Also used : TurnViewportOnCommand(net.sourceforge.nattable.print.command.TurnViewportOnCommand) PrintCommand(net.sourceforge.nattable.print.command.PrintCommand) TurnViewportOffCommand(net.sourceforge.nattable.print.command.TurnViewportOffCommand)

Aggregations

PrintCommand (net.sourceforge.nattable.print.command.PrintCommand)1 TurnViewportOffCommand (net.sourceforge.nattable.print.command.TurnViewportOffCommand)1 TurnViewportOnCommand (net.sourceforge.nattable.print.command.TurnViewportOnCommand)1