Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package net.n2oapp.framework.config.metadata.pack;
import net.n2oapp.framework.api.pack.MetadataPack;
import net.n2oapp.framework.config.N2oApplicationBuilder;
import net.n2oapp.framework.config.metadata.compile.N2oButtonGeneratorFactory;
import net.n2oapp.framework.config.metadata.compile.toolbar.*;
import net.n2oapp.framework.config.metadata.compile.toolbar.table.*;
import net.n2oapp.framework.config.metadata.compile.widget.*;
import net.n2oapp.framework.config.metadata.compile.widget.table.FilterColumnHeaderCompiler;
import net.n2oapp.framework.config.metadata.compile.widget.table.MultiColumnHeaderCompiler;
import net.n2oapp.framework.config.metadata.compile.widget.table.SimpleColumnHeaderCompiler;
import net.n2oapp.framework.config.metadata.merge.widget.N2oFormMerger;
import net.n2oapp.framework.config.metadata.merge.widget.N2oTableMerger;
import net.n2oapp.framework.config.metadata.merge.widget.N2oWidgetMerger;
public class N2oWidgetsPack implements MetadataPack {
@Override
public void build(N2oApplicationBuilder b) {
b.packs(new N2oWidgetsIOPack(), new N2oWidgetsV5IOPack());
b.compilers(new FormCompiler(),
new ListWidgetCompiler(),
new ToolbarCompiler(), new PerformButtonCompiler(), new SubmenuCompiler(),
new TableCompiler(), new SimpleColumnHeaderCompiler(), new FilterColumnHeaderCompiler(), new MultiColumnHeaderCompiler(),
new HtmlWidgetCompiler(),
new CustomWidgetCompiler(),
new TreeCompiler(),
new ChartCompiler(),
new CalendarCompiler(),
new TilesCompiler(),
new CardsCompiler());
b.mergers(new N2oWidgetMerger(), new N2oFormMerger(), new N2oTableMerger());
CrudGenerator crudGenerator = new CrudGenerator();
N2oButtonGeneratorFactory buttonGeneratorFactory = new N2oButtonGeneratorFactory();
buttonGeneratorFactory.add(new CreateGenerator(), new UpdateGenerator(), new DeleteGenerator());
buttonGeneratorFactory.setEnvironment(b.getEnvironment());
crudGenerator.setButtonGeneratorFactory(buttonGeneratorFactory);
b.generators(crudGenerator,
new CreateGenerator(),
new UpdateGenerator(),
new DeleteGenerator(),
new SubmitGenerator(),
new CloseGenerator(),
new TableColumnsGenerator(),
new TableFiltersGenerator(),
new TableRefreshGenerator(),
new TableResizeGenerator(),
new TableWordWrapGenerator(),
new TableExportGenerator(),
new TableSettingsGenerator());
b.binders(new WidgetBinder(),
new TableBinder(),
new ListWidgetBinder(),
new FormBinder(),
new TilesBinder(),
new CardsBinder());
}
}