addAddressTableColumn(new ITableColumn().withTitle("firstName"));
addAddressTableColumn(new ITableColumn().withTitle("company"));
addAddressTableColumn(new AddressViewColumn());
addAddressTableColumn(new AddressActionColumn());
addAddressTableActionMenuItemProvider(new IMenuItemProvider()
{
@Override
public IMenuItem create(Object... params)
{
Address address = (Address) params[0];
IMenuItem menuItem = new IMenuItem("<html><span style=\"width:8em\"><b>"
+ (StringTools.isTrimEmpty(address.getEmail()) ? "-" : address.getEmail())
+ "</b></span> (" + emailLabel.get() + ")</html>", (Icon) emailIcon);
menuItem.addActionListener(new EMailAction(address.getEmail()));
return menuItem;
}
});
addAddressTableActionMenuItemProvider(new IMenuItemProvider()
{
@Override
public IMenuItem create(Object... params)
{
Address address = (Address) params[0];