Package org.openbravo.client.kernel
Class ComponentGenerator
- java.lang.Object
-
- org.openbravo.client.kernel.ComponentGenerator
-
public class ComponentGenerator extends Object
Uses a component to generate the component output and then postprocesses this output.- Author:
- mtaal
- See Also:
Component.generate()
,JSCompressor
-
-
Constructor Summary
Constructors Constructor Description ComponentGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generate(Component component)
CallsComponent.generate()
and optionally compresses the output.static ComponentGenerator
getInstance()
static void
setInstance(ComponentGenerator instance)
-
-
-
Method Detail
-
getInstance
public static ComponentGenerator getInstance()
-
setInstance
public static void setInstance(ComponentGenerator instance)
-
generate
public String generate(Component component)
CallsComponent.generate()
and optionally compresses the output. Compressing is done if the module of the component (Component.getModule()
) is not in development.- Parameters:
component
- the component to generate javascript for- Returns:
- generated and compressed javascript.
-
-