Klasse MainWindow
java.lang.Object
org.deidentifier.arx.gui.view.impl.MainWindow
- Alle implementierten Schnittstellen:
IView
This class implements the global application window.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungMainWindow(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Monitor monitor) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoiddispose()Disposes the view.Returns the controller.org.eclipse.swt.widgets.ShellgetShell()Returns the shell.booleanIs this shell disposed.voidExecutes the given runnable on show.voidreset()Resets the GUI.voidshow()Main SWT event loop.voidShows an about dialog.showAddCriterionDialog(Model model, List<ModelCriterion> criteria) Shows a dialog for selecting privacy criteria.voidshowAuditTrail(List<ModelAuditTrailEntry> auditTrail) Shows the audit trailshowCharsetInputDialog(org.eclipse.swt.widgets.Shell shell) Shows an input dialog for selecting a charset.Shows a preference dialog for editing parameter values of classification configurations.voidshowConfigureCriterionDialog(Model model, List<ModelCriterion> criteria, ModelCriterion criterion) Shows a dialog for configuring privacy criteria.voidShows a debug dialog.voidshowErrorDialog(String message, Throwable throwable) Shows an error dialog.voidshowErrorDialog(org.eclipse.swt.widgets.Shell shell, String message, String text) Shows an error dialog.voidshowErrorDialog(org.eclipse.swt.widgets.Shell shell, String message, Throwable throwable) Shows an error dialog.showFindReplaceDialog(Model model, DataHandle handle, int column) Shows a find Ungültige Eingabe: "&" replace dialogString[]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.voidshowHelpDialog(boolean modal, String id) Shows a help dialog.voidshowInfoDialog(org.eclipse.swt.widgets.Shell shell, String header, String text) Shows an info dialog.showInputDialog(org.eclipse.swt.widgets.Shell shell, String header, String text, String initial) Shows an input dialog.showInputDialog(org.eclipse.swt.widgets.Shell shell, String header, String text, String initial, org.eclipse.jface.dialogs.IInputValidator validator) Shows an input dialog.Shows a dialog for anonymization parametersshowMultiSelectionDialog(org.eclipse.swt.widgets.Shell shell, String title, String text, List<String> elements, List<String> selected) Shows a dialog that allows selecting multiple elementsshowOpenFileDialog(org.eclipse.swt.widgets.Shell shell, String filter) Shows a file open dialog.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.voidshowProgressDialog(String text, Worker<?> worker) Shows a progress dialog.showQueryDialog(String query, Data data) Shows a query dialog for selecting a research subset.booleanshowQuestionDialog(org.eclipse.swt.widgets.Shell shell, String header, String text) Shows a question dialog.showSaveFileDialog(org.eclipse.swt.widgets.Shell shell, String nameHint, String filter) Shows a file save dialog.showSelectCriterionDialog(List<ModelExplicitCriterion> criteria) Shows a dialog for selecting privacy criteria.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 dialogvoidupdate(ModelEvent event) Updates the view.
-
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:IViewDisposes the view. -
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
Executes the given runnable on show.- Parameter:
runnable-
-
reset
public void reset()Resets the GUI. -
show
public void show()Main SWT event loop. -
showAboutDialog
public void showAboutDialog()Shows an about dialog. -
showAddCriterionDialog
Shows a dialog for selecting privacy criteria.- Parameter:
criteria-- Gibt zurück:
-
showAuditTrail
Shows the audit trail -
showCharsetInputDialog
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
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
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,
nullif 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 nulllocale- The current localedescription-values-- Gibt zurück:
-
showHelpDialog
Shows a help dialog.- Parameter:
modal-id-
-
showInfoDialog
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
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
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
Shows a progress dialog.- Parameter:
text-worker-
-
showQueryDialog
Shows a query dialog for selecting a research subset.- Parameter:
query-data-- Gibt zurück:
-
showQuestionDialog
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
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>, showTopBottomCodingDialogorg.apache.commons.math3.util.Pair<String, Boolean>> (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
nullif they have not been defined. The overall pair may benullif cancel was pressed.
-
update
Beschreibung aus Schnittstelle kopiert:IViewUpdates the view.
-