Package org.deidentifier.arx.gui
Klasse Controller
java.lang.Object
org.deidentifier.arx.gui.Controller
- Alle implementierten Schnittstellen:
IView
The main controller for the whole tool.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidApplies local recodingvoidApplies the selected transformation.voidClears the event log.voidAdds a criterionvoidactionCriterionConfigure(ModelCriterion criterion) Configures a criterionvoidactionCriterionEnable(ModelCriterion criterion) Enables and disables a criterion.voidactionCriterionPull(ModelCriterion criterion) Pull settings into the criterion.voidactionCriterionPush(ModelCriterion criterion) Pushes the settings of the criterion.voidToggles the "show groups" option.voidactionDataSort(boolean input) Sorts the data.voidToggles the "subset" option.voidactionExpand(ARXLattice.ARXNode transformation) Expand actionvoidStarts the anonymization.voidInitializes the hierarchy for the currently selected attribute with a scheme for attribute suppression.voidStarts the wizard.voidactionMenuEditCreateSuppressionHierarchy(boolean all) Create a cell suppression hierarchy for all attributesvoidInitializes the hierarchy for the currently selected attribute with a scheme for top-/bottom coding.voidFind and replace actionvoidInitializes the hierarchy for the currently selected attributevoidResets the current outputvoidStarts the "edit settings" dialog.voidCreates and displays a certificatevoidFile->exit.voidFile->export data.voidFile->Export hierarchy.voidFile->Import data.voidFile->Import hierarchy.voidFile->New project.voidFile->Open project.voidFile->Save project.voidFile->Save project as.voidShows the "about" dialog.voidShows the "debug" dialog.voidShows the "help" dialog.voidactionOpenProject(String path) Internal method for loading a project.Shows a dialog for configuration of anonymization.voidShows the audit trailShows an input dialog for selecting a charset.Shows a dialog for configuring classifiersvoidactionShowErrorDialog(org.eclipse.swt.widgets.Shell shell, String text, Throwable t) Shows an error dialog.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.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.voidShows a help dialog.voidactionShowInfoDialog(org.eclipse.swt.widgets.Shell shell, String header, String text) Shows an info dialog.actionShowInputDialog(org.eclipse.swt.widgets.Shell shell, String header, String text, String initial) Shows an input dialog.actionShowInputDialog(org.eclipse.swt.widgets.Shell shell, String header, String text, String initial, org.eclipse.jface.dialogs.IInputValidator validator) Shows an input dialog.actionShowMultiSelectionDialog(org.eclipse.swt.widgets.Shell shell, String title, String text, List<String> elements, List<String> selected) Shows a dialog for selecting multiple elementsactionShowOpenFileDialog(org.eclipse.swt.widgets.Shell shell, String filter) Shows a "open file" dialog.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.voidactionShowProgressDialog(String text, Worker<?> worker) Shows a progress dialog.booleanactionShowQuestionDialog(String header, String text) Shows a question dialog.booleanactionShowQuestionDialog(org.eclipse.swt.widgets.Shell shell, String header, String text) Shows a question dialog.actionShowSaveFileDialog(org.eclipse.swt.widgets.Shell shell, String filter) Internal method for showing a "save file" dialog.actionShowSaveFileDialog(org.eclipse.swt.widgets.Shell shell, String nameHint, String filter) Internal method for showing a "save file" dialog.voidIncludes all tuples in the research subset.voidCreates a research subset from a file.voidExcludes all tuples from the subset.voidCreates a subset by executing a query.voidCreates a subset via random samplingvoidaddListener(ModelEvent.ModelPart target, IView listener) Registers a listener at the controller.voiddispose()Disposes the view.Returns debug data.getModel()Returns the current modelReturns the resources.voidremoveListener(IView listener) Unregisters a listener.voidreset()Resets the view.voidupdate(ModelEvent event) Updates the view.
-
Konstruktordetails
-
Controller
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
Configures a criterion- Parameter:
criterion-
-
actionCriterionEnable
Enables and disables a criterion.- Parameter:
criterion-
-
actionCriterionPull
Pull settings into the criterion.- Parameter:
criterion-
-
actionCriterionPush
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
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
Internal method for loading a project.- Parameter:
path-
-
actionShowAuditTrail
public void actionShowAuditTrail()Shows the audit trail -
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
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 shelltitle- The dialog's titletext- The dialog's textlocale- The localetype- The description of the data type for which to choose a format stringvalues- The values to check the format string against- Gibt zurück:
- The format string, or
nullif 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 shelltitle- The dialog's titletext- The dialog's textlocale- The localetype- The description of the data type for which to choose a format stringvalues- The values to check the format string against- Gibt zurück:
- The format string, or
nullif no format was (or could be) selected
-
actionShowHelpDialog
Shows a help dialog.- Parameter:
id-
-
actionShowInfoDialog
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
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
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 titletext- The dialog's texttype- The data typelocale-values- The values- Gibt zurück:
-
actionShowProgressDialog
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
Shows a question dialog.- Parameter:
header-text-- Gibt zurück:
-
actionShowSaveFileDialog
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 nullfilter-- 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
Registers a listener at the controller.- Parameter:
target-listener-
-
dispose
public void dispose()Beschreibung aus Schnittstelle kopiert:IViewDisposes the view. -
getDebugData
Returns debug data.- Gibt zurück:
-
getModel
Returns the current model- Gibt zurück:
-
getResources
Returns the resources.- Gibt zurück:
-
removeListener
Unregisters a listener.- Parameter:
listener-
-
reset
public void reset()Beschreibung aus Schnittstelle kopiert:IViewResets the view. -
update
Beschreibung aus Schnittstelle kopiert:IViewUpdates the view.
-