LockedTableModel

Top  Previous  Next

 

LockedTableModel is the model that holds the number of locked rows/columns at the 4 edges of the table.

 

You can set the locked rows/column with:

 

public void setLockedColumns(int columns, int direction);

public void setLockedRows(int rows, int direction);

 

Also, retrieve the number of locked rows/columns:

 

public int getLockedColumns(int direction);

public int getLockedRows(int direction);

 

There are four defined directions:

 

LEFT_DIRECTION, RIGHT_DIRECTION, TOP_DIRECTION and BOTTOM_DIRECTION.