A helper class for creating Swing widgets using GroovyMarkup
Type | Name and description |
---|---|
private static String |
DEFAULT_DELEGATE_PROPERTY_OBJECT_ID |
private static String |
DELEGATE_PROPERTY_OBJECT_ID |
Constructor and description |
---|
SwingBuilder
(boolean init) |
SwingBuilder
() |
Old factory method static SwingBuilder.build(Closure).
c
- run this closure in the builder using the edt methodCompatibility API.
c
- run this closure in the builder Utility method to run a closure in EDT,
using SwingUtilities.invokeLater
.
c
- this closure is run in the EDTUtility method to run a closure outside of the EDT.
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 Utility method to run a closure in EDT,
using SwingUtilities.invokeAndWait
.
c
- this closure is run in the EDTFactory method to create a SwingBuilder, and run the the closure in it on the EDT
c
- run this closure in the new builder using the edt methodDo some overrides for standard component handlers, else use super
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.