com.liferay.commerce.pricing.web.internal.frontend.data.set.view.table.CommercePriceListOrderTypeTableFDSView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.pricing.web
Show all versions of com.liferay.commerce.pricing.web
Liferay Commerce Pricing Web
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.pricing.web.internal.frontend.data.set.view.table;
import com.liferay.commerce.pricing.web.internal.constants.CommercePricingFDSNames;
import com.liferay.frontend.data.set.view.FDSView;
import com.liferay.frontend.data.set.view.table.BaseTableFDSView;
import com.liferay.frontend.data.set.view.table.FDSTableSchema;
import com.liferay.frontend.data.set.view.table.FDSTableSchemaBuilder;
import com.liferay.frontend.data.set.view.table.FDSTableSchemaBuilderFactory;
import java.util.Locale;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
/**
* @author Alessio Antonio Rendina
*/
@Component(
property = "frontend.data.set.name=" + CommercePricingFDSNames.PRICE_LIST_QUALIFIER_ORDER_TYPES,
service = FDSView.class
)
public class CommercePriceListOrderTypeTableFDSView extends BaseTableFDSView {
@Override
public FDSTableSchema getFDSTableSchema(Locale locale) {
FDSTableSchemaBuilder fdsTableSchemaBuilder =
_fdsTableSchemaBuilderFactory.create();
return fdsTableSchemaBuilder.add(
"orderType.name.LANG", "name",
fdsTableSchemaField -> fdsTableSchemaField.setContentRenderer(
"actionLink")
).build();
}
@Reference
private FDSTableSchemaBuilderFactory _fdsTableSchemaBuilderFactory;
}