Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.table.locked
Interface LockedTableModel

All Known Implementing Classes:
DefaultLockedTableModel

public interface LockedTableModel

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


Field Summary
static int BOTTOM_DIRECTION
          constant indicating the bottom side of the table.
static int LEFT_DIRECTION
          constant indicating the left side of the table.
static int RIGHT_DIRECTION
          constant indicating the right side of the table.
static int TOP_DIRECTION
          constant indicating the top side of the table.
 
Method Summary
 void addLockedTableModelListener(LockedTableModelListener l)
          Adds a LockedTableModelListener that is notified each time a locked row/column is added/removed from the table.
 int getLockedColumns(int direction)
          Returns the locked columns at the top or bottom of the table.
 int getLockedRows(int direction)
          Returns the locked rows at the left or right of the table.
 void removeLockedTableModelListener(LockedTableModelListener l)
          Removes a LockedTableModelListener from the list that is notified each time a locked row/column is added/removed from the table.
 void setLockedColumns(int columns, int direction)
          Assigns the locked columns at the top or bottom of the table.
 void setLockedRows(int rows, int direction)
          Assigns the locked rows at the left or right of the table.
 

Field Detail

LEFT_DIRECTION

static final int LEFT_DIRECTION
constant indicating the left side of the table.

See Also:
Constant Field Values

RIGHT_DIRECTION

static final int RIGHT_DIRECTION
constant indicating the right side of the table.

See Also:
Constant Field Values

TOP_DIRECTION

static final int TOP_DIRECTION
constant indicating the top side of the table.

See Also:
Constant Field Values

BOTTOM_DIRECTION

static final int BOTTOM_DIRECTION
constant indicating the bottom side of the table.

See Also:
Constant Field Values
Method Detail

addLockedTableModelListener

void addLockedTableModelListener(LockedTableModelListener l)
Adds a LockedTableModelListener that is notified each time a locked row/column is added/removed from the table.

Parameters:
l - the LockedTableModelListener to add

getLockedColumns

int getLockedColumns(int direction)
Returns the locked columns at the top or bottom of the table.

Parameters:
direction - the direction - either TOP or BOTTOM.
Returns:
the locked columns at the top or bottom of the table.

getLockedRows

int getLockedRows(int direction)
Returns the locked rows at the left or right of the table.

Parameters:
direction - the direction - either LEFT or RIGHT.
Returns:
the locked rows at the left or right of the table.

removeLockedTableModelListener

void removeLockedTableModelListener(LockedTableModelListener l)
Removes a LockedTableModelListener from the list that is notified each time a locked row/column is added/removed from the table.

Parameters:
l - the LockedTableModelListener to remove

setLockedColumns

void setLockedColumns(int columns,
                      int direction)
Assigns the locked columns at the top or bottom of the table.

Parameters:
columns - the number of locked columns
direction - the direction - either TOP or BOTTOM.

setLockedRows

void setLockedRows(int rows,
                   int direction)
Assigns the locked rows at the left or right of the table.

Parameters:
rows - the number of locked rows
direction - the direction - either LEFT or RIGHT.

Copyright © 2011 Citra Technologies. All Rights Reserved.