Klasse MainWindow

java.lang.Object
org.deidentifier.arx.gui.view.impl.MainWindow
Alle implementierten Schnittstellen:
IView

public class MainWindow extends Object implements IView
This class implements the global application window.
  • Konstruktordetails

    • MainWindow

      public MainWindow(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Monitor monitor)
      Creates a new instance.
      Parameter:
      display -
      monitor -
  • Methodendetails

    • dispose

      public void dispose()
      Beschreibung aus Schnittstelle kopiert: IView
      Disposes the view.
      Angegeben von:
      dispose in Schnittstelle IView
    • getController

      public Controller getController()
      Returns the controller.
      Gibt zurück:
    • getShell

      public org.eclipse.swt.widgets.Shell getShell()
      Returns the shell.
      Gibt zurück:
    • isDisposed

      public boolean isDisposed()
      Is this shell disposed.
      Gibt zurück:
    • onShow

      public void onShow(Runnable runnable)
      Executes the given runnable on show.
      Parameter:
      runnable -
    • reset

      public void reset()
      Resets the GUI.
      Angegeben von:
      reset in Schnittstelle IView
    • show

      public void show()
      Main SWT event loop.
    • showAboutDialog

      public void showAboutDialog()
      Shows an about dialog.
    • showAddCriterionDialog

      public ModelCriterion showAddCriterionDialog(Model model, List<ModelCriterion> criteria)
      Shows a dialog for selecting privacy criteria.
      Parameter:
      criteria -
      Gibt zurück:
    • showAuditTrail

      public void showAuditTrail(List<ModelAuditTrailEntry> auditTrail)
      Shows the audit trail
    • showCharsetInputDialog

      public Charset showCharsetInputDialog(org.eclipse.swt.widgets.Shell shell)
      Shows an input dialog for selecting a charset.
      Parameter:
      shell -
      Gibt zurück:
    • showClassificationConfigurationDialog

      public ARXClassificationConfiguration<?> showClassificationConfigurationDialog(ARXClassificationConfiguration<?> config)
      Shows a preference dialog for editing parameter values of classification configurations.
      Parameter:
      config -
      model -
    • showConfigureCriterionDialog

      public void showConfigureCriterionDialog(Model model, List<ModelCriterion> criteria, ModelCriterion criterion)
      Shows a dialog for configuring privacy criteria.
      Parameter:
      criteria -
      criterion -
    • showDebugDialog

      public void showDebugDialog()
      Shows a debug dialog.
    • showErrorDialog

      public void showErrorDialog(org.eclipse.swt.widgets.Shell shell, String message, String text)
      Shows an error dialog.
      Parameter:
      shell -
      message -
      text -
    • showErrorDialog

      public void showErrorDialog(org.eclipse.swt.widgets.Shell shell, String message, Throwable throwable)
      Shows an error dialog.
      Parameter:
      shell -
      message -
      throwable -
    • showErrorDialog

      public void showErrorDialog(String message, Throwable throwable)
      Shows an error dialog.
      Parameter:
      message -
      throwable -
    • showFindReplaceDialog

      public org.apache.commons.math3.util.Pair<String,String> showFindReplaceDialog(Model model, DataHandle handle, int column)
      Shows a find Ungültige Eingabe: "&" replace dialog
      Parameter:
      handle -
      column -
      Gibt zurück:
      A pair containing the string to be found and the string with which it is to be replaced, null if cancel was pressed.
    • showFormatInputDialog

      public String[] showFormatInputDialog(org.eclipse.swt.widgets.Shell shell, String header, String text, String preselected, Locale locale, DataType.DataTypeDescription<?> description, Collection<String> values)
      Shows an input dialog for selecting formats string for data types.
      Parameter:
      shell -
      header -
      text -
      preselected - Preselected format string, can be null
      locale - The current locale
      description -
      values -
      Gibt zurück:
    • showHelpDialog

      public void showHelpDialog(boolean modal, String id)
      Shows a help dialog.
      Parameter:
      modal -
      id -
    • showInfoDialog

      public void showInfoDialog(org.eclipse.swt.widgets.Shell shell, String header, String text)
      Shows an info dialog.
      Parameter:
      shell -
      header -
      text -
    • showInputDialog

      public String showInputDialog(org.eclipse.swt.widgets.Shell shell, String header, String text, String initial)
      Shows an input dialog.
      Parameter:
      shell -
      header -
      text -
      initial -
      Gibt zurück:
    • showInputDialog

      public String showInputDialog(org.eclipse.swt.widgets.Shell shell, String header, String text, String initial, org.eclipse.jface.dialogs.IInputValidator validator)
      Shows an input dialog.
      Parameter:
      shell -
      header -
      text -
      initial -
      validator -
      Gibt zurück:
    • showLocalAnonymizationDialog

      public ModelAnonymizationConfiguration showLocalAnonymizationDialog(Model model)
      Shows a dialog for anonymization parameters
      Parameter:
      model -
      Gibt zurück:
      Returns the parameters selected by the user. Returns a pair. First: max. time per iteration. Second: min. records per iteration.
    • showMultiSelectionDialog

      public List<String> showMultiSelectionDialog(org.eclipse.swt.widgets.Shell shell, String title, String text, List<String> elements, List<String> selected)
      Shows a dialog that allows selecting multiple elements
      Parameter:
      shell -
      title -
      text -
      elements -
      selected -
      Gibt zurück:
    • showOpenFileDialog

      public String showOpenFileDialog(org.eclipse.swt.widgets.Shell shell, String filter)
      Shows a file open dialog.
      Parameter:
      shell -
      filter -
      Gibt zurück:
    • showOrderValuesDialog

      public String[] showOrderValuesDialog(org.eclipse.swt.widgets.Shell shell, String header, String text, DataType<?> type, Locale locale, String[] values)
      Shows an input dialog for ordering data items.
      Parameter:
      shell -
      header -
      text -
      type -
      locale -
      values -
      Gibt zurück:
    • showProgressDialog

      public void showProgressDialog(String text, Worker<?> worker)
      Shows a progress dialog.
      Parameter:
      text -
      worker -
    • showQueryDialog

      public DialogQueryResult showQueryDialog(String query, Data data)
      Shows a query dialog for selecting a research subset.
      Parameter:
      query -
      data -
      Gibt zurück:
    • showQuestionDialog

      public boolean showQuestionDialog(org.eclipse.swt.widgets.Shell shell, String header, String text)
      Shows a question dialog.
      Parameter:
      shell -
      header -
      text -
      Gibt zurück:
    • showSaveFileDialog

      public String showSaveFileDialog(org.eclipse.swt.widgets.Shell shell, String nameHint, String filter)
      Shows a file save dialog.
      Parameter:
      shell -
      nameHint -
      filter -
      Gibt zurück:
    • showSelectCriterionDialog

      public ModelExplicitCriterion showSelectCriterionDialog(List<ModelExplicitCriterion> criteria)
      Shows a dialog for selecting privacy criteria.
      Parameter:
      criteria -
      Gibt zurück:
    • showTopBottomCodingDialog

      public org.apache.commons.math3.util.Pair<org.apache.commons.math3.util.Pair<String,Boolean>,org.apache.commons.math3.util.Pair<String,Boolean>> showTopBottomCodingDialog(DataType<?> type)
      Shows a top/bottom coding dialog
      Parameter:
      type -
      Gibt zurück:
      A pair containing the bottom value + inclusive and the top value + inclusive. Either bottom or top may be null if they have not been defined. The overall pair may be null if cancel was pressed.
    • update

      public void update(ModelEvent event)
      Beschreibung aus Schnittstelle kopiert: IView
      Updates the view.
      Angegeben von:
      update in Schnittstelle IView
      Parameter:
      event -