com.vaadin.polymer.iron.widget.IronComponentPage Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-component-page project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.iron.widget;
import com.vaadin.polymer.iron.element.*;
import com.vaadin.polymer.PolymerWidget;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;
/**
* Loads Polymer element and behavior documentation using
Hydrolysis and renders a complete
documentation page including demos (if available).
*/
public class IronComponentPage extends PolymerWidget {
/**
* Default Constructor.
*/
public IronComponentPage() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public IronComponentPage(String html) {
super(IronComponentPageElement.TAG, IronComponentPageElement.SRC, html);
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public IronComponentPageElement getPolymerElement() {
return (IronComponentPageElement) getElement();
}
/**
* The element or behavior that will be displayed on the page. Defaults
to the element matching the name of the source file.
*
* JavaScript Info:
* @property active
* @type String
*
*/
public String getActive(){
return getPolymerElement().getActive();
}
/**
* The element or behavior that will be displayed on the page. Defaults
to the element matching the name of the source file.
*
* JavaScript Info:
* @property active
* @type String
*
*/
public void setActive(String value) {
getPolymerElement().setActive(value);
}
/**
* The relative root for determining paths to demos and default source
detection.
*
* JavaScript Info:
* @property base
* @type String
*
*/
public String getBase(){
return getPolymerElement().getBase();
}
/**
* The relative root for determining paths to demos and default source
detection.
*
* JavaScript Info:
* @property base
* @type String
*
*/
public void setBase(String value) {
getPolymerElement().setBase(value);
}
/**
* The Hydrolysis behavior descriptors that have been loaded.
*
* JavaScript Info:
* @property docBehaviors
* @type Array
*
*/
public JsArray getDocBehaviors(){
return getPolymerElement().getDocBehaviors();
}
/**
* The Hydrolysis behavior descriptors that have been loaded.
*
* JavaScript Info:
* @property docBehaviors
* @type Array
*
*/
public void setDocBehaviors(JsArray value) {
getPolymerElement().setDocBehaviors(value);
}
/**
* The Hydrolysis behavior descriptors that have been loaded.
*
* JavaScript Info:
* @attribute doc-behaviors
*
*/
public void setDocBehaviors(String value) {
getPolymerElement().setAttribute("doc-behaviors", value);
}
/**
* Demos for the currently selected element.
*
* JavaScript Info:
* @property docDemos
* @type Array
*
*/
public JsArray getDocDemos(){
return getPolymerElement().getDocDemos();
}
/**
* Demos for the currently selected element.
*
* JavaScript Info:
* @property docDemos
* @type Array
*
*/
public void setDocDemos(JsArray value) {
getPolymerElement().setDocDemos(value);
}
/**
* Demos for the currently selected element.
*
* JavaScript Info:
* @attribute doc-demos
*
*/
public void setDocDemos(String value) {
getPolymerElement().setAttribute("doc-demos", value);
}
/**
* The Hydrolysis element descriptors that have been loaded.
*
* JavaScript Info:
* @property docElements
* @type Array
*
*/
public JsArray getDocElements(){
return getPolymerElement().getDocElements();
}
/**
* The Hydrolysis element descriptors that have been loaded.
*
* JavaScript Info:
* @property docElements
* @type Array
*
*/
public void setDocElements(JsArray value) {
getPolymerElement().setDocElements(value);
}
/**
* The Hydrolysis element descriptors that have been loaded.
*
* JavaScript Info:
* @attribute doc-elements
*
*/
public void setDocElements(String value) {
getPolymerElement().setAttribute("doc-elements", value);
}
/**
* The URL to a precompiled JSON descriptor. If you have precompiled
and stored a documentation set using Hydrolysis, you can load the
analyzer directly via AJAX by specifying this attribute.
* If a doc-src
is not specified, it is ignored and the default
rules according to the src
attribute are used.
*
* JavaScript Info:
* @property docSrc
* @type String
*
*/
public String getDocSrc(){
return getPolymerElement().getDocSrc();
}
/**
* The URL to a precompiled JSON descriptor. If you have precompiled
and stored a documentation set using Hydrolysis, you can load the
analyzer directly via AJAX by specifying this attribute.
* If a doc-src
is not specified, it is ignored and the default
rules according to the src
attribute are used.
*
* JavaScript Info:
* @property docSrc
* @type String
*
*/
public void setDocSrc(String value) {
getPolymerElement().setDocSrc(value);
}
/**
* Renders this element into static HTML for offline use.
* This is mostly useful for debugging and one-off documentation generation.
If you want to integrate doc generation into your build process, you
probably want to be calling hydrolysis.Analyzer.analyze()
directly.
*
* JavaScript Info:
* @method marshal
*
*/
public void marshal() {
getPolymerElement().marshal();
}
/**
* The URL to an import that declares (or transitively imports) the
elements that you wish to see documented.
* If the URL is relative, it will be resolved relative to the master
document.
* If a src
URL is not specified, it will resolve the name of the
directory containing this element, followed by dirname.html
. For
example:
* awesome-sauce/index.html
:
* <iron-doc-viewer></iron-doc-viewer>
*
*
*
Would implicitly have src="awesome-sauce.html"
.
*
* JavaScript Info:
* @property src
* @type String
*
*/
public String getSrc(){
return getPolymerElement().getSrc();
}
/**
* The URL to an import that declares (or transitively imports) the
elements that you wish to see documented.
* If the URL is relative, it will be resolved relative to the master
document.
* If a src
URL is not specified, it will resolve the name of the
directory containing this element, followed by dirname.html
. For
example:
* awesome-sauce/index.html
:
* <iron-doc-viewer></iron-doc-viewer>
*
*
*
Would implicitly have src="awesome-sauce.html"
.
*
* JavaScript Info:
* @property src
* @type String
*
*/
public void setSrc(String value) {
getPolymerElement().setSrc(value);
}
/**
* Whether all dependencies should be loaded and documented.
* Turning this on will probably slow down the load process dramatically.
*
* JavaScript Info:
* @property transitive
* @type Boolean
*
*/
public boolean getTransitive(){
return getPolymerElement().getTransitive();
}
/**
* Whether all dependencies should be loaded and documented.
* Turning this on will probably slow down the load process dramatically.
*
* JavaScript Info:
* @property transitive
* @type Boolean
*
*/
public void setTransitive(boolean value) {
getPolymerElement().setTransitive(value);
}
/**
* An optional version string.
*
* JavaScript Info:
* @property version
* @type string
*
*/
public String getVersion(){
return getPolymerElement().getVersion();
}
/**
* An optional version string.
*
* JavaScript Info:
* @property version
* @type string
*
*/
public void setVersion(String value) {
getPolymerElement().setVersion(value);
}
/**
* The current view. Can be docs
or demo
.
*
* JavaScript Info:
* @property view
* @type String
*
*/
public String getView(){
return getPolymerElement().getView();
}
/**
* The current view. Can be docs
or demo
.
*
* JavaScript Info:
* @property view
* @type String
*
*/
public void setView(String value) {
getPolymerElement().setView(value);
}
/**
*
*
* JavaScript Info:
* @property enableCustomStyleProperties
* @type boolean
*
*/
public boolean getEnableCustomStyleProperties(){
return getPolymerElement().getEnableCustomStyleProperties();
}
/**
*
*
* JavaScript Info:
* @property enableCustomStyleProperties
* @type boolean
*
*/
public void setEnableCustomStyleProperties(boolean value) {
getPolymerElement().setEnableCustomStyleProperties(value);
}
}