name = name.replace(" ","-");
name = "hibiscus-sepa-" + name + "-" + DATEFORMAT.format(new Date()) + ".xml";
File f = new File(path,name);
final FileInput input = new FileInput(f.getAbsolutePath(),true)
{
protected void customize(FileDialog fd)
{
if (path != null && path.length() > 0)
fd.setFilterPath(path);
}
};
input.setName(i18n.tr("SEPA XML-Datei"));
input.setMandatory(true);
input.addListener(new Listener() {
public void handleEvent(Event event)
{
if (ok != null)
{
String s = (String) input.getValue();
ok.setEnabled(StringUtils.trimToNull(s) != null);
}
}
});
return input;