compare()
This method is optional.
It only has to be implemented at the class level (not the prototype level) for ControlWrappers that meet both of the following conditions:
- The value edited by the control is of a complex type, i.e. the type is specified by a BOM class.
- Instances of the control are allowed to occur in grid panes.
In these situations, if the grid pane has enabled sorting, the form needs to know how the complex objects should be sorted. The compare method is used in performing this sorting.
Method Arguments:
Method Return Value:
Copyright © Cloud Software Group, Inc. All rights reserved.