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 { 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(); } }