groovy.swing
Class SwingBuilder

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.util.BuilderSupport
          extended by groovy.swing.SwingBuilder
All Implemented Interfaces:
GroovyObject

public class SwingBuilder
extends BuilderSupport

A helper class for creating Swing widgets using GroovyMarkup

Version:
$Revision: 4247 $
Author:
James Strachan

Constructor Summary
SwingBuilder()
           
 
Method Summary
protected  java.lang.String capitalize(java.lang.String text)
           
protected  java.lang.Object createBoxLayout(java.util.Map properties)
           
protected  java.lang.Object createComboBox(java.util.Map properties)
           
protected  java.lang.Object createDialog(java.util.Map properties)
           
protected  java.lang.Object createFormattedTextField(java.util.Map properties)
          Uses 'format," or "value," (in order)
protected  java.lang.Object createFrame(java.util.Map properties)
           
protected  java.lang.Object createNode(java.lang.Object name)
           
protected  java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)
           
protected  java.lang.Object createNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value)
           
protected  java.lang.Object createNode(java.lang.Object name, java.lang.Object value)
           
protected  java.lang.Object createWindow(java.util.Map properties)
           
 java.lang.Object getProperty(java.lang.String name)
           
protected  void handleWidgetAttributes(java.lang.Object widget, java.util.Map attributes)
           
protected  void nodeCompleted(java.lang.Object parent, java.lang.Object node)
          A hook to allow nodes to be processed once they have had all of their children applied
protected  void registerBeanFactory(java.lang.String name, java.lang.Class beanClass)
           
protected  void registerFactory(java.lang.String name, Factory factory)
           
protected  void registerWidgets()
           
protected  void setParent(java.lang.Object parent, java.lang.Object child)
           
 
Methods inherited from class groovy.util.BuilderSupport
doInvokeMethod, getCurrent, getName, invokeMethod, invokeMethod, setClosureDelegate, setCurrent
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingBuilder

public SwingBuilder()
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String name)
Specified by:
getProperty in interface GroovyObject
Overrides:
getProperty in class GroovyObjectSupport
Returns:
the given property

setParent

protected void setParent(java.lang.Object parent,
                         java.lang.Object child)
Specified by:
setParent in class BuilderSupport

nodeCompleted

protected void nodeCompleted(java.lang.Object parent,
                             java.lang.Object node)
Description copied from class: BuilderSupport
A hook to allow nodes to be processed once they have had all of their children applied

Overrides:
nodeCompleted in class BuilderSupport

createNode

protected java.lang.Object createNode(java.lang.Object name)
Specified by:
createNode in class BuilderSupport

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.lang.Object value)
Specified by:
createNode in class BuilderSupport

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.util.Map attributes,
                                      java.lang.Object value)
Specified by:
createNode in class BuilderSupport

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.util.Map attributes)
Specified by:
createNode in class BuilderSupport

handleWidgetAttributes

protected void handleWidgetAttributes(java.lang.Object widget,
                                      java.util.Map attributes)

capitalize

protected java.lang.String capitalize(java.lang.String text)

registerWidgets

protected void registerWidgets()

createBoxLayout

protected java.lang.Object createBoxLayout(java.util.Map properties)

createDialog

protected java.lang.Object createDialog(java.util.Map properties)

createFormattedTextField

protected java.lang.Object createFormattedTextField(java.util.Map properties)
Uses 'format," or "value," (in order)


createFrame

protected java.lang.Object createFrame(java.util.Map properties)

createWindow

protected java.lang.Object createWindow(java.util.Map properties)

createComboBox

protected java.lang.Object createComboBox(java.util.Map properties)

registerBeanFactory

protected void registerBeanFactory(java.lang.String name,
                                   java.lang.Class beanClass)

registerFactory

protected void registerFactory(java.lang.String name,
                               Factory factory)


Copyright © 2003-2011 The Codehaus. All Rights Reserved.