org.devocative.wickomp.grid.toolbar.OTreeGridClientButton Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wickomp Show documentation
Show all versions of wickomp Show documentation
Web components for Apache Wicket
package org.devocative.wickomp.grid.toolbar;
import org.apache.wicket.model.ResourceModel;
import org.devocative.wickomp.html.HTMLBase;
public class OTreeGridClientButton extends OButton {
private static final long serialVersionUID = 5728174607489192106L;
private HTMLBase expand, collapse;
public OTreeGridClientButton(HTMLBase collapse) {
this(null, collapse);
}
public OTreeGridClientButton(HTMLBase expand, HTMLBase collapse) {
this.expand = expand;
this.collapse = collapse;
}
@Override
public String getHTMLContent() {
StringBuilder builder = new StringBuilder();
if (expand != null) {
builder
.append(String.format("")
.append(expand.toString())
.append("")
;
}
builder
.append(String.format("")
.append(collapse.toString())
.append("")
;
return builder.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy