public abstract class MacroFunctor<T> extends Object implements IFunctor<T>, IPresentationSupport, IElementConfigurable, IElementSerializable, IClassLoaderSupport, IContextSupport
IFunctor based implementation for scripting components.ATTR_DESCRIPTION, ATTR_ICON, ATTR_LABEL, ATTR_TIP| Constructor and Description |
|---|
MacroFunctor() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(IElement element) |
ClassLoader |
getClassLoader()
A
ClassLoader instance suitable to load classes and resources in
the context of the receiver. |
MacroFunctor |
getContainer() |
Object |
getContext() |
String |
getDescription()
A long, descriptive string representation.
|
String |
getIconName()
A name for an icon.
|
String |
getLabel()
A short string representation (suitable for example for use with an icon
or menu item).
|
String |
getTip()
An "intermediate" length description (suitable for example with a
tooltip).
|
void |
serialize(IElement element)
Serialize the state in
element. |
void |
setContainer(MacroFunctor container) |
void |
setContext(Object context) |
public void configure(IElement element) throws ConfigurationException
configure in interface IElementConfigurableConfigurationExceptionpublic ClassLoader getClassLoader()
IClassLoaderSupportClassLoader instance suitable to load classes and resources in
the context of the receiver.getClassLoader in interface IClassLoaderSupportClassLoader instance suitable to load classes and
resources in the context of the receiver.public MacroFunctor getContainer()
public Object getContext()
public String getDescription()
IPresentationSupportgetDescription in interface IPresentationSupportpublic String getIconName()
IPresentationSupportgetIconName in interface IPresentationSupportpublic String getLabel()
IPresentationSupportgetLabel in interface IPresentationSupportpublic String getTip()
IPresentationSupportgetTip in interface IPresentationSupportpublic void serialize(IElement element) throws ElementSerializationException
IElementSerializableelement. element
represents the receiver immediately, it contains the state information
directly, not as a child element. This means most of the time you have to
change the element name itself and add child elements.serialize in interface IElementSerializableElementSerializationExceptionpublic void setContainer(MacroFunctor container)
public void setContext(Object context) throws ConfigurationException
setContext in interface IContextSupportConfigurationExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.