de.jwic.controls.mobile.MPage Maven / Gradle / Ivy
package de.jwic.controls.mobile;
import org.apache.commons.lang.StringUtils;
import de.jwic.base.Control;
import de.jwic.base.ControlContainer;
import de.jwic.base.IControlContainer;
import de.jwic.base.IOuterLayout;
import de.jwic.base.JavaScriptSupport;
/**
* Created by boogie on 10/27/14.
*/
@JavaScriptSupport(jsTemplate = "de.jwic.controls.mobile.MPage")
public class MPage extends ControlContainer implements IOuterLayout {
private final ControlContainer header;
private String text;
public MPage(IControlContainer container, String name) {
super(container, name);
this.header = new ControlContainer(this, "header");
this.setRendererId(Control.DEFAULT_OUTER_RENDERER);
this.setTemplateName(ControlContainer.class.getName());
this.text = StringUtils.isEmpty(name) ? "" : name;
}
public MPage(IControlContainer container) {
this(container, null);
}
@Override
public final String getOuterTemplateName() {
return MPage.class.getName();
}
public void setText(String title) {
this.text = title;
this.requireRedraw();
}
public String getText() {
return this.text;
}
public ControlContainer getHeaderContainer() {
return header;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy