LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.table
Class LyJTableColumnModel

java.lang.Object
  extended by javax.swing.table.DefaultTableColumnModel
      extended by leon.view.win.swing.table.LyJTableColumnModel
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.swing.event.ListSelectionListener, javax.swing.table.TableColumnModel

public class LyJTableColumnModel
extends javax.swing.table.DefaultTableColumnModel

This class is used in the management of the columns. It prevents from moving the filled space column (last column) and the status column (invisible) if table has one.

See Also:
Serialized Form

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyJTableColumnModel(LySwingTable swingTable)
          Creates a column model for the specified table.
 
Method Summary
 LySwingTable getSwingTable()
          Returns the associated table manager.
 void moveColumn(int columnIndex, int newIndex)
          Swaps the two specified columns.
 
Methods inherited from class javax.swing.table.DefaultTableColumnModel
addColumn, addColumnModelListener, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, propertyChange, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyJTableColumnModel

public LyJTableColumnModel(LySwingTable swingTable)
Creates a column model for the specified table.

Parameters:
swingTable - the table to assign a column model
Method Detail

getSwingTable

public LySwingTable getSwingTable()
Returns the associated table manager.


moveColumn

public void moveColumn(int columnIndex,
                       int newIndex)
Swaps the two specified columns. This method makes sure that the last column and the status column are not swapable.

Specified by:
moveColumn in interface javax.swing.table.TableColumnModel
Overrides:
moveColumn in class javax.swing.table.DefaultTableColumnModel
See Also:
TableColumnModel.moveColumn(int, int)

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com