|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sciapp.table.locked.DefaultLockedTableModel
public class DefaultLockedTableModel
DefaultLockedTableModel is the default implementation of a LockedTableModel.
| Field Summary | |
|---|---|
protected EventListenerList |
listenerList
the listenerlist of LockedTableModelListeners |
| Fields inherited from interface com.sciapp.table.locked.LockedTableModel |
|---|
BOTTOM_DIRECTION, LEFT_DIRECTION, RIGHT_DIRECTION, TOP_DIRECTION |
| Constructor Summary | |
|---|---|
DefaultLockedTableModel()
Constructs a DefaultLockedTableModel. |
|
| Method Summary | |
|---|---|
void |
addLockedTableModelListener(LockedTableModelListener l)
Adds a LockedTableModelListener that is notified each time a locked row/column is added/removed from the table. |
protected void |
fireLockedChanged(LockedTableModelEvent e)
Notifies listeners that the number of lockable rows/columns has changed. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EventListenerList listenerList
| Constructor Detail |
|---|
public DefaultLockedTableModel()
| Method Detail |
|---|
public void addLockedTableModelListener(LockedTableModelListener l)
addLockedTableModelListener in interface LockedTableModell - the LockedTableModelListener to addprotected void fireLockedChanged(LockedTableModelEvent e)
e - the event to forwardpublic int getLockedColumns(int direction)
getLockedColumns in interface LockedTableModeldirection - the direction - either TOP or BOTTOM.
public int getLockedRows(int direction)
getLockedRows in interface LockedTableModeldirection - the direction - either LEFT or RIGHT.
public void removeLockedTableModelListener(LockedTableModelListener l)
removeLockedTableModelListener in interface LockedTableModell - the LockedTableModelListener to remove
public void setLockedColumns(int columns,
int direction)
setLockedColumns in interface LockedTableModelcolumns - the number of locked columnsdirection - the direction - either TOP or BOTTOM.
public void setLockedRows(int rows,
int direction)
setLockedRows in interface LockedTableModelrows - the number of locked rowsdirection - the direction - either LEFT or RIGHT.
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||