public abstract class PageDefinition extends Named
Constructor and Description |
---|
PageDefinition(java.lang.String name)
creates a page definition that is not automatically generated
|
PageDefinition(java.lang.String name,
boolean autogenerated)
creating a page definition
|
Modifier and Type | Method and Description |
---|---|
void |
generateToFile(SourceGenerator sg,
Module module)
generates the abstract class for the page
|
java.lang.String |
getAttributeMethodAddon() |
java.lang.String |
getClassAddon() |
NamedList<ArgumentContent> |
getPageAttributes()
This method should be overriden by page types that allow inputattributes
|
boolean |
isAutogenerated() |
void |
setNoAddOn()
defines that the page should not use any add-on
|
void |
setSpecificAddon(AddonPageDefinition addon)
speficic that the page should have a specific add-on, not the default one of
the Open Lowcode application
|
changeName, cleanName, equals, getName
public PageDefinition(java.lang.String name)
name
- unique name of the page (should be a valid java name)public PageDefinition(java.lang.String name, boolean autogenerated)
name
- unique name of the page (should be a valid java name)autogenerated
- true if class is auto-generatedpublic boolean isAutogenerated()
public NamedList<ArgumentContent> getPageAttributes()
public java.lang.String getClassAddon()
public java.lang.String getAttributeMethodAddon()
public void setSpecificAddon(AddonPageDefinition addon)
addon
- public void setNoAddOn()
public void generateToFile(SourceGenerator sg, Module module) throws java.io.IOException
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything happens while writing the file