timestamper/griffon-app/controllers/com/jdbernard/timestamper/PunchcardDialogController.groovy
2009-12-26 14:49:46 -06:00

23 lines
472 B
Groovy

package com.jdbernard.timestamper
import java.awt.Point
class PunchcardDialogController {
// these will be injected by Griffon
def model
def view
void mvcGroupInit(Map args) {
def loc = model.mainMVC.view.frame.location
Point p = new Point(0, (int) model.mainMVC.view.frame.bounds.height + 50)
p.translate((int) loc.x, (int) loc.y)
view.dialog.location = p
}
/*
def action = { evt = null ->
}
*/
}