public class MacroAssign<T> extends MacroFunctor<T>
MacroFunctor.
This wraps an IFunctor and its definition context.ATTR_DESCRIPTION, ATTR_ICON, ATTR_LABEL, ATTR_TIP| Constructor and Description |
|---|
MacroAssign() |
MacroAssign(IFunctor<T> functor,
String assignTo) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(IElement element) |
void |
dispose() |
String |
getAssignTo() |
String |
getLabel()
A short string representation (suitable for example for use with an icon
or menu item).
|
IFunctor |
getValueExpression() |
T |
perform(IFunctorCall call)
Perform the encapsulated business logic in the context defined in "call".
|
void |
serialize(IElement element)
Serialize the state in
element. |
void |
setAssignTo(String assignTo) |
void |
setValueExpression(IFunctor functor) |
getClassLoader, getContainer, getContext, getDescription, getIconName, getTip, setContainer, setContextpublic void configure(IElement element) throws ConfigurationException
configure in interface IElementConfigurableconfigure in class MacroFunctor<T>ConfigurationExceptionpublic void dispose()
throws FunctorInvocationException
FunctorInvocationExceptionpublic String getAssignTo()
public String getLabel()
IPresentationSupportgetLabel in interface IPresentationSupportgetLabel in class MacroFunctor<T>public IFunctor getValueExpression()
public T perform(IFunctorCall call) throws FunctorInvocationException
IFunctorcall - The call contextFunctorInvocationException - An exception that raised while executing the business logic
will be wrapped in a FunctorInvocationException.public 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 IElementSerializableserialize in class MacroFunctor<T>ElementSerializationExceptionpublic void setAssignTo(String assignTo)
public void setValueExpression(IFunctor functor)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.