Interface IMacro
- All Known Subinterfaces:
IDefaultMacro
- All Known Implementing Classes:
XMLMacro
public interface IMacro
A Macro can automatically create tag attribute names out of information
that is already defined within the grid.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkIfApplicable
(String tagName) Check if a macro can be executed for a certain tag.boolean
checkIfAttributeIsAffected
(String attribute) Check if macro updates a certain attribute's value.void
executeMacro
(BaseComponentTag tag, String[] macroParams) Macro execution at runtime.String[]
Names of Macro parameters.getName()
Name of the macro.
-
Method Details
-
executeMacro
Macro execution at runtime. -
checkIfApplicable
Check if a macro can be executed for a certain tag. This function is e.g. called in the Layout Editor: the select box of available macros is filled correspondingly. -
checkIfAttributeIsAffected
Check if macro updates a certain attribute's value. This function is called e.g. by the Layout Editor: all attributes that are maintained by the macro are marked correspondingly. -
getName
String getName()Name of the macro. -
getMacroParamNames
String[] getMacroParamNames()Names of Macro parameters. Null may be returned in case the macro does not provide for any parameters.
-