import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
import org.mxchange.jcore.model.contact.Contact;
import org.mxchange.jcore.model.contact.gender.Gender;
-import org.mxchange.jswingcore.client.gui.ClientFrame;
+import org.mxchange.jcoreswing.client.gui.ClientFrame;
/**
+ * A swing client
*
* @author Roland Haeder
*/
/**
* Constructor with an Application instance.
- *
+ * <p>
* @param application Application instance
*/
public SwingClient (final Application application) {
// Debug message
- this.getLogger().trace("CALLED!"); //NOI18N
+ this.getLogger().logTrace("CALLED!"); //NOI18N
// Set application instance
this.setApplication(application);
this.frame = AddressbookFrame.getSelfInstance(this);
// Trace message
- this.getLogger().trace("EXIT!"); //NOI18N
+ this.getLogger().logTrace("EXIT!"); //NOI18N
}
@Override
/**
* Shows dialog to enter new contact
- *
+ * <p>
* @return Returns finished Contact instance
*/
@Override
public Contact doEnterOwnData () {
// Trace message
- this.getLogger().trace("CALLED!"); //NOI18N
+ this.getLogger().logTrace("CALLED!"); //NOI18N
// Deligate this call to the frame
return this.frame.doEnterOwnData();
@Override
public void doShutdown () throws SQLException, IOException {
// Debug message
- this.getLogger().trace("CALLED!"); //NOI18N
+ this.getLogger().logTrace("CALLED!"); //NOI18N
// Parent call
super.doShutdown();
// TODO Add other shutdown stuff
// Debug message
- this.getLogger().trace("EXIT!"); //NOI18N
+ this.getLogger().logTrace("EXIT!"); //NOI18N
}
@Override
public void doUserMenuChoice () throws UnhandledUserChoiceException {
// Debug message
- //* NOISY-DEBUG: */ this.getLogger().trace("CALLED!");
+ //* NOISY-DEBUG: */ this.getLogger().logTrace("CALLED!");
// Not implemented here
}
/**
* Returns a Swing menu item
- *
+ * <p>
* @param accessKey Key to access the menu
* @param text Text to show to user
* @return A SelectableMenuItem
@Override
public SelectableMenuItem getMenuItem (final char accessKey, final String text) {
// Debug message
- this.getLogger().trace("CALLED!"); //NOI18N
+ this.getLogger().logTrace("CALLED!"); //NOI18N
// Returns null as the menu is now no longer controlled here.
return null;
@Override
public void init () {
// Debug message
- this.getLogger().trace("CALLED!"); //NOI18N
+ this.getLogger().logTrace("CALLED!"); //NOI18N
try {
// Init contact manager here
}
// Debug message
- this.getLogger().trace("EXIT!"); //NOI18N
+ this.getLogger().logTrace("EXIT!"); //NOI18N
}
@Override
@Override
public void showCurrentMenu () {
// Debug message
- //* NOISY-DEBUG: */ this.getLogger().trace("CALLED!");
+ //* NOISY-DEBUG: */ this.getLogger().logTrace("CALLED!");
// Not implemented here
}
@Override
public void showWelcome () {
// Debug message
- this.getLogger().trace("CALLED!"); //NOI18N
+ this.getLogger().logTrace("CALLED!"); //NOI18N
// Not implemented here
}