javax.swing
Enum JTable.PrintMode

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.lang.Enum sample code for java.lang.Enum definition code for java.lang.Enum <JTable.PrintMode sample code for javax.swing.JTable.PrintMode definition code for javax.swing.JTable.PrintMode >
      extended by javax.swing.JTable.PrintMode
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <JTable.PrintMode sample code for javax.swing.JTable.PrintMode definition code for javax.swing.JTable.PrintMode >
Enclosing class:
JTable sample code for javax.swing.JTable definition code for javax.swing.JTable

public static enum JTable.PrintMode
extends Enum sample code for java.lang.Enum definition code for java.lang.Enum <JTable.PrintMode sample code for javax.swing.JTable.PrintMode definition code for javax.swing.JTable.PrintMode >

Printing modes, used in printing JTables.

Since:
1.5
See Also:
JTable.print(JTable.PrintMode, MessageFormat, MessageFormat, boolean, PrintRequestAttributeSet, boolean) sample code for javax.swing.JTable.print(javax.swing.JTable.PrintMode, java.text.MessageFormat, java.text.MessageFormat, boolean, javax.print.attribute.PrintRequestAttributeSet, boolean) definition code for javax.swing.JTable.print(javax.swing.JTable.PrintMode, java.text.MessageFormat, java.text.MessageFormat, boolean, javax.print.attribute.PrintRequestAttributeSet, boolean) , JTable.getPrintable(javax.swing.JTable.PrintMode, java.text.MessageFormat, java.text.MessageFormat) sample code for javax.swing.JTable.getPrintable(javax.swing.JTable.PrintMode, java.text.MessageFormat, java.text.MessageFormat) definition code for javax.swing.JTable.getPrintable(javax.swing.JTable.PrintMode, java.text.MessageFormat, java.text.MessageFormat)

Enum Constant Summary
FIT_WIDTH sample code for javax.swing.JTable.PrintMode.FIT_WIDTH definition code for javax.swing.JTable.PrintMode.FIT_WIDTH
          Printing mode that scales the output smaller, if necessary, to fit the table's entire width (and thereby all columns) on each page; Rows are spread across multiple pages as necessary.
NORMAL sample code for javax.swing.JTable.PrintMode.NORMAL definition code for javax.swing.JTable.PrintMode.NORMAL
          Printing mode that prints the table at its current size, spreading both columns and rows across multiple pages if necessary.
 
Method Summary
static JTable.PrintMode sample code for javax.swing.JTable.PrintMode definition code for javax.swing.JTable.PrintMode valueOf sample code for javax.swing.JTable.PrintMode.valueOf(java.lang.String) definition code for javax.swing.JTable.PrintMode.valueOf(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Returns the enum constant of this type with the specified name.
static JTable.PrintMode sample code for javax.swing.JTable.PrintMode definition code for javax.swing.JTable.PrintMode [] values sample code for javax.swing.JTable.PrintMode.values() definition code for javax.swing.JTable.PrintMode.values() ()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum sample code for java.lang.Enum definition code for java.lang.Enum
clone sample code for java.lang.Enum.clone() definition code for java.lang.Enum.clone() , compareTo sample code for java.lang.Enum.compareTo(E) definition code for java.lang.Enum.compareTo(E) , equals sample code for java.lang.Enum.equals(java.lang.Object) definition code for java.lang.Enum.equals(java.lang.Object) , getDeclaringClass sample code for java.lang.Enum.getDeclaringClass() definition code for java.lang.Enum.getDeclaringClass() , hashCode sample code for java.lang.Enum.hashCode() definition code for java.lang.Enum.hashCode() , name sample code for java.lang.Enum.name() definition code for java.lang.Enum.name() , ordinal sample code for java.lang.Enum.ordinal() definition code for java.lang.Enum.ordinal() , toString sample code for java.lang.Enum.toString() definition code for java.lang.Enum.toString() , valueOf sample code for java.lang.Enum.valueOf(java.lang.Class, java.lang.String) definition code for java.lang.Enum.valueOf(java.lang.Class, java.lang.String)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Enum Constant Detail

NORMAL

public static final JTable.PrintMode sample code for javax.swing.JTable.PrintMode definition code for javax.swing.JTable.PrintMode  NORMAL
Printing mode that prints the table at its current size, spreading both columns and rows across multiple pages if necessary.


FIT_WIDTH

public static final JTable.PrintMode sample code for javax.swing.JTable.PrintMode definition code for javax.swing.JTable.PrintMode  FIT_WIDTH
Printing mode that scales the output smaller, if necessary, to fit the table's entire width (and thereby all columns) on each page; Rows are spread across multiple pages as necessary.

Method Detail

values sample code for javax.swing.JTable.PrintMode.values() definition code for javax.swing.JTable.PrintMode.values()

public static final JTable.PrintMode sample code for javax.swing.JTable.PrintMode definition code for javax.swing.JTable.PrintMode [] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(JTable.PrintMode c : JTable.PrintMode.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf sample code for javax.swing.JTable.PrintMode.valueOf(java.lang.String) definition code for javax.swing.JTable.PrintMode.valueOf(java.lang.String)

public static JTable.PrintMode sample code for javax.swing.JTable.PrintMode definition code for javax.swing.JTable.PrintMode  valueOf(String sample code for java.lang.String definition code for java.lang.String  name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if this enum type has no constant with the specified name