Class Snippet1


  • public class Snippet1
    extends java.lang.Object
    Demonstrates how to print the contents of a Table widget. This snippet uses the GridPrint, TextPrint, and ImagePrint classes.
    • Constructor Summary

      Constructors 
      Constructor Description
      Snippet1()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Print createCell​(org.eclipse.swt.graphics.Image image, java.lang.String text, int align)  
      static Print createPrint​(org.eclipse.swt.widgets.Table table)  
      static void main​(java.lang.String[] args)
      Executes the snippet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Snippet1

        public Snippet1()
    • Method Detail

      • createPrint

        public static Print createPrint​(org.eclipse.swt.widgets.Table table)
      • createCell

        public static Print createCell​(org.eclipse.swt.graphics.Image image,
                                       java.lang.String text,
                                       int align)
      • main

        public static void main​(java.lang.String[] args)
        Executes the snippet.
        Parameters:
        args - command-line args.