org.butterfaces.model.table.TableColumnVisibility Maven / Gradle / Ivy
package org.butterfaces.model.table;
import java.util.ArrayList;
import java.util.List;
/**
* DTO used by {@link TableColumnVisibilityModel} to handle column visibility changes by user interaction.
*/
public class TableColumnVisibility {
private final String tableIdentifier;
private final List visibleColumns = new ArrayList<>();
private final List invisibleColumns = new ArrayList<>();
public TableColumnVisibility(final String tableIdentifier,
final List visibleColumns,
final List invisibleColumns) {
this.tableIdentifier = tableIdentifier;
this.visibleColumns.addAll(visibleColumns);
this.invisibleColumns.addAll(invisibleColumns);
}
public String getTableIdentifier() {
return tableIdentifier;
}
public List getInvisibleColumns() {
return invisibleColumns;
}
public List getVisibleColumns() {
return visibleColumns;
}
}