summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java
blob: ac5e8e0f7f0c0520bb2bfb8bbdb1044a2fa85953 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.openslx.dozmod.gui.control.table;

import org.openslx.bwlp.thrift.iface.LdapFilter;

@SuppressWarnings("serial")
public class LectureLdapFilterTable extends ListTable<LdapFilter> {

	public static final ListTableColumn COL_ATTRIBUTE = new ListTableColumn("Attribut");
	public static final ListTableColumn COL_VALUE = new ListTableColumn("Wert");

	public LectureLdapFilterTable() {
		super(COL_ATTRIBUTE, COL_VALUE);
	}

	@Override
	protected Object getValueAtInternal(LdapFilter item, ListTableColumn columnIndex) {
		if (columnIndex == COL_ATTRIBUTE)
			return item.attribute;
		if (columnIndex == COL_VALUE)
			return item.value;
		throw new IndexOutOfBoundsException();
	}

}