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

com.citytechinc.cq.component.dialog.tab.TabParameters Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package com.citytechinc.cq.component.dialog.tab;

import com.citytechinc.cq.component.dialog.DefaultDialogElementParameters;
import com.citytechinc.cq.component.util.Constants;

public class TabParameters extends DefaultDialogElementParameters {
	private String title;

	public String getTitle() {
		if (title == null) {
			return "";
		}
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public void setPrimaryType(String primaryType) {
		throw new UnsupportedOperationException("PrimaryType is Static for HiddenWidget");
	}

	@Override
	public String getPrimaryType() {
		return Constants.CQ_WIDGET;
	}

	@Override
	public String getFieldName() {
		return getTitle();
	}

	@Override
	public void setFieldName(String fieldName) {
		throw new UnsupportedOperationException("FieldNAme is based on title for Tab");
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy