blob: b227916e1201a132a390b2d777fc2ee06ce06514 (
plain) (
tree)
|
|
package org.openslx.dozmod.gui.control.table;
import org.openslx.bwlp.thrift.iface.UserInfo;
import org.openslx.dozmod.util.FormatHelper;
@SuppressWarnings("serial")
public class UserTable extends ListTable<UserInfo> {
public static final ListTableColumn COL_NAME = new ListTableColumn("Name");
public static final ListTableColumn COL_MAIL = new ListTableColumn("Mail");
public UserTable() {
super(COL_NAME, COL_MAIL);
}
@Override
protected Object getValueAtInternal(UserInfo row, ListTableColumn columnIndex) {
if (columnIndex == COL_NAME)
return FormatHelper.userName(row);
if (columnIndex == COL_MAIL)
return row.eMail;
throw new IndexOutOfBoundsException();
}
}
|