All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.machinezoo.pmdata.DataPage Maven / Gradle / Ivy

There is a newer version: 0.13.1
Show newest version
// Part of PMData: https://pmdata.machinezoo.com
package com.machinezoo.pmdata;

import java.util.stream.*;
import com.machinezoo.pmdata.widgets.*;
import com.machinezoo.pmsite.*;
import com.machinezoo.stagean.*;

@DraftApi
public class DataPage extends SitePage {
	@Override
	public DataSite site() {
		SiteConfiguration site = super.site();
		if (site != null)
			return (DataSite)site;
		return null;
	}
	@DraftCode
	@Override
	public Stream css() {
		/*
		 * File normalize.css should be in resources and uploaded to CDN on demand.
		 */
		return Stream.concat(super.css(), Stream.of("https://cdn.machinezoo.com/lib/normalize-css/4.1.1/normalize.css", "/defaults.css"));
	}
	@Override
	protected void widgets(SiteTemplate template) {
		super.widgets(template);
		DataWidgets.register(this, template);
		new ArticleHeader().register(template);
		DevelopmentStageNotice.registerAll(template);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy