Package de.willuhn.jameica.gui.input

Examples of de.willuhn.jameica.gui.input.FileInput


  protected void paint(Composite parent) throws Exception
  {
    Container c = new SimpleContainer(parent);
   
    final SelectInput version = this.getPainVersionInput();
    final FileInput target    = this.getFileInput();
    final LabelInput msg      = this.getMessage();
   
    c.addInput(version);
    c.addInput(target);
    c.addInput(msg);
   
    ButtonArea buttons = new ButtonArea();
    this.ok = new Button(i18n.tr("Export starten"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        painVersion = (PainVersion) version.getValue();
        if (painVersion == null)
        {
          msg.setValue(i18n.tr("Bitte w�hlen Sie eine Schema-Version aus."));
          return;
        }
       
        String s = StringUtils.trimToNull((String) target.getValue());
        if (s == null)
        {
          msg.setValue(i18n.tr("Bitte w�hlen Sie eine Datei aus"));
          return;
        }
View Full Code Here


    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;
View Full Code Here

    if (this.path == null)
    {
      // Das Aendern des Pfad macht ueberhaupt keine Sinn mehr.
      // Da kann man den Schluessel auch einfach loeschen
      // und neu importieren.
      this.path = new FileInput(getKey().getFilename());
      this.path.setEnabled(false);
      this.path.setName(i18n.tr("Pfad zu Schl�sseldatei"));
    }
    return this.path;
  }
View Full Code Here

   */
  public Input getCTAPI()
  {
    if (this.ctapi != null)
      return this.ctapi;
    this.ctapi = new FileInput(getConfig().getCTAPIDriver());
    this.ctapi.setName(i18n.tr("CTAPI Treiber-Datei"));
    this.ctapi.setEnabled(!isPCSC());
    this.ctapi.setMandatory(!isPCSC());
    return this.ctapi;
  }
View Full Code Here

      return this.file;
   
    // Letztes Verzeichnis ermitteln
    String dir  = settings.getString("lastdir",System.getProperty("user.home"));
    String file = "hbcitrace_" + DF.format(new Date()) + ".log";
    this.file = new FileInput(new File(dir,file).getPath(),true)
    {
      /**
       * @see de.willuhn.jameica.gui.input.FileInput#customize(org.eclipse.swt.widgets.FileDialog)
       */
      @Override
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.gui.input.FileInput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.