Fehlende Datei
git-svn-id: https://svn.libreccm.org/ccm/trunk@984 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
54f7dd09fc
commit
ee772dd3b6
|
|
@ -0,0 +1,32 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.ui.panels;
|
||||||
|
|
||||||
|
import com.arsdigita.xml.Element;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param <T>
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
*/
|
||||||
|
public class CollectionSortField {
|
||||||
|
|
||||||
|
private String label;
|
||||||
|
private String field;
|
||||||
|
|
||||||
|
public CollectionSortField(final String label, final String field) {
|
||||||
|
this.label = label;
|
||||||
|
this.field = field;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLabel() {
|
||||||
|
return label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getField() {
|
||||||
|
return field;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void generateXml(final Element element) {
|
||||||
|
final Element sortFieldElem = element.newChildElement("sortField");
|
||||||
|
sortFieldElem.addAttribute("label", label);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue