//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This file is a part of the 'esoco-business' project.
// Copyright 2017 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//	  http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
package de.esoco.process.ui;

/********************************************************************
 * The base class for UI tables.
 *
 * @author eso
 */
public abstract class UiTableControl<T, C extends UiTableControl<T, C>>
	extends UiControl<T, C>
{
	//~ Constructors -----------------------------------------------------------

	/***************************************
	 * Creates a new instance.
	 *
	 * @param rParent   The parent container
	 * @param rDatatype The value datatype
	 */
	public UiTableControl(UiContainer<?> rParent, Class<T> rDatatype)
	{
		super(rParent, rDatatype);
	}
}

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This file is a part of the 'esoco-business' project.
// Copyright 2018 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//	  http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
package de.esoco.process.ui;

import de.esoco.lib.property.TableStyle;

import static de.esoco.lib.property.StyleProperties.TABLE_STYLE;


/********************************************************************
 * The base class for UI tables.
 *
 * @author eso
 */
public abstract class UiTableControl<T, C extends UiTableControl<T, C>>
	extends UiControl<T, C>
{
	//~ Constructors -----------------------------------------------------------

	/***************************************
	 * Creates a new instance.
	 *
	 * @param rParent   The parent container
	 * @param rDatatype The value datatype
	 */
	public UiTableControl(UiContainer<?> rParent, Class<T> rDatatype)
	{
		super(rParent, rDatatype);
	}

	//~ Methods ----------------------------------------------------------------

	/***************************************
	 * Sets the table style.
	 *
	 * @param eStyle The new table style
	 */
	public void setTableStyle(TableStyle eStyle)
	{
		tableStyle(eStyle);
	}

	/***************************************
	 * Sets the table style.
	 *
	 * @param  eStyle The table style
	 *
	 * @return This instance for fluent invocation
	 */
	public C tableStyle(TableStyle eStyle)
	{
		return set(TABLE_STYLE, eStyle);
	}
}

Add support for different table styles