Class PageModePrint

All Implemented Interfaces:
Runnable

public class PageModePrint extends OutputRequest
Output request executor for POSPrinter method PageModePrint.
  • Constructor Details

    • PageModePrint

      public PageModePrint(JposCommonProperties props, int control)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      control - Page Mode control. One of PM_PAGE_MODE, PM_PRINT_SAVE, PM_NORMAL or PM_CANCEL.
  • Method Details

    • getControl

      public int getControl()
      POSPrinter method PageModePrint parameter control, see UPOS specification.
      Returns:
      PageModePrint parameter control.
    • addMethod

      public void addMethod(OutputRequest request) throws jpos.JposException
      Adds an output request to the request queue.
      Parameters:
      request - Request to be enqueued.
      Throws:
      jpos.JposException - if request is null (specifying synchronous method implementation).
    • invoke

      public void invoke() throws jpos.JposException
      Description copied from class: JposOutputRequest
      Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.
      Overrides:
      invoke in class JposOutputRequest
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.