JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.page
Class JCAlternate

java.lang.Object
  |
  +--com.klg.jclass.page.JCAlternate

public class JCAlternate
extends Object

The JCAlternate controls alternating colors on rows and columns of the JCPageTable. Row and column alternating are mutually exclusive.


Field Summary
 Color c1
          The color for rows/columns where row/column number % 2 == 0.
 Color c2
          The color for rows/columns where row/column number % 2 != 0.
static com.klg.jclass.page.JCAlternate COLUMN
          Alternate lightGray/gray on columns.
static com.klg.jclass.page.JCAlternate ROW
          Alternate lightGray/gray on rows.
 boolean rowOriented
          Alternate colors on rows (true) or columns (false).
 
Constructor Summary
JCAlternate(Color c1, Color c2, boolean rowOriented)
          The Alternate object controls whether to alternate on rows or columns and the colors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

c1

public Color c1
The color for rows/columns where row/column number % 2 == 0.


c2

public Color c2
The color for rows/columns where row/column number % 2 != 0.


rowOriented

public boolean rowOriented
Alternate colors on rows (true) or columns (false).


ROW

public static final com.klg.jclass.page.JCAlternate ROW
Alternate lightGray/gray on rows.


COLUMN

public static final com.klg.jclass.page.JCAlternate COLUMN
Alternate lightGray/gray on columns.

Constructor Detail

JCAlternate

public JCAlternate(Color c1,
                   Color c2,
                   boolean rowOriented)
The Alternate object controls whether to alternate on rows or columns and the colors.

Parameters:
c1 - the Color for rows rowNumber % 2 == 0
c2 - the Color for rows rowNumber % 2 != 0
rowOriented - a boolean, alternate colors on rows (true) or columns (false)

Copyright © 2004 Quest Software Inc..
All rights reserved.