All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.devocative.wickomp.grid.toolbar.OGridGroupingButton Maven / Gradle / Ivy

There is a newer version: 2.11
Show newest version
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("");

		if (expand != null) {
			builder.append(String.format("")
			;
		}

		if (collapse != null) {
			builder.append(String.format("")
			;
		}

		builder.append("
%s: ") .append(expand.toString()) .append("") .append(collapse.toString()) .append("
"); return builder.toString(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy