|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Binding
groovy.util.FactoryBuilderSupport
groovy.swing.SwingBuilder
class SwingBuilder extends FactoryBuilderSupport
A helper class for creating Swing widgets using GroovyMarkup
Field Summary |
---|
Property Summary | |
---|---|
static String |
DEFAULT_DELEGATE_PROPERTY_OBJECT_ID
|
static String |
DELEGATE_PROPERTY_OBJECT_ID
|
Constructor Summary | |
SwingBuilder(boolean init = true)
|
Method Summary | |
---|---|
static SwingBuilder
|
$static_methodMissing(String method, Object args)
Old factory method static SwingBuilder.build(Closure). |
Object
|
build(Closure c)
Compatibility API. |
static def
|
clientPropertyAttributeDelegate(def builder, def node, def attributes)
|
void
|
createKeyStrokeAction(Map attributes, JComponent component = null )
|
SwingBuilder
|
doLater(Closure c)
Utility method to run a closure in EDT,
using |
SwingBuilder
|
doOutside(Closure c)
Utility method to run a closure outside of the EDT. |
SwingBuilder
|
edt(Closure c)
Utilitiy method to run a closure in EDT,
using |
static SwingBuilder
|
edtBuilder(Closure c)
Factory method to create a SwingBuilder, and run the the closure in it on the EDT |
static LookAndFeel
|
lookAndFeel(Object laf, Closure initCode)
|
static LookAndFeel
|
lookAndFeel(Map attributes = [:], Object laf = null, Closure initCode = null)
|
static LookAndFeel
|
lookAndFeel(Object lafs)
|
static def
|
objectIDAttributeDelegate(def builder, def node, def attributes)
|
def
|
registerActionButtonWidgets()
|
def
|
registerBasicLayouts()
|
def
|
registerBasicWidgets()
|
void
|
registerBeanFactory(String nodeName, String groupName, Class klass)
Do some overrides for standard component handlers, else use super |
def
|
registerBinding()
|
def
|
registerBorders()
|
def
|
registerBoxLayout()
|
def
|
registerContainers()
|
def
|
registerDataModels()
|
def
|
registerMDIWidgets()
|
def
|
registerMenuWidgets()
|
def
|
registerPassThruNodes()
|
def
|
registerRenderers()
|
def
|
registerSupportNodes()
|
def
|
registerTableComponents()
|
def
|
registerTableLayout()
|
def
|
registerTextWidgets()
|
def
|
registerThreading()
|
def
|
registerWindows()
|
KeyStroke
|
shortcut(def key, def modifier = 0)
|
KeyStroke
|
shortcut(String key, def modifier = 0)
|
Methods inherited from class Binding | |
---|---|
getProperty, getVariable, getVariables, setProperty, setVariable |
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Property Detail |
---|
public static final String DEFAULT_DELEGATE_PROPERTY_OBJECT_ID
public static final String DELEGATE_PROPERTY_OBJECT_ID
Constructor Detail |
---|
public SwingBuilder(boolean init = true)
Method Detail |
---|
@Deprecated public static SwingBuilder $static_methodMissing(String method, Object args)
public Object build(Closure c)
public static def clientPropertyAttributeDelegate(def builder, def node, def attributes)
public void createKeyStrokeAction(Map attributes, JComponent component = null )
public SwingBuilder doLater(Closure c)
SwingUtilities.invokeLater.
- param:
- c this closure is run in the EDT
public SwingBuilder doOutside(Closure c)
The closure is wrapped in a thread, and the thread is started immediatly, only if the current thread is the EDT, otherwise the closure will be called immediatly.
public SwingBuilder edt(Closure c)
SwingUtilities.invokeAndWait.
- param:
- c this closure is run in the EDT
public static SwingBuilder edtBuilder(Closure c)
public static LookAndFeel lookAndFeel(Object laf, Closure initCode)
public static LookAndFeel lookAndFeel(Map attributes = [:], Object laf = null, Closure initCode = null)
public static LookAndFeel lookAndFeel(Object lafs)
public static def objectIDAttributeDelegate(def builder, def node, def attributes)
public def registerActionButtonWidgets()
public def registerBasicLayouts()
public def registerBasicWidgets()
public void registerBeanFactory(String nodeName, String groupName, Class klass)
public def registerBinding()
public def registerBorders()
public def registerBoxLayout()
public def registerContainers()
public def registerDataModels()
public def registerMDIWidgets()
public def registerMenuWidgets()
public def registerPassThruNodes()
public def registerRenderers()
public def registerSupportNodes()
public def registerTableComponents()
public def registerTableLayout()
public def registerTextWidgets()
public def registerThreading()
public def registerWindows()
public KeyStroke shortcut(def key, def modifier = 0)
public KeyStroke shortcut(String key, def modifier = 0)
Copyright © 2003-2009 The Codehaus. All rights reserved.