- groovy.swing.SwingBuilder
-
-
Inherited fields
Fields inherited from class |
Fields |
class FactoryBuilderSupport |
CURRENT_FACTORY, PARENT_FACTORY, PARENT_NODE, CURRENT_NODE, PARENT_CONTEXT, PARENT_NAME, CURRENT_NAME, OWNER, PARENT_BUILDER, CURRENT_BUILDER, CHILD_BUILDER, SCRIPT_CLASS_NAME |
-
Methods Summary
Methods
Type Params |
Return Type |
Name and description |
|
static SwingBuilder |
$static_methodMissing(String method, Object args) Old factory method static SwingBuilder.build(Closure). |
|
Object |
build(Closure c) Compatibility API. |
|
static Object |
clientPropertyAttributeDelegate(Object builder, Object node, Object attributes)
|
|
void |
createKeyStrokeAction(Map attributes, JComponent component)
|
|
SwingBuilder |
doLater(Closure c) Utility method to run a closure in EDT,
using SwingUtilities.invokeLater . |
|
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 SwingUtilities.invokeAndWait . |
|
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, Closure initCode)
|
|
static LookAndFeel |
lookAndFeel(Object[] lafs)
|
|
static Object |
objectIDAttributeDelegate(Object builder, Object node, Object attributes)
|
|
Object |
registerActionButtonWidgets()
|
|
Object |
registerBasicLayouts()
|
|
Object |
registerBasicWidgets()
|
|
void |
registerBeanFactory(String nodeName, String groupName, Class klass) Do some overrides for standard component handlers, else use super |
|
Object |
registerBinding()
|
|
Object |
registerBorders()
|
|
Object |
registerBoxLayout()
|
|
Object |
registerContainers()
|
|
Object |
registerDataModels()
|
|
Object |
registerEditors()
|
|
Object |
registerMDIWidgets()
|
|
Object |
registerMenuWidgets()
|
|
Object |
registerPassThruNodes()
|
|
Object |
registerRenderers()
|
|
Object |
registerSupportNodes()
|
|
Object |
registerTableComponents()
|
|
Object |
registerTableLayout()
|
|
Object |
registerTextWidgets()
|
|
Object |
registerThreading()
|
|
Object |
registerWindows()
|
|
KeyStroke |
shortcut(Object key, Object modifier)
|
|
KeyStroke |
shortcut(String key, Object modifier)
|
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class FactoryBuilderSupport |
getProperty, getName, setProperty, getContext, build, build, build, dispose, invokeMethod, invokeMethod, getCurrent, registerFactory, registerFactory, getVariables, getParentNode, getVariable, setVariable, autoRegisterNodes, checkValueIsNull, getFactories, getExplicitMethods, getLocalFactories, getCurrentBuilder, getParentFactory, getChildBuilder, checkValueIsType, getParentContext, getCurrentFactory, withBuilder, withBuilder, withBuilder, addDisposalClosure, getCurrentName, getParentName, registerBeanFactory, registerBeanFactory, removePreInstantiateDelegate, addPostNodeCompletionDelegate, removePostNodeCompletionDelegate, registerExplicitProperty, registerExplicitProperty, registerExplicitMethod, registerExplicitMethod, getRegistrationGroupItems, addAttributeDelegate, getLocalExplicitMethods, getRegistrationGroups, addPostInstantiateDelegate, removePostInstantiateDelegate, getExplicitProperties, getAttributeDelegates, getLocalExplicitProperties, getPreInstantiateDelegates, getPostInstantiateDelegates, getMethodMissingDelegate, setMethodMissingDelegate, setPropertyMissingDelegate, getPostNodeCompletionDelegates, getContextAttribute, addPreInstantiateDelegate, checkValueIsTypeNotString, getPropertyMissingDelegate, removeAttributeDelegate, getNameMappingClosure, getDisposalClosures, setNameMappingClosure, removeVariable, hasVariable, getMetaClass, setMetaClass, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
-
-
Property Detail
-
private static final String DEFAULT_DELEGATE_PROPERTY_OBJECT_ID
-
private static final String DELEGATE_PROPERTY_OBJECT_ID
-
Constructor Detail
-
SwingBuilder(boolean init)
-
Method Detail
-
Compatibility API.
- Parameters:
c
- run this closure in the builder
-
Utility 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.
- Parameters:
c
- this closure is started outside of the EDT
-
Object registerActionButtonWidgets()
-
Object registerPassThruNodes()
-
Object registerTableComponents()
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.