|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.service.propertyconfig.comparator.PropertyLanguageDependingComparator
Default implementation of a resource property comparator. It is used if no other comparator is configured for a property.
| Constructor Summary | |
PropertyLanguageDependingComparator(IMetaName sortPropertyName,
int sortMode,
boolean useDisplayNameAsSecondProperty)
|
|
| Method Summary | |
int |
compare(Object o1,
Object o2)
|
int |
getSortMode()
Current sort mode for sorting resource properties. |
IMetaName |
getSortPropertyName()
Name of the property that is used for sorting. |
void |
setSortMode(int sortMode)
Determines the sort mode of the resource properties. |
void |
setSortParameters(IMetaName sortPropertyName,
int sortMode)
Name of the property that is used for sorting and the default sort mode. |
| 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 |
| Constructor Detail |
public PropertyLanguageDependingComparator(IMetaName sortPropertyName,
int sortMode,
boolean useDisplayNameAsSecondProperty)
| Method Detail |
public int compare(Object o1,
Object o2)
compare in interface ComparatorComparator
public void setSortMode(int sortMode)
throws PropertyConfigurationServiceException
IMetaName.SORTMODE_ASCENDING and IMetaName.SORTMODE_DESCENDING.
Default is defined in the meta data of the property.
setSortMode in interface IResourcePropertyComparatorsortMode - order of sorting for property values
PropertyConfigurationServiceExceptionpublic int getSortMode()
IMetaName.SORTMODE_ASCENDING and IMetaName.SORTMODE_DESCENDING
getSortMode in interface IResourcePropertyComparatorpublic IMetaName getSortPropertyName()
getSortPropertyName in interface IResourcePropertyComparator
public void setSortParameters(IMetaName sortPropertyName,
int sortMode)
throws PropertyConfigurationServiceException
setSortParameters in interface IResourcePropertyComparatorsortPropertyName - property name for sortingsortMode - order of sorting for property values
PropertyConfigurationServiceException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||