Package com.jformdesigner.model
Class SwingTableColumn
- java.lang.Object
-
- com.jformdesigner.model.SwingTableColumn
-
public class SwingTableColumn extends Object
Used for TableModels in JFormDesigner forms to specify additional information for columns, which are not supported byDefaultTableModel.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description SwingTableColumn(Object[] values, int preferredWidth, int minWidth, int maxWidth, boolean resizable)Constructs a column.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxWidth()Returns the maximum width of this column or 0 if not specified.intgetMinWidth()Returns the minimum width of this column or 0 if not specified.intgetPreferredWidth()Returns the preferred width of this column or 0 if not specified.booleangetResizable()Returns whether the user is allowed to resize this column.Object[]getValues()Returns the allowed values of this column ornull.
-
-
-
Constructor Detail
-
SwingTableColumn
public SwingTableColumn(Object[] values, int preferredWidth, int minWidth, int maxWidth, boolean resizable)
Constructs a column.
-
-
Method Detail
-
getValues
public Object[] 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.
-
-