Examples of TablePart


Examples of com.dubture.composer.ui.parts.TablePart

    section.setDescription("Manage repositories as sources for this package.");
    section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    Composite container = createClientContainer(section, 2, toolkit);
    createViewerPartControl(container, SWT.MULTI, 2, toolkit);
    TablePart tablePart = getTablePart();
    RepositoriesController repositoriesController = new RepositoriesController();
    repositoryViewer = tablePart.getTableViewer();
    repositoryViewer.setContentProvider(repositoriesController);
    repositoryViewer.setLabelProvider(repositoriesController);
   
    toolkit.paintBordersFor(container);
    section.setClient(container);
View Full Code Here

Examples of com.dubture.composer.ui.parts.TablePart

  }
 
  private void updateButtons() {
    ISelection selection = repositoryViewer.getSelection();
   
    TablePart tablePart = getTablePart();
    tablePart.setButtonEnabled(ADD_INDEX, enabled);
    tablePart.setButtonEnabled(EDIT_INDEX, !selection.isEmpty() && enabled);
    tablePart.setButtonEnabled(REMOVE_INDEX, !selection.isEmpty() && enabled);
  }
View Full Code Here

Examples of com.dubture.composer.ui.parts.TablePart

    section.setDescription("Honour the glorious authors of this package.");
    section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

    Composite container = createClientContainer(section, 2, toolkit);
    createViewerPartControl(container, SWT.MULTI, 2, toolkit);
    TablePart tablePart = getTablePart();
    AuthorController authorController = new AuthorController();
    authorViewer = tablePart.getTableViewer();
    authorViewer.setContentProvider(authorController);
    authorViewer.setLabelProvider(authorController);
   
    toolkit.paintBordersFor(container);
    section.setClient(container);
View Full Code Here

Examples of com.dubture.composer.ui.parts.TablePart

  }
 
  private void updateButtons() {
    ISelection selection = authorViewer.getSelection();
   
    TablePart tablePart = getTablePart();
    tablePart.setButtonEnabled(ADD_INDEX, enabled);
    tablePart.setButtonEnabled(EDIT_INDEX, !selection.isEmpty() && enabled);
    tablePart.setButtonEnabled(REMOVE_INDEX, !selection.isEmpty() && enabled);
  }
View Full Code Here

Examples of com.dubture.composer.ui.parts.TablePart

    gd.grabExcessVerticalSpace = expanded;
    section.setLayoutData(gd);
   
    Composite container = createClientContainer(section, 2, toolkit);
    createViewerPartControl(container, SWT.MULTI, 2, toolkit);
    TablePart tablePart = getTablePart();
    DependencyController dependencyController = new DependencyController();
    dependencyViewer = tablePart.getTableViewer();
    dependencyViewer.setContentProvider(dependencyController);
    dependencyViewer.setLabelProvider(dependencyController);
   
    toolkit.paintBordersFor(container);
    section.setClient(container);
View Full Code Here

Examples of com.dubture.composer.ui.parts.TablePart

  }
 
  private void updateButtons() {
    ISelection selection = dependencyViewer.getSelection();
   
    TablePart tablePart = getTablePart();
    tablePart.setButtonEnabled(EDIT_INDEX, !selection.isEmpty() && enabled);
    tablePart.setButtonEnabled(REMOVE_INDEX, !selection.isEmpty() && enabled);
    tablePart.setButtonEnabled(UPDATE_INDEX, !selection.isEmpty() && enabled);
  }
View Full Code Here

Examples of de.willuhn.jameica.gui.parts.TablePart

    {
      String key = (String) e.nextElement();
      entries.add(new Entry(key,wallet.get(key)));
    }
   
    TablePart table = new TablePart(entries,null);
    table.addColumn(i18n.tr("Name"),"name");
    table.addColumn(i18n.tr("Wert"),"value");
    table.setSummary(false);

    Container container = new SimpleContainer(parent);
    container.addText(i18n.tr("Inhalt der Wallet-Datei"),true);
   
    table.paint(parent);

    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("Schlie�en"),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
View Full Code Here

Examples of de.willuhn.jameica.gui.parts.TablePart

   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    // Erzeugen der Liste mit den existierenden Elementen
    turnusList = new TablePart(Settings.getDBService().createList(Turnus.class), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        try
        {
View Full Code Here

Examples of de.willuhn.jameica.gui.parts.TablePart

    if (s3 == null)
      GUI.getView().setTitle(i18n.tr("Ums�tze: {0} [Kto.-Nr.: {1}]",new String[]{s1,s2}));
    else
      GUI.getView().setTitle(i18n.tr("Ums�tze: {0} [Kto.-Nr.: {1}, Saldo: {2}]",new String[]{s1,s2,s3}));
   
    final TablePart list = control.getUmsatzListe();
    final PanelButtonPrint print = new PanelButtonPrint(new PrintSupportUmsatzList(list));
    list.addSelectionListener(new Listener() {
      public void handleEvent(Event event)
      {
        print.setEnabled(list.getSelection() != null);
      }
    });
   
    GUI.getView().addPanelButton(print);
   
    list.paint(getParent());
    print.setEnabled(list.getSelection() != null); // einmal initial ausloesen
   
    ButtonArea buttons = new ButtonArea();
    buttons.addButton(i18n.tr("Ums�tze importieren..."), new UmsatzImport(),control.getKonto(),false,"document-open.png");

    int flags = control.getKonto().getFlags();
View Full Code Here

Examples of de.willuhn.jameica.gui.parts.TablePart

    Container container = new SimpleContainer(parent,true);
    container.addText(i18n.tr("Folgende �berweisungen und Lastschriften werden jetzt " +
                              "an die Bank �bertragen. Bitte pr�fen Sie diese nochmals " +
                              "um sicherzustellen, dass Sie keinen Auftrag versehentlich absenden."),true);
   
    TablePart table = new TablePart(this.jobs,null);
    table.addColumn(i18n.tr("Auftr�ge"),"name");
    table.setSummary(false);
    table.setRememberColWidths(true);
    container.addPart(table);
   
    // table.paint(parent);

    ButtonArea buttons = new ButtonArea();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.