25 lines
838 B
Java
25 lines
838 B
Java
|
|
package _VisualDVM.ComponentsServer.Recipient.UI;
|
||
|
|
import Common.Database.Tables.DataSet;
|
||
|
|
import Common.Visual.DataSetControlForm;
|
||
|
|
import Common.Visual.Tables.ColumnInfo;
|
||
|
|
import _VisualDVM.ComponentsServer.Recipient.Recipient;
|
||
|
|
import _VisualDVM.ComponentsServer.UserAccount.UserAccount;
|
||
|
|
|
||
|
|
import javax.swing.*;
|
||
|
|
public class RecipientsForm extends DataSetControlForm<Recipient> {
|
||
|
|
public RecipientsForm(DataSet<?, Recipient> dataSource_in, JPanel mountPanel_in) {
|
||
|
|
super(dataSource_in, mountPanel_in);
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
protected void createColumns() {
|
||
|
|
AddColumns(
|
||
|
|
new ColumnInfo<Recipient>("Имя") {
|
||
|
|
@Override
|
||
|
|
public Object getFieldAt(Recipient object) {
|
||
|
|
return object.name;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|