Beginning work on pit-swing

This commit is contained in:
Jonathan Bernard
2010-02-22 11:50:42 -06:00
parent b5009af2b5
commit c601910557
9 changed files with 426 additions and 9 deletions

View File

@ -9,6 +9,13 @@ application {
//frameClass = 'javax.swing.JFrame'
}
mvcGroups {
// MVC Group for "com.jdbernard.pit.swing.PIT"
'PIT' {
model = 'com.jdbernard.pit.swing.PITModel'
controller = 'com.jdbernard.pit.swing.PITController'
view = 'com.jdbernard.pit.swing.PITView'
}
// MVC Group for "pit-swing"
'pit-swing' {
model = 'PitSwingModel'

View File

@ -1,4 +1,6 @@
class PitSwingController {
package com.jdbernard.pit.swing
class PITController {
// these will be injected by Griffon
def model
def view

View File

@ -1,5 +0,0 @@
import groovy.beans.Bindable
class PitSwingModel {
// @Bindable String propName
}

View File

@ -0,0 +1,8 @@
package com.jdbernard.pit.swing
import com.jdbernard.pit.Project
import groovy.beans.Bindable
class PITModel {
@Bindable Project rootProject
}

View File

@ -1,4 +1,9 @@
application(title:'pit-swing',
package com.jdbernard.pit.swing
import net.miginfocom.swing.MigLayout
frame = application(title:'Personal Issue Tracker',
locationRelativeTo: null,
//size:[320,480],
pack:true,
//location:[50,50],
@ -8,6 +13,8 @@ application(title:'pit-swing',
imageIcon('/griffon-icon-32x32.png').image,
imageIcon('/griffon-icon-16x16.png').image]
) {
// add content here
label('Content Goes Here') // deleteme
// MENU GOES HERE
panel(layout: new MigLayout('insets 5 5 5 5')) {
scrollPane()
}
}