org.devocative.wickomp.grid.toolbar.OGridGroupingButton 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.grid.column.OColumn;
import org.devocative.wickomp.grid.column.OPropertyColumn;
import org.devocative.wickomp.html.HTMLBase;
public class OGridGroupingButton extends OButton {
private static final long serialVersionUID = -5807113340530435125L;
private HTMLBase expand, collapse;
// ------------------------------
public OGridGroupingButton(HTMLBase expand, HTMLBase collapse) {
this.expand = expand;
this.collapse = collapse;
}
// ------------------------------
@Override
public String getHTMLContent() {
StringBuilder builder = new StringBuilder();
builder.append("");
builder.append(String.format("%s: ");
if (expand != null) {
builder.append(String.format("")
.append(expand.toString())
.append(" ")
;
}
if (collapse != null) {
builder.append(String.format("")
.append(collapse.toString())
.append(" ")
;
}
builder.append("
");
return builder.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy