private class SendCurrentDataModule.SendCurrentDataDialog extends Object implements DialogInterface
Dateneditor
gestartet.Modifier and Type | Field and Description |
---|---|
private DataIdentificationChoice |
_dataIdentificationChoice
speichert eine Instanz der Datenidentifikationsauswahl
|
private JDialog |
_dialog
speichert den Dialog
|
private JComboBox |
_roleComboBox
hier kann die Rolle ausgewählt werden
|
private String[] |
_roleUnit
gibt an, welche Rollen zur Verfügung stehen
|
Constructor and Description |
---|
SendCurrentDataModule.SendCurrentDataDialog()
Standardkonstruktor.
|
Modifier and Type | Method and Description |
---|---|
private void |
createDialog()
Erstellt den Dialog.
|
void |
doCancel()
diese Methode schließt den Dialog
|
void |
doOK()
Durch betätigen des "OK"-Buttons wird der Dateneditor gestartet und dieser Dialog wird geschlossen.
|
void |
doSave(String title)
diese Methode speichert die Einstellungen
|
private List<KeyValueObject> |
getKeyValueList()
Sammelt alle Parameter des Dialogs.
|
private String |
getRole()
Gibt die ausgewählte Rolle für den Dateneditor zurück.
|
private SettingsData |
getSettings(String title)
Erstellt die Einstellungsdaten.
|
void |
setDataIdentification(SettingsData data)
Mit dieser Methode können die Datenidentifikationsdaten übergeben werden.
|
private void |
setRole(String role)
Setzt die Rolle für den Dateneditor.
|
void |
setSettings(SettingsData data)
Diese Methode zeigt den Dialog an und trägt die Einstellungsdaten in die entsprechenden Felder ein.
|
private void |
showDialog()
Durch diese Methode wird der Dialog angezeigt.
|
void |
startSettings(SettingsData settingsData)
Startet den Dateneditor anhand der Einstellungsdaten.
|
private JDialog _dialog
private DataIdentificationChoice _dataIdentificationChoice
private final String[] _roleUnit
private JComboBox _roleComboBox
public SendCurrentDataModule.SendCurrentDataDialog()
public void setDataIdentification(SettingsData data)
data
- enthält die ausgewählte Datenidentifikationpublic void setSettings(SettingsData data)
data
- die Einstellungsdatenpublic void startSettings(SettingsData settingsData)
settingsData
- die Einstellungsdatenprivate void createDialog()
private void showDialog()
private String getRole()
private void setRole(String role)
role
- die Rolle für den Dateneditorprivate SettingsData getSettings(String title)
title
- der Name für die Einstellungenprivate List<KeyValueObject> getKeyValueList()
public void doOK()
doOK
in interface DialogInterface
public void doCancel()
doCancel
in interface DialogInterface
public void doSave(String title)
doSave
in interface DialogInterface
title
- Titel der Einstellung