Beginning update to add GUI logging.

This commit is contained in:
Jonathan Bernard
2010-04-02 05:43:04 -05:00
parent 5b3e2066a2
commit dbb2121525
11 changed files with 547 additions and 39 deletions

View File

@ -0,0 +1,10 @@
package com.jdbernard.timestamper
import javax.swing.JDialog
dialog = dialog(new JDialog(model.mainMVC.view.frame),
title: 'Error Messages...',
modal: false) {
logger.traceIfEnabled { "Building LogDialog view." }
}

View File

@ -46,7 +46,7 @@ dialog = dialog(new JDialog(model.mainMVC.view.frame),
return p
} else return dialog.location })
) {
logger.traceIfEnabled('Building NotesDialog GUI')
logger.traceIfEnabled {'Building NotesDialog GUI'}
panel(
border:lineBorder(color: Color.BLACK, thickness:1, parent:true),
layout: new MigLayout('insets 10 10 10 10, fill')

View File

@ -51,7 +51,7 @@ dialog = dialog(new JDialog(model.mainMVC.view.frame),
return p
} else return dialog.location })
) {
logger.traceIfEnabled('Building PunchcardDialog GUI')
logger.traceIfEnabled {'Building PunchcardDialog GUI'}
panel(
border:lineBorder(color: Color.BLACK, thickness:1, parent:true),
layout: new MigLayout('fill, insets 10 10 10 10',

View File

@ -107,7 +107,7 @@ frame = application(title:'TimeStamper',
imageIcon('/appointment-new-16x16.png').image],
componentMoved: { evt -> model.absoluteLocation = frame.location }
) {
logger.traceIfEnabled('Building TimeStamperMain GUI')
logger.traceIfEnabled {'Building TimeStamperMain GUI'}
panel(
border:lineBorder(color:Color.BLACK, thickness:1, parent:true),
layout: new MigLayout('insets 0 5 0 0, fill','', '[]0[]0[]'),