Class SwingTableColumn
java.lang.Object
com.jformdesigner.model.SwingTableColumn
Used for TableModels in JFormDesigner forms to specify additional information
for columns, which are not supported by
DefaultTableModel.- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionSwingTableColumn(Object[] values, int preferredWidth, int minWidth, int maxWidth, boolean resizable) Constructs a column. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum width of this column or 0 if not specified.intReturns the minimum width of this column or 0 if not specified.intReturns the preferred width of this column or 0 if not specified.booleanReturns whether the user is allowed to resize this column.Object[]Returns the allowed values of this column ornull.
-
Constructor Details
-
SwingTableColumn
public SwingTableColumn(Object[] values, int preferredWidth, int minWidth, int maxWidth, boolean resizable) Constructs a column.
-
-
Method Details
-
getValues
Returns the allowed values of this column ornull. AJComboBoxis used as cell editor if a column has values. -
getPreferredWidth
public int getPreferredWidth()Returns the preferred width of this column or 0 if not specified. -
getMinWidth
public int getMinWidth()Returns the minimum width of this column or 0 if not specified. -
getMaxWidth
public int getMaxWidth()Returns the maximum width of this column or 0 if not specified. -
getResizable
public boolean getResizable()Returns whether the user is allowed to resize this column.
-