}
// Get manager and cast it
- ContactFacade manager = (ContactFacade) this.getManager();
+ ContactFacade manager = (ContactFacade) this.getFacade();
// Own street and number
String streetNumber = manager.enterOwnStreet();
}
// Get manager and cast it
- ContactFacade manager = (ContactFacade) this.getManager();
+ ContactFacade manager = (ContactFacade) this.getFacade();
// Gender:
Gender gender = manager.enterOwnGender();
}
// Get manager and cast it
- ContactFacade manager = (ContactFacade) this.getManager();
+ ContactFacade manager = (ContactFacade) this.getFacade();
// Phone number
String phoneNumber = manager.enterOwnPhoneNumber();
this.getLogger().logTrace("CALLED!"); //NOI18N
// Get manager and cast it
- ContactFacade manager = (ContactFacade) this.getManager();
+ ContactFacade manager = (ContactFacade) this.getFacade();
// First ask for gender
Gender gender = manager.enterOwnGender();
char choice = this.enterChar(accessKeys, "Bitte Auswahl eingeben (0=Programm beenden): ");
// Get manager and cast it
- ContactFacade manager = (ContactFacade) this.getManager();
+ ContactFacade manager = (ContactFacade) this.getFacade();
// Try it!
try {
char choice = this.enterChar(new char[] {'n', 'a', 'o', 'x'}, "Welchen Daten möchten Sie ändern? (n=Namensdaten, a=Anschriftsdaten, o=Andere, x=Zurück zur Hauptauswahl) ");
// Get manager and cast it
- ContactFacade manager = (ContactFacade) this.getManager();
+ ContactFacade manager = (ContactFacade) this.getFacade();
// TODO Get rid of this ugly switch block, too
switch (choice) {
import org.mxchange.jcore.application.Application;
import org.mxchange.jcore.client.Client;
import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
-import org.mxchange.jcore.manager.Manageable;
+import org.mxchange.jcore.facade.Facade;
import org.mxchange.jcoreswing.client.gui.ClientFrame;
import org.mxchange.jcoreswing.model.swing.contact.ContactTableModel;
}
@Override
- public Manageable getManager () {
+ public Facade getFacade () {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
this.getLogger().logTrace(MessageFormat.format("client={0}: CALLED!", client)); //NOI18N
// Has the user entered own data?
- if (((ContactFacade) this.getClient().getManager()).isOwnContactAdded()) {
+ if (((ContactFacade) this.getClient().getFacade()).isOwnContactAdded()) {
// Debug message
this.getLogger().logDebug("Disabling menus: isOwnContactAdded()=false"); //NOI18N
@Override
public void actionPerformed (final ActionEvent e) {
try {
- ((ContactFacade) self.getClient().getManager()).doEnterOwnData();
+ ((ContactFacade) self.getClient().getFacade()).doEnterOwnData();
} catch (final ContactAlreadyAddedException ex) {
// Already added, log away
// TODO maybe output message here?
@Override
public void actionPerformed (final ActionEvent e) {
try {
- ((ContactFacade) self.getClient().getManager()).doChangeOwnData();
+ ((ContactFacade) self.getClient().getFacade()).doChangeOwnData();
} catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
self.logException(ex);
}
*/
@Override
public void actionPerformed (final ActionEvent e) {
- ((ContactFacade) self.getClient().getManager()).doAddOtherAddress();
+ ((ContactFacade) self.getClient().getFacade()).doAddOtherAddress();
}
});
this.getLogger().logTrace("CALLED!"); //NOI18N
// Instance table model
- this.dataModel = new ContactTableModel(this.getClient().getManager());
+ this.dataModel = new ContactTableModel(this.getClient().getFacade());
// Instance table
this.dataTable = new JTable(this.dataModel);