Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.forms.layout.api.impl
Class LayoutRowComparator

java.lang.Object
  extended by org.nuxeo.ecm.platform.forms.layout.api.impl.LayoutRowComparator
All Implemented Interfaces:
java.util.Comparator<LayoutRow>

public class LayoutRowComparator
extends java.lang.Object
implements java.util.Comparator<LayoutRow>

Compares selected row instances to order them in the same order that given by the input list of row names.

Author:
Anahide Tchertchian

Constructor Summary
LayoutRowComparator(java.util.List<java.lang.String> rowNames)
           
 
Method Summary
 int compare(LayoutRow o1, LayoutRow o2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

LayoutRowComparator

public LayoutRowComparator(java.util.List<java.lang.String> rowNames)
Method Detail

compare

public int compare(LayoutRow o1,
                   LayoutRow o2)
Specified by:
compare in interface java.util.Comparator<LayoutRow>

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.