JFormDesigner 5.0.4 Runtime API

com.jformdesigner.model
Class SwingTableColumn

java.lang.Object
  extended by com.jformdesigner.model.SwingTableColumn

public class SwingTableColumn
extends java.lang.Object

Used for TableModels in JFormDesigner forms to specify additional information for columns, which are not supported by DefaultTableModel.

Since:
3.0

Constructor Summary
SwingTableColumn(java.lang.Object[] values, int preferredWidth, int minWidth, int maxWidth, boolean resizable)
          Constructs a column.
 
Method Summary
 int getMaxWidth()
          Returns the maximum width of this column or 0 if not specified.
 int getMinWidth()
          Returns the minimum width of this column or 0 if not specified.
 int getPreferredWidth()
          Returns the preferred width of this column or 0 if not specified.
 boolean getResizable()
          Returns whether the user is allowed to resize this column.
 java.lang.Object[] getValues()
          Returns the allowed values of this column or null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingTableColumn

public SwingTableColumn(java.lang.Object[] values,
                        int preferredWidth,
                        int minWidth,
                        int maxWidth,
                        boolean resizable)
Constructs a column.

Method Detail

getValues

public java.lang.Object[] getValues()
Returns the allowed values of this column or null. A JComboBox is 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.


JFormDesigner 5.0.4 Runtime API

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.