Package se.datadosen.util
Class TableColumnAdjuster
java.lang.Object
se.datadosen.util.TableColumnAdjuster
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,TableModelListener
public class TableColumnAdjuster
extends Object
implements PropertyChangeListener, TableModelListener
-
Constructor Summary
ConstructorDescriptionTableColumnAdjuster
(JTable table) TableColumnAdjuster
(JTable table, int spacing) -
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustColumn
(int column) void
void
void
void
setColumnDataIncluded
(boolean isColumnDataIncluded) void
setColumnHeaderIncluded
(boolean isColumnHeaderIncluded) void
setDynamicAdjustment
(boolean isDynamicAdjustment) void
setOnlyAdjustLarger
(boolean isOnlyAdjustLarger) void
-
Constructor Details
-
TableColumnAdjuster
-
TableColumnAdjuster
-
-
Method Details
-
adjustColumns
public void adjustColumns() -
adjustColumn
public void adjustColumn(int column) -
restoreColumns
public void restoreColumns() -
setColumnHeaderIncluded
public void setColumnHeaderIncluded(boolean isColumnHeaderIncluded) -
setColumnDataIncluded
public void setColumnDataIncluded(boolean isColumnDataIncluded) -
setOnlyAdjustLarger
public void setOnlyAdjustLarger(boolean isOnlyAdjustLarger) -
setDynamicAdjustment
public void setDynamicAdjustment(boolean isDynamicAdjustment) -
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
tableChanged
- Specified by:
tableChanged
in interfaceTableModelListener
-