Changeset 6923 for lang/scala
- Timestamp:
- 02/19/08 17:57:17 (9 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/scala/sandbox/src/jp/gr/java_conf/mizu/gui/GUIBuilder.scala
r6921 r6923 45 45 params.foreach { 46 46 case text:String => button.setText(text) 47 case handler:ActionListener => button.addActionListener(handler) 47 48 case (property:Symbol, value:Any) => setProperty(button, property, value) 48 49 } 49 50 button 50 51 } 51 def action(handler :ActionEvent => Unit) :Action = {52 new AbstractAction{53 def actionPerformed(e :ActionEvent) = handler(e)54 }52 def action(handler :ActionEvent => Unit) :ActionListener = { 53 new ActionListener { 54 def actionPerformed(e :ActionEvent) = handler(e) 55 } 55 56 } 56 57 def dimension(width :Int, height :Int) :Dimension = {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)