public void extend(Extendable extendable)
{
if (!(extendable instanceof ExportDialog))
return;
ExportDialog e = (ExportDialog) extendable;
Class type = e.getType();
if (!type.isAssignableFrom(Umsatz.class))
return;
// Erstmal per Default nicht ausblenden
Exporter.SESSION.put(KEY_SALDO_HIDE,false);
final CheckboxInput check = new CheckboxInput(false);
check.setName(i18n.tr("Spalte \"Saldo\" in Export ausblenden"));
check.addListener(new Listener() {
public void handleEvent(Event event)
{
Exporter.SESSION.put(KEY_SALDO_HIDE,check.getValue());
}
});
final Container c = e.getContainer();
c.addInput(check);
}