Klasse CustomSelectionAdapter

java.lang.Object
org.eclipse.swt.events.SelectionAdapter
org.oxt.toolbox.helpers.CustomSelectionAdapter
Alle implementierten Schnittstellen:
EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class CustomSelectionAdapter extends org.eclipse.swt.events.SelectionAdapter
Class to define a custom selection adapter for file(s) selection dialog to process either the validation report or visualization.
Autor:
Dr. Jan C. Thiele
  • Felddetails

    • display

      org.eclipse.swt.widgets.Display display
    • shell

      org.eclipse.swt.widgets.Shell shell
    • currentInvoice

      String currentInvoice
    • currentInvoicePath

      String currentInvoicePath
    • logger

      org.apache.logging.log4j.Logger logger
  • Konstruktordetails

    • CustomSelectionAdapter

      public CustomSelectionAdapter(org.eclipse.swt.widgets.Shell s)
      Constructor.
      Parameter:
      s - Shell widget
    • CustomSelectionAdapter

      public CustomSelectionAdapter(org.eclipse.swt.widgets.Shell s, String currentInvoice, String currentInvoicePath, org.apache.logging.log4j.Logger logger)
      Constructor with parameters.
      Parameter:
      s - shell
      currentInvoice - name of current invoice
      currentInvoicePath - path of current invoice file
      logger - logger instance
  • Methodendetails

    • fileOpenSelection

      public org.eclipse.swt.widgets.FileDialog fileOpenSelection()
      Method to create and return file open dialog.
      Gibt zurück:
      file open dialog
    • fileSaveSelection

      public String fileSaveSelection(String initialFile, String initialPath)
      Method to create save dialog and return file path.
      Parameter:
      initialFile - initial file
      initialPath - initial file path
      Gibt zurück:
      path to selected file destination
    • fileSavePdfSelection

      public String fileSavePdfSelection(String initialFile, String initialPath)
      Method to create save pdf dialog and return file path.
      Parameter:
      initialFile - initial file
      initialPath - initial file path
      Gibt zurück:
      path to selected file destination