HATS 7.5.1 Web API Reference

Publicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product.

com.ibm.hats.transform.elements
Class ListItemComponentElement.ListItemComparator

java.lang.Object
  extended by com.ibm.hats.transform.elements.ListItemComponentElement.ListItemComparator
All Implemented Interfaces:
Comparator
Enclosing class:
ListItemComponentElement

public static class ListItemComponentElement.ListItemComparator
extends Object
implements Comparator

ListItemComponentElement comparator implementation. Allows a set of list items to be sorted by item, description, or full caption.


Field Summary
static int COMPARE_BY_DESCRIPTION
           
static int COMPARE_BY_FULL_CAPTION
           
static int COMPARE_BY_ITEM
           
static int COMPARE_BY_POSITION
           
static int COMPARE_BY_POSITION_RTL
           
 
Constructor Summary
ListItemComponentElement.ListItemComparator(int compareBy, boolean sortAscending)
           
ListItemComponentElement.ListItemComparator(int compareBy, boolean sortAscending, int numOfColumns)
           
ListItemComponentElement.ListItemComparator(int compareBy, int numOfColumns)
           
 
Method Summary
 int compare(Object arg1, Object arg2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

COMPARE_BY_ITEM

public static final int COMPARE_BY_ITEM
See Also:
Constant Field Values

COMPARE_BY_DESCRIPTION

public static final int COMPARE_BY_DESCRIPTION
See Also:
Constant Field Values

COMPARE_BY_FULL_CAPTION

public static final int COMPARE_BY_FULL_CAPTION
See Also:
Constant Field Values

COMPARE_BY_POSITION

public static final int COMPARE_BY_POSITION
See Also:
Constant Field Values

COMPARE_BY_POSITION_RTL

public static final int COMPARE_BY_POSITION_RTL
See Also:
Constant Field Values
Constructor Detail

ListItemComponentElement.ListItemComparator

public ListItemComponentElement.ListItemComparator(int compareBy,
                                                   boolean sortAscending)

ListItemComponentElement.ListItemComparator

public ListItemComponentElement.ListItemComparator(int compareBy,
                                                   boolean sortAscending,
                                                   int numOfColumns)

ListItemComponentElement.ListItemComparator

public ListItemComponentElement.ListItemComparator(int compareBy,
                                                   int numOfColumns)
Method Detail

compare

public int compare(Object arg1,
                   Object arg2)
Specified by:
compare in interface Comparator

HATS 7.5.1 (201005110649)