Class symantec.itools.awt.CompareCells
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class symantec.itools.awt.CompareCells
Object
   |
   +----symantec.itools.awt.CompareCells
  -  public abstract class CompareCells
  
-  extends Object
  
-  implements CompareFuncCB
   
This is a helper class to the MultiList class.
 It is used to compare Cells of the MultiList.
  -  Version:
  
 -  1.1, July 14, 1997
  
 -  Author:
  
 -  Symantec
 
  
  -  
	bs
   -   A set of flags that indicates which rows are hilighted in the MultiList.
  
 -  
	lessOrBig
   -   The current compare mode for the 
lessThan method.
   -  
	selRow
   -   The zero-relative index of the currently selected row, or -1 if none.
 
  
  -  
	symantec.itools.awt.CompareCells()
   -   Constructs a CompareCells object.
 
  
  -  
	callBackSwap(Object, Object)
   -   Exchanges the compared values (rows) in the two given objects.
  
 -  
	compareObjects(Object, Object)
   -   Compares the value of two objects.
  
 -  
	getSelectedRow()
   -   Gets the row which has been noted as selected.
  
 -  
	lessThan(Object, Object)
   -   By default, determines whether the first object's value is less than
 the second's.
  
 -  
	reverse()
   -   Toggles the comparison done by the 
lessThan method.
   -  
	setCurrentBitSet(BitSet)
   -   Notes which rows are hilighted before a sort is performed.
  
 -  
	setSelectedRow(int)
   -   Notes which row is selected before a sort is performed.
 
  
bs
protected java.util.BitSet bs
  -  A set of flags that indicates which rows are hilighted in the MultiList.
 
lessOrBig
protected boolean lessOrBig
  -  The current compare mode for the 
lessThan method.
 If true, the lessThan method determines whether the
 first object's value is less than the second's.
 If false, the lessThan method determines whether the
 first object's value is is greater than or equal to the second's.
 
 
    -  See Also:
    
 -  lessThan, reverse
  
 
 
 
selRow
protected int selRow
  -  The zero-relative index of the currently selected row, or -1 if none.
 
  
CompareCells
public CompareCells()
  -  Constructs a CompareCells object.
  
 
 
  
callBackSwap
public void callBackSwap(Object o1,
                         Object o2)
  -  Exchanges the compared values (rows) in the two given objects.
  
 
 
    -  Parameters:
    
 -  o1 - the first object, a Matrix
    
-  o2 - the second object, a Matrix
  
  
 
 
compareObjects
public abstract int compareObjects(Object o1,
                                   Object o2)
  -  Compares the value of two objects.
  
 
 
    -  Parameters:
    
 -  o1 - the first object
    
-  o2 - the second object
    
  -  Returns:
    
 -  0 if the object's values are equal, less than 0 if the first
 object's value is less than the second object's value, and greater
 than 0 if the first object's value is greater than the second
 object's value
  
 
 
 
getSelectedRow
public int getSelectedRow()
  -  Gets the row which has been noted as selected.
  
 
 
    -  See Also:
    
 -  setSelectedRow
  
 
 
 
lessThan
public boolean lessThan(Object o1,
                        Object o2)
  -  By default, determines whether the first object's value is less than
 the second's. Calling the 
reverse method toggles between
 the default behavior and determining the if the first object's value
 is greater than or equal to the second's.
   
 
    -  Parameters:
    
 -  o1 - the first object
    
-  o2 - the second object
    
  -  See Also:
    
 -  reverse
  
 
 
 
reverse
public void reverse()
  -  Toggles the comparison done by the 
lessThan method.
 By default, the lessThan method determines whether the
 first object's value is less than the second's.
 Calling the this method toggles between toggles netween that behavior
 and determining the if the first object's value is greater than or
 equal to the second's.
   
 
    -  See Also:
    
 -  lessThan
  
 
 
 
setCurrentBitSet
public void setCurrentBitSet(BitSet bs)
  -  Notes which rows are hilighted before a sort is performed.
  
 
 
    -  Parameters:
    
 -  bs - flags indicating which rows are hilighted in the MultiList
  
 
 
 
setSelectedRow
public void setSelectedRow(int selRow)
  -  Notes which row is selected before a sort is performed.
  
 
 
    -  Parameters:
    
 -  selRow - the zero-relative index of the currently selected row
    
 -  See Also:
    
 -  getSelectedRow
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index