*/\r
package org.mxchange.addressbook.client.gui;\r
\r
+import java.text.MessageFormat;\r
import javax.swing.JFrame;\r
import org.mxchange.addressbook.BaseFrameworkSystem;\r
import org.mxchange.addressbook.FrameAlreadyInitializedException;\r
\r
/**\r
* Creates an instance of this frame with a client instance\r
+ * \r
* @param client\r
*/\r
private AddressbookFrame (final Client client) {\r
// Debug line\r
- this.getLogger().debug("Initializing Swing frame ...");\r
+ this.getLogger().trace(MessageFormat.format("client={0}: CALLED!", client));\r
\r
// Set frame instance\r
this.frame = new JFrame(AddressbookApplication.printableTitle());\r
this.setClient(client);\r
}\r
\r
- @Override\r
- public void setVisible (final boolean visible) {\r
- throw new UnsupportedOperationException("Not supported yet.");\r
- }\r
-\r
/**\r
- * Setups the frame\r
+ * Setups the frame, do not set isInitialized here\r
* \r
* @param client Client instance\r
*/\r
@Override\r
public void setupFrame (final Client client) {\r
+ // Debug line\r
+ this.getLogger().trace(MessageFormat.format("client={0}: CALLED!", client));\r
+\r
// Has the user entered own data?\r
if (this.getClient().getContactManager().isOwnContactAdded()) {\r
// Debug message\r
*/\r
@Override\r
public void initFrame () throws FrameAlreadyInitializedException {\r
+ // Debug line\r
+ this.getLogger().trace("CALLED!");\r
+\r
// Has this frame been initialized?\r
- if (this.isInitialized) {\r
+ if (this.isInitialized()) {\r
// Throw exception\r
throw new FrameAlreadyInitializedException();\r
}\r
this.isInitialized = true;\r
}\r
\r
+ /**\r
+ * Returns field isInitialized. This flag indicates whether this frame has been initialized or not.\r
+ * \r
+ * @return Field isInitialized\r
+ */\r
+ @Override\r
+ public final boolean isInitialized () {\r
+ return this.isInitialized;\r
+ }\r
+\r
/**\r
* Initialize components\r
*/\r
private void initComponents () {\r
+ // Debug line\r
+ this.getLogger().trace("CALLED!");\r
}\r
\r
}\r