edu.ucsb.nceas.morpho.plugins
Interface PrinterInterface

All Known Implementing Classes:
PrinterPlugin

public interface PrinterInterface

This Interface enables calling classes to display and be able to print a html or plain text string. Implementing classes need to display the provided string in an appropriate display panel and provide an option of printing that.


Field Summary
static java.lang.String DEFAULT_CONTENT_TYPE
          constant to describe the default content type of the string to be displayed
 
Method Summary
 void display(java.lang.String displayString, java.lang.String contentType)
          method to display a user-provided String and provide an option to print it.
 void print(java.lang.String displayString, java.lang.String contentType)
          method to just print a user-provided String.
 

Field Detail

DEFAULT_CONTENT_TYPE

public static final java.lang.String DEFAULT_CONTENT_TYPE
constant to describe the default content type of the string to be displayed

See Also:
Constant Field Values
Method Detail

display

public void display(java.lang.String displayString,
                    java.lang.String contentType)
method to display a user-provided String and provide an option to print it. The display string could be a html string or a plain text. The content type of the display string is also provided by the caller.

Parameters:
displayString - the string to be displayed (html or plain text string)
contentType - the contentType of the display string ("text/html" or "text/plain")

print

public void print(java.lang.String displayString,
                  java.lang.String contentType)
method to just print a user-provided String. The print string could be a html string or a plain text. The content type of the print string is also provided by the caller.

Parameters:
displayString - the string to be printed (html or plain text string)
contentType - the contentType of the print string ("text/html" or "text/plain")


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.