|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.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.citra.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 LockedTableModel
l
- the LockedTableModelListener to addprotected void fireLockedChanged(LockedTableModelEvent e)
e
- the event to forwardpublic int getLockedColumns(int direction)
getLockedColumns
in interface LockedTableModel
direction
- the direction - either TOP or BOTTOM.
public int getLockedRows(int direction)
getLockedRows
in interface LockedTableModel
direction
- the direction - either LEFT or RIGHT.
public void removeLockedTableModelListener(LockedTableModelListener l)
removeLockedTableModelListener
in interface LockedTableModel
l
- the LockedTableModelListener to removepublic void setLockedColumns(int columns, int direction)
setLockedColumns
in interface LockedTableModel
columns
- the number of locked columnsdirection
- the direction - either TOP or BOTTOM.public void setLockedRows(int rows, int direction)
setLockedRows
in interface LockedTableModel
rows
- the number of locked rowsdirection
- the direction - either LEFT or RIGHT.
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |