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
        Returns:
        the short description
      • accepts

        public Class[] accepts()
        Returns the classes that the action accepts.
        Specified by:
        accepts in class AbstractSendToAction
        Returns:
        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
        Parameters:
        o - the object to send
        Returns:
        null if everything OK, otherwise error message