*/
public KontoList()
{
i18n = Application.getPluginLoader().getPlugin(HBCI.class).getResources().getI18N();
addItem(new CheckedSingleContextMenuItem(i18n.tr("�ffnen"), new KontoNew(),"document-open.png"));
addItem(new ContextMenuItem(i18n.tr("Neues Konto..."), new KNeu(),"system-file-manager.png"));
addItem(new CheckedSingleContextMenuItem(i18n.tr("L�schen..."), new KontoDelete(),"user-trash-full.png"));
addItem(ContextMenuItem.SEPARATOR);
addItem(new CheckedSingleContextMenuItem(i18n.tr("Ums�tze anzeigen..."),new UmsatzList(),"text-x-generic.png"));
addItem(new CheckedSingleContextMenuItem(i18n.tr("Saldo/Ums�tze abrufen..."),new KontoFetchUmsaetze(),"mail-send-receive.png")
{
/**
* @see de.willuhn.jameica.gui.parts.CheckedSingleContextMenuItem#isEnabledFor(java.lang.Object)
*/
public boolean isEnabledFor(Object o)
{
try
{
if (o == null || !(o instanceof Konto))
return false;
Konto k = (Konto)o;
return super.isEnabledFor(o) && ((k.getFlags() & Konto.FLAG_DISABLED) != Konto.FLAG_DISABLED) && ((k.getFlags() & Konto.FLAG_OFFLINE) != Konto.FLAG_OFFLINE);
}
catch (RemoteException re)
{
Logger.error("error while checking flags",re);
return false;
}
}
}); // BUGZILLA 473
addItem(ContextMenuItem.SEPARATOR);
addItem(new CheckedSingleContextMenuItem(i18n.tr("Neue �berweisung..."),new AuslandsUeberweisungNew(),"stock_next.png"));
addItem(new CheckedSingleContextMenuItem(i18n.tr("Neue Lastschrift..."),new SepaLastschriftNew(),"stock_previous.png"));
addItem(new CheckedSingleContextMenuItem(i18n.tr("Neuer Dauerauftrag..."),new SepaDauerauftragNew(),"stock_form-time-field.png"));
addItem(ContextMenuItem.SEPARATOR);
addItem(new CheckedContextMenuItem(i18n.tr("Exportieren..."),new KontoExport(),"document-save.png"));
addItem(new ContextMenuItem(i18n.tr("Importieren..."),new KontoImport(),"document-open.png"));
addItem(ContextMenuItem.SEPARATOR);