|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.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 | |
---|---|
static java.lang.String |
DEFAULT_DELEGATE_PROPERTY_OBJECT_ID
|
static java.lang.String |
DELEGATE_PROPERTY_OBJECT_ID
|
Constructor Summary | |
SwingBuilder(boolean init = true)
|
Method Summary | |
---|---|
static SwingBuilder
|
$static_methodMissing(java.lang.String method, java.lang.Object args)
Old factory method static SwingBuilder.build(Closure). |
java.lang.Object
|
build(Closure c)
Compatibility API. |
static java.lang.Object
|
clientPropertyAttributeDelegate(java.lang.Object builder, java.lang.Object node, java.lang.Object attributes)
|
void
|
createKeyStrokeAction(java.util.Map attributes, javax.swing.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)
Utility 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 javax.swing.LookAndFeel
|
lookAndFeel(java.lang.Object laf, Closure initCode)
|
static javax.swing.LookAndFeel
|
lookAndFeel(java.util.Map attributes = [:], java.lang.Object laf = null, Closure initCode = null)
|
static javax.swing.LookAndFeel
|
lookAndFeel(java.lang.Object... lafs)
|
static java.lang.Object
|
objectIDAttributeDelegate(java.lang.Object builder, java.lang.Object node, java.lang.Object attributes)
|
java.lang.Object
|
registerActionButtonWidgets()
|
java.lang.Object
|
registerBasicLayouts()
|
java.lang.Object
|
registerBasicWidgets()
|
void
|
registerBeanFactory(java.lang.String nodeName, java.lang.String groupName, java.lang.Class klass)
Do some overrides for standard component handlers, else use super |
java.lang.Object
|
registerBinding()
|
java.lang.Object
|
registerBorders()
|
java.lang.Object
|
registerBoxLayout()
|
java.lang.Object
|
registerContainers()
|
java.lang.Object
|
registerDataModels()
|
java.lang.Object
|
registerEditors()
|
java.lang.Object
|
registerMDIWidgets()
|
java.lang.Object
|
registerMenuWidgets()
|
java.lang.Object
|
registerPassThruNodes()
|
java.lang.Object
|
registerRenderers()
|
java.lang.Object
|
registerSupportNodes()
|
java.lang.Object
|
registerTableComponents()
|
java.lang.Object
|
registerTableLayout()
|
java.lang.Object
|
registerTextWidgets()
|
java.lang.Object
|
registerThreading()
|
java.lang.Object
|
registerWindows()
|
javax.swing.KeyStroke
|
shortcut(java.lang.Object key, java.lang.Object modifier = 0)
|
javax.swing.KeyStroke
|
shortcut(java.lang.String key, java.lang.Object modifier = 0)
|
Methods inherited from class Binding | |
---|---|
getProperty, getVariable, getVariables, hasVariable, setProperty, setVariable |
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String DEFAULT_DELEGATE_PROPERTY_OBJECT_ID
public static final java.lang.String DELEGATE_PROPERTY_OBJECT_ID
Constructor Detail |
---|
SwingBuilder(boolean init = true)
Method Detail |
---|
@Deprecated static SwingBuilder $static_methodMissing(java.lang.String method, java.lang.Object args)
c
- run this closure in the builder using the edt method
java.lang.Object build(Closure c)
c
- run this closure in the builder
static java.lang.Object clientPropertyAttributeDelegate(java.lang.Object builder, java.lang.Object node, java.lang.Object attributes)
void createKeyStrokeAction(java.util.Map attributes, javax.swing.JComponent component = null )
SwingBuilder doLater(Closure c)
SwingUtilities.invokeLater.
- Parameters:
c
- this closure is run in the EDT
SwingBuilder doOutside(Closure c)
The closure is wrapped in a thread, and the thread is started immediately, only if the current thread is the EDT, otherwise the closure will be called immediately.
c
- this closure is started outside of the EDT
SwingBuilder edt(Closure c)
SwingUtilities.invokeAndWait.
- Parameters:
c
- this closure is run in the EDT
static SwingBuilder edtBuilder(Closure c)
c
- run this closure in the new builder using the edt method
static javax.swing.LookAndFeel lookAndFeel(java.lang.Object laf, Closure initCode)
static javax.swing.LookAndFeel lookAndFeel(java.util.Map attributes = [:], java.lang.Object laf = null, Closure initCode = null)
static javax.swing.LookAndFeel lookAndFeel(java.lang.Object... lafs)
static java.lang.Object objectIDAttributeDelegate(java.lang.Object builder, java.lang.Object node, java.lang.Object attributes)
java.lang.Object registerActionButtonWidgets()
java.lang.Object registerBasicLayouts()
java.lang.Object registerBasicWidgets()
void registerBeanFactory(java.lang.String nodeName, java.lang.String groupName, java.lang.Class klass)
java.lang.Object registerBinding()
java.lang.Object registerBorders()
java.lang.Object registerBoxLayout()
java.lang.Object registerContainers()
java.lang.Object registerDataModels()
java.lang.Object registerEditors()
java.lang.Object registerMDIWidgets()
java.lang.Object registerMenuWidgets()
java.lang.Object registerPassThruNodes()
java.lang.Object registerRenderers()
java.lang.Object registerSupportNodes()
java.lang.Object registerTableComponents()
java.lang.Object registerTableLayout()
java.lang.Object registerTextWidgets()
java.lang.Object registerThreading()
java.lang.Object registerWindows()
javax.swing.KeyStroke shortcut(java.lang.Object key, java.lang.Object modifier = 0)
javax.swing.KeyStroke shortcut(java.lang.String key, java.lang.Object modifier = 0)
Groovy Documentation