uk.ac.lancs.relate.gateways.services.impl.printing
Class CustomPrintingServiceRequester

java.lang.Object
  extended by uk.ac.lancs.relate.gateways.services.architecture.ServiceRequester
      extended by uk.ac.lancs.relate.gateways.services.architecture.communication.sockets.SocketServiceRequester
          extended by uk.ac.lancs.relate.gateways.services.impl.printing.DirectPrintingServiceRequester
              extended by uk.ac.lancs.relate.gateways.services.impl.printing.CustomPrintingServiceRequester
All Implemented Interfaces:
java.io.Serializable, ProvidersAndRequestersCommonInterface

public class CustomPrintingServiceRequester
extends DirectPrintingServiceRequester

This class models a Printing requester. It is basically a client willing to to print by connecting to a CustomPrintingServerProvider.

Author:
Dominique Guinard
Personal Homepage
See Also:
Serialized Form

Constructor Summary
CustomPrintingServiceRequester(Service service)
          Creates a new instance of CustomPrintingServiceRequester
 
Method Summary
 void request(java.lang.Object o)
          Request for a file to be printed.
 
Methods inherited from class uk.ac.lancs.relate.gateways.services.architecture.communication.sockets.SocketServiceRequester
getSocket, sendServiceRequestTO, shutdown, startup
 
Methods inherited from class uk.ac.lancs.relate.gateways.services.architecture.ServiceRequester
askForConfirmation, askToSelectFile, confirmShutdown, confirmStartup, displayErrorMessage, displayMessage, displayNonBlockingMessage, getService, isStarted, setService, setStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomPrintingServiceRequester

public CustomPrintingServiceRequester(Service service)
Creates a new instance of CustomPrintingServiceRequester

Method Detail

request

public void request(java.lang.Object o)
Request for a file to be printed. This method will: 1) pop up a file chooser window 2) pop up a printing options dialog box. It will then pack the file to be printed along with the options in a PrintRequestTO and send it further to the Provider.

Overrides:
request in class DirectPrintingServiceRequester
Parameters:
o - The gateway view (or any other subclass of JFrame) attached to the calling controller.