Package de.willuhn.jameica.gui.util

Examples of de.willuhn.jameica.gui.util.ScrolledContainer


    Settings settings = Application.getPluginLoader().getPlugin(HBCI.class).getResources().getSettings();
    int size = settings.getInt("transfertype.usagelist.size",5);
    if (orig != null && orig.length > size)
      size = orig.length;

    final ScrolledContainer container = new ScrolledContainer(parent);
    for (int i=0;i<size;++i)
    {
      createLine(container,(orig != null && orig.length > i) ? orig[i] : null,i,readonly);
    }

    ////////////////////////////////////////////////////////////////////////////
    // Button zum Hinzufuegen von weiteren Zeilen
    this.add = new Button("  +  ",new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        int size = fields.size();
        createLine(container,null,size,readonly);
        container.update();
        add.setEnabled(!readonly && size+3 < maxusage);
      }
    });
    this.add.setEnabled(!readonly && size+3 <= maxusage);
   
    ButtonArea buttons = new ButtonArea();
    buttons.addButton(this.add);
    buttons.paint(parent);
    //
    ////////////////////////////////////////////////////////////////////////////

    // einmal initial die Groesse neu berechnen
    container.update();
  }
View Full Code Here


      ////////////////////////////////////////////////////////////////////////////

      List<Column> columns = p.getColumns();
      List<String> current = lines.get(p.getSkipLines()); // Die erste anzuzeigende Zeile

      ScrolledContainer container = new ScrolledContainer(this.parent);

      for (int i=0;i<cols;++i)
      {
        String value = "";
        try
        {
          value = current.get(i);
          if (value.length() > 30)
            value = value.substring(0,30) + "...";
        } catch (Exception e) {} // Spalte gibts in der Zeile nicht
       
        final SelectInput s = new SelectInput(columns,getColumn(columns,i));
        s.setName((i+1) + ". " + value);
        s.setPleaseChoose("<" + i18n.tr("Nicht zugeordnet") + ">");
        selects.add(s);

        container.addInput(s);
      }
      container.update();
     
      this.parent.layout(true);
      this.getError().setValue("");
    }
    catch (Exception e)
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.gui.util.ScrolledContainer

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.