Class Printer

    • Constructor Detail

      • Printer

        public Printer()
    • Method Detail

      • getAction

        public String getAction()
        Returns the short description of the sendto action. Description gets used for menu items.
        Specified by:
        getAction in class AbstractSendToAction
        the short description
      • accepts

        public Class[] accepts()
        Returns the classes that the action accepts.
        Specified by:
        accepts in class AbstractSendToAction
        the accepted classes
      • send

        public String send​(Object o)
        Performs the actual sending/forwarding/processing of the data.

        Code for printing java.awt.Component taken from here.
        Specified by:
        send in class AbstractSendToAction
        o - the object to send
        null if everything OK, otherwise error message