
org.nakedobjects.plugins.htmlviewer.html.Div Maven / Gradle / Ivy
The newest version!
package org.nakedobjects.plugins.htmlviewer.html;
import java.io.PrintWriter;
import org.nakedobjects.plugins.htmlviewer.component.Block;
import org.nakedobjects.plugins.htmlviewer.component.Component;
public class Div extends CompositeComponent implements Block {
private final String className;
private final String id;
private final String description;
public Div(final String className, final String description) {
this.className = className;
this.description = description;
id = null;
}
public Div(final String className, final String description, final String id) {
this.description = description;
this.className = className;
this.id = id;
}
@Override
public void write(final PrintWriter writer) {
super.write(writer);
}
@Override
protected void writeBefore(final PrintWriter writer) {
writer.print("");
}
@Override
protected void writeAfter(final PrintWriter writer) {
writer.println("");
}
@Override
public void add(final Component component) {
super.add(component);
}
public void add(final String text) {
super.add(new Html(text));
}
}
// Copyright (c) Naked Objects Group Ltd.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy