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

org.devocative.wickomp.grid.toolbar.OTreeGridClientButton 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.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