Klasse Controller

java.lang.Object
org.deidentifier.arx.gui.Controller
Alle implementierten Schnittstellen:
IView

public class Controller extends Object implements IView
The main controller for the whole tool.
  • Konstruktordetails

    • Controller

      public Controller(MainWindow main)
      Creates a new controller.
      Parameter:
      main -
  • Methodendetails

    • actionApplyLocalRecoding

      public void actionApplyLocalRecoding()
      Applies local recoding
    • actionApplySelectedTransformation

      public void actionApplySelectedTransformation()
      Applies the selected transformation.
    • actionClearEventLog

      public void actionClearEventLog()
      Clears the event log.
    • actionCriterionAdd

      public void actionCriterionAdd()
      Adds a criterion
    • actionCriterionConfigure

      public void actionCriterionConfigure(ModelCriterion criterion)
      Configures a criterion
      Parameter:
      criterion -
    • actionCriterionEnable

      public void actionCriterionEnable(ModelCriterion criterion)
      Enables and disables a criterion.
      Parameter:
      criterion -
    • actionCriterionPull

      public void actionCriterionPull(ModelCriterion criterion)
      Pull settings into the criterion.
      Parameter:
      criterion -
    • actionCriterionPush

      public void actionCriterionPush(ModelCriterion criterion)
      Pushes the settings of the criterion.
      Parameter:
      criterion -
    • actionDataShowGroups

      public void actionDataShowGroups()
      Toggles the "show groups" option.
    • actionDataSort

      public void actionDataSort(boolean input)
      Sorts the data.
      Parameter:
      input -
    • actionDataToggleSubset

      public void actionDataToggleSubset()
      Toggles the "subset" option.
    • actionExpand

      public void actionExpand(ARXLattice.ARXNode transformation)
      Expand action
      Parameter:
      transformation -
    • actionMenuEditAnonymize

      public void actionMenuEditAnonymize()
      Starts the anonymization.
    • actionMenuEditCreateAttributeSuppressionHierarchy

      public void actionMenuEditCreateAttributeSuppressionHierarchy()
      Initializes the hierarchy for the currently selected attribute with a scheme for attribute suppression.
    • actionMenuEditCreateHierarchy

      public void actionMenuEditCreateHierarchy()
      Starts the wizard.
    • actionMenuEditCreateSuppressionHierarchy

      public void actionMenuEditCreateSuppressionHierarchy(boolean all)
      Create a cell suppression hierarchy for all attributes
      Parameter:
      all -
    • actionMenuEditCreateTopBottomCodingHierarchy

      public void actionMenuEditCreateTopBottomCodingHierarchy()
      Initializes the hierarchy for the currently selected attribute with a scheme for top-/bottom coding.
    • actionMenuEditFindReplace

      public void actionMenuEditFindReplace()
      Find and replace action
    • actionMenuEditInitializeHierarchy

      public void actionMenuEditInitializeHierarchy()
      Initializes the hierarchy for the currently selected attribute
    • actionMenuEditReset

      public void actionMenuEditReset()
      Resets the current output
    • actionMenuEditSettings

      public void actionMenuEditSettings()
      Starts the "edit settings" dialog.
    • actionMenuFileCreateCertificate

      public void actionMenuFileCreateCertificate()
      Creates and displays a certificate
    • actionMenuFileExit

      public void actionMenuFileExit()
      File->exit.
    • actionMenuFileExportData

      public void actionMenuFileExportData()
      File->export data.
    • actionMenuFileExportHierarchy

      public void actionMenuFileExportHierarchy()
      File->Export hierarchy.
    • actionMenuFileImportData

      public void actionMenuFileImportData()
      File->Import data.
    • actionMenuFileImportHierarchy

      public void actionMenuFileImportHierarchy()
      File->Import hierarchy.
    • actionMenuFileNew

      public void actionMenuFileNew()
      File->New project.
    • actionMenuFileOpen

      public void actionMenuFileOpen()
      File->Open project.
    • actionMenuFileSave

      public void actionMenuFileSave()
      File->Save project.
    • actionMenuFileSaveAs

      public void actionMenuFileSaveAs()
      File->Save project as.
    • actionMenuHelpAbout

      public void actionMenuHelpAbout()
      Shows the "about" dialog.
    • actionMenuHelpDebug

      public void actionMenuHelpDebug()
      Shows the "debug" dialog.
    • actionMenuHelpHelp

      public void actionMenuHelpHelp()
      Shows the "help" dialog.
    • actionOpenProject

      public void actionOpenProject(String path)
      Internal method for loading a project.
      Parameter:
      path -
    • actionShowAuditTrail

      public void actionShowAuditTrail()
      Shows the audit trail
    • actionShowCharsetInputDialog

      public Charset actionShowCharsetInputDialog()
      Shows an input dialog for selecting a charset.
      Gibt zurück:
    • actionShowClassificationConfigurationDialog

      public ARXClassificationConfiguration<?> actionShowClassificationConfigurationDialog(ARXClassificationConfiguration<?> config)
      Shows a dialog for configuring classifiers
      Parameter:
      config -
      Gibt zurück:
    • actionShowErrorDialog

      public void actionShowErrorDialog(org.eclipse.swt.widgets.Shell shell, String text, Throwable t)
      Shows an error dialog.
      Parameter:
      shell -
      text -
      t -
    • actionShowFormatInputDialog

      public String[] actionShowFormatInputDialog(org.eclipse.swt.widgets.Shell shell, String title, String text, Locale locale, DataType.DataTypeDescription<?> type, Collection<String> values)
      Shows a dialog for selecting a format string for a data type.
      Parameter:
      shell - The parent shell
      title - The dialog's title
      text - The dialog's text
      locale - The locale
      type - The description of the data type for which to choose a format string
      values - The values to check the format string against
      Gibt zurück:
      The format string, or null if no format was (or could be) selected
    • actionShowFormatInputDialog

      public String[] actionShowFormatInputDialog(org.eclipse.swt.widgets.Shell shell, String title, String text, Locale locale, DataType.DataTypeDescription<?> type, String[] values)
      Shows a dialog for selecting a format string for a data type.
      Parameter:
      shell - The parent shell
      title - The dialog's title
      text - The dialog's text
      locale - The locale
      type - The description of the data type for which to choose a format string
      values - The values to check the format string against
      Gibt zurück:
      The format string, or null if no format was (or could be) selected
    • actionShowHelpDialog

      public void actionShowHelpDialog(String id)
      Shows a help dialog.
      Parameter:
      id -
    • actionShowInfoDialog

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

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

      public String actionShowInputDialog(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 -
      Gibt zurück:
    • actionShowAnonymizationDialog

      public ModelAnonymizationConfiguration actionShowAnonymizationDialog()
      Shows a dialog for configuration of anonymization.
      Gibt zurück:
      Returns the parameters selected by the user. Returns a pair. First: max. time per iteration. Second: min. records per iteration.
    • actionShowMultiSelectionDialog

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

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

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

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

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

      public boolean actionShowQuestionDialog(String header, String text)
      Shows a question dialog.
      Parameter:
      header -
      text -
      Gibt zurück:
    • actionShowSaveFileDialog

      public String actionShowSaveFileDialog(org.eclipse.swt.widgets.Shell shell, String filter)
      Internal method for showing a "save file" dialog.
      Parameter:
      shell -
      filter -
      Gibt zurück:
    • actionShowSaveFileDialog

      public String actionShowSaveFileDialog(org.eclipse.swt.widgets.Shell shell, String nameHint, String filter)
      Internal method for showing a "save file" dialog.
      Parameter:
      shell -
      nameHint - - can be null
      filter -
      Gibt zurück:
    • actionSubsetAll

      public void actionSubsetAll()
      Includes all tuples in the research subset.
    • actionSubsetFile

      public void actionSubsetFile()
      Creates a research subset from a file.
    • actionSubsetNone

      public void actionSubsetNone()
      Excludes all tuples from the subset.
    • actionSubsetQuery

      public void actionSubsetQuery()
      Creates a subset by executing a query.
    • actionSubsetRandom

      public void actionSubsetRandom()
      Creates a subset via random sampling
    • addListener

      public void addListener(ModelEvent.ModelPart target, IView listener)
      Registers a listener at the controller.
      Parameter:
      target -
      listener -
    • dispose

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

      public String getDebugData()
      Returns debug data.
      Gibt zurück:
    • getModel

      public Model getModel()
      Returns the current model
      Gibt zurück:
    • getResources

      public Resources getResources()
      Returns the resources.
      Gibt zurück:
    • removeListener

      public void removeListener(IView listener)
      Unregisters a listener.
      Parameter:
      listener -
    • reset

      public void reset()
      Beschreibung aus Schnittstelle kopiert: IView
      Resets the view.
      Angegeben von:
      reset in Schnittstelle IView
    • update

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